Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qlowenergycontroller_android.cpp File Reference

(d03cdafe1cc21ab723b92d8160e39b56d71e2507)

#include "qlowenergycontroller_android_p.h"
#include "android/androidutils_p.h"
#include "android/jni_android_p.h"
#include <QCoreApplication>
#include <QtCore/QLoggingCategory>
#include <QtCore/QJniEnvironment>
#include <QtCore/QJniObject>
#include <QtBluetooth/QLowEnergyServiceData>
#include <QtBluetooth/QLowEnergyCharacteristicData>
#include <QtBluetooth/QLowEnergyDescriptorData>
#include <QtBluetooth/QLowEnergyAdvertisingData>
#include <QtBluetooth/QLowEnergyAdvertisingParameters>
#include <QtBluetooth/QLowEnergyConnectionParameters>
+ Include dependency graph for qlowenergycontroller_android.cpp:

Go to the source code of this file.

Functions

static QJniObject javaUuidfromQtUuid (const QBluetoothUuid &uuid)
 
static QJniObject javaParcelUuidfromQtUuid (const QBluetoothUuid &uuid)
 
static QJniObject createJavaAdvertiseData (const QLowEnergyAdvertisingData &data)
 
static QJniObject createJavaAdvertiseSettings (const QLowEnergyAdvertisingParameters &params)
 
static int setupCharPermissions (const QLowEnergyCharacteristicData &charData)
 
static int setupDescPermissions (const QLowEnergyDescriptorData &descData)
 

Variables

QT_BEGIN_NAMESPACE const int BTLE_MAX_ATTRIBUTE_VALUE_SIZE = 512
 

Function Documentation

◆ createJavaAdvertiseData()

static QJniObject createJavaAdvertiseData ( const QLowEnergyAdvertisingData & data)
static

Definition at line 887 of file qlowenergycontroller_android.cpp.

References javaParcelUuidfromQtUuid(), qCWarning, and services.

Referenced by QLowEnergyControllerPrivateAndroid::startAdvertising().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createJavaAdvertiseSettings()

static QJniObject createJavaAdvertiseSettings ( const QLowEnergyAdvertisingParameters & params)
static

Definition at line 940 of file qlowenergycontroller_android.cpp.

References QLowEnergyAdvertisingParameters::AdvInd, QLowEnergyAdvertisingParameters::AdvNonConnInd, and QLowEnergyAdvertisingParameters::AdvScanInd.

Referenced by QLowEnergyControllerPrivateAndroid::startAdvertising().

+ Here is the caller graph for this function:

◆ javaParcelUuidfromQtUuid()

static QJniObject javaParcelUuidfromQtUuid ( const QBluetoothUuid & uuid)
static

Definition at line 873 of file qlowenergycontroller_android.cpp.

References output, and QUuid::toString().

Referenced by createJavaAdvertiseData().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ javaUuidfromQtUuid()

static QJniObject javaUuidfromQtUuid ( const QBluetoothUuid & uuid)
static

Definition at line 26 of file qlowenergycontroller_android.cpp.

References output, and QUuid::WithoutBraces.

Referenced by QLowEnergyControllerPrivateAndroid::addToGenericAttributeList(), QLowEnergyControllerPrivateAndroid::writeCharacteristic(), and QLowEnergyControllerPrivateAndroid::writeDescriptor().

+ Here is the caller graph for this function:

◆ setupCharPermissions()

static int setupCharPermissions ( const QLowEnergyCharacteristicData & charData)
static

◆ setupDescPermissions()

static int setupDescPermissions ( const QLowEnergyDescriptorData & descData)
static

Definition at line 1102 of file qlowenergycontroller_android.cpp.

References QBluetooth::AttAuthenticationRequired, QBluetooth::AttAuthorizationRequired, QBluetooth::AttEncryptionRequired, QLowEnergyDescriptorData::isReadable(), QLowEnergyDescriptorData::isWritable(), and QLowEnergyDescriptorData::readConstraints().

Referenced by QLowEnergyControllerPrivateAndroid::addToGenericAttributeList().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ BTLE_MAX_ATTRIBUTE_VALUE_SIZE

QT_BEGIN_NAMESPACE const int BTLE_MAX_ATTRIBUTE_VALUE_SIZE = 512