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
jni_android_p.h File Reference

(8a1ed56a26324565506a2a73a4e6d81dd237974d)

#include "qbluetooth.h"
#include <QtCore/QJniObject>
#include <QtCore/private/qglobal_p.h>
#include <QtCore/qcoreapplication_platform.h>
+ Include dependency graph for jni_android_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  JavaNames {
  BluetoothAdapter = 0 , BluetoothDevice , ActionAclConnected , ActionAclDisconnected ,
  ActionBondStateChanged , ActionDiscoveryStarted , ActionDiscoveryFinished , ActionFound ,
  ActionScanModeChanged , ActionUuid , ExtraBondState , ExtraDevice ,
  ExtraPairingKey , ExtraPairingVariant , ExtraRssi , ExtraScanMode ,
  ExtraUuid
}
 

Functions

QT_BEGIN_NAMESPACE Q_DECLARE_JNI_CLASS (QtBtBroadcastReceiver, "org/qtproject/qt/android/bluetooth/QtBluetoothBroadcastReceiver")
 
 Q_DECLARE_JNI_CLASS (QtBtGattCharacteristic, "org/qtproject/qt/android/bluetooth/QtBluetoothGattCharacteristic")
 
 Q_DECLARE_JNI_CLASS (QtBtGattDescriptor, "org/qtproject/qt/android/bluetooth/QtBluetoothGattDescriptor")
 
 Q_DECLARE_JNI_CLASS (QtBtInputStreamThread, "org/qtproject/qt/android/bluetooth/QtBluetoothInputStreamThread") template<> const expr auto QtJniTypes
 
QString valueFromStaticFieldCache (const char *key, const char *className, const char *fieldName)
 
template<typename Klass , JavaNames Field>
QString valueForStaticField ()
 

Enumeration Type Documentation

◆ JavaNames

enum JavaNames
Enumerator
BluetoothAdapter 
BluetoothDevice 
ActionAclConnected 
ActionAclDisconnected 
ActionBondStateChanged 
ActionDiscoveryStarted 
ActionDiscoveryFinished 
ActionFound 
ActionScanModeChanged 
ActionUuid 
ExtraBondState 
ExtraDevice 
ExtraPairingKey 
ExtraPairingVariant 
ExtraRssi 
ExtraScanMode 
ExtraUuid 

Definition at line 73 of file jni_android_p.h.

Function Documentation

◆ Q_DECLARE_JNI_CLASS() [1/4]

QT_BEGIN_NAMESPACE Q_DECLARE_JNI_CLASS ( QtBtBroadcastReceiver ,
"org/qtproject/qt/android/bluetooth/QtBluetoothBroadcastReceiver"  )

◆ Q_DECLARE_JNI_CLASS() [2/4]

Q_DECLARE_JNI_CLASS ( QtBtGattCharacteristic ,
"org/qtproject/qt/android/bluetooth/QtBluetoothGattCharacteristic"  )

◆ Q_DECLARE_JNI_CLASS() [3/4]

Q_DECLARE_JNI_CLASS ( QtBtGattDescriptor ,
"org/qtproject/qt/android/bluetooth/QtBluetoothGattDescriptor"  )

◆ Q_DECLARE_JNI_CLASS() [4/4]

Q_DECLARE_JNI_CLASS ( QtBtInputStreamThread ,
"org/qtproject/qt/android/bluetooth/QtBluetoothInputStreamThread"  ) const

Definition at line 32 of file jni_android_p.h.

◆ valueForStaticField()

template<typename Klass , JavaNames Field>
QString valueForStaticField ( )

Definition at line 97 of file jni_android_p.h.

References ActionAclConnected, ActionAclDisconnected, ActionBondStateChanged, ActionDiscoveryFinished, ActionDiscoveryStarted, ActionFound, ActionScanModeChanged, ActionUuid, className, ExtraBondState, ExtraDevice, ExtraPairingKey, ExtraPairingVariant, ExtraRssi, ExtraScanMode, ExtraUuid, and valueFromStaticFieldCache().

Referenced by DeviceDiscoveryBroadcastReceiver::onReceive(), and LocalDeviceBroadcastReceiver::onReceive().

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

◆ valueFromStaticFieldCache()

QString valueFromStaticFieldCache ( const char * key,
const char * className,
const char * fieldName )

Definition at line 27 of file jni_android.cpp.

References className, QSet< T >::find(), it, and lock.

Referenced by valueForStaticField().

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