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
androidutils.cpp File Reference

(06d37147d1b59ca8cb5ce526a96b4ba59e44e0fa)

#include "androidutils_p.h"
#include "jni_android_p.h"
#include <QtCore/qcoreapplication.h>
#include <QtCore/qloggingcategory.h>
#include <QtCore/private/qandroidextras_p.h>
+ Include dependency graph for androidutils.cpp:

Go to the source code of this file.

Functions

QT_BEGIN_NAMESPACE bool ensureAndroidPermission (QBluetoothPermission::CommunicationModes modes)
 
QJniObject getDefaultBluetoothAdapter ()
 

Function Documentation

◆ ensureAndroidPermission()

QT_BEGIN_NAMESPACE bool ensureAndroidPermission ( QBluetoothPermission::CommunicationModes modes)

Definition at line 15 of file androidutils.cpp.

References Qt::Granted, qApp, qCWarning, and QBluetoothPermission::setCommunicationModes().

Referenced by QLowEnergyController::addService(), QBluetoothLocalDevice::allDevices(), QLowEnergyControllerPrivateAndroid::connectToDevice(), QBluetoothSocketPrivateAndroid::connectToServiceHelper(), QBluetoothServer::listen(), QBluetoothSocketPrivateAndroid::localAddress(), QBluetoothSocketPrivateAndroid::localName(), QBluetoothServiceInfoPrivate::registerService(), QBluetoothLocalDevice::setHostMode(), QBluetoothDeviceDiscoveryAgentPrivate::start(), and QLowEnergyControllerPrivateAndroid::startAdvertising().

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

◆ getDefaultBluetoothAdapter()

QJniObject getDefaultBluetoothAdapter ( )

Definition at line 27 of file androidutils.cpp.

References context, and manager.

Referenced by QBluetoothDeviceDiscoveryAgentPrivate::QBluetoothDeviceDiscoveryAgentPrivate(), QBluetoothServiceDiscoveryAgentPrivate::QBluetoothServiceDiscoveryAgentPrivate(), QBluetoothSocketPrivateAndroid::QBluetoothSocketPrivateAndroid(), QBluetoothLocalDevice::allDevices(), and QBluetoothServer::listen().

+ Here is the caller graph for this function: