5#include <QCoreApplication>
6#include <QtCore/QLoggingCategory>
7#include <QtCore/QJniEnvironment>
8#include <QtBluetooth/QBluetoothAddress>
9#include <QtBluetooth/QBluetoothDeviceInfo>
18 addAction(valueForStaticField<QtJniTypes::BluetoothDevice, JavaNames::ActionUuid>());
27 const QString action = intentObject.callMethod<jstring>(
"getAction").
toString();
29 qCDebug(QT_BT_ANDROID) <<
"ServiceDiscoveryBroadcastReceiver::onReceive() - event:" << action;
36 QJniObject parcelableUuids = intentObject.callMethod<QtJniTypes::ParcelableArray>(
37 "getParcelableArrayExtra",
38 keyExtra.object<jstring>());
39 if (!parcelableUuids.isValid()) {
45 keyExtra = valueForStaticField<QtJniTypes::BluetoothDevice, JavaNames::ExtraDevice>();
47 intentObject.callMethod<QtJniTypes::Parcelable>(
"getParcelableExtra",
48 keyExtra.object<jstring>());
50 if (bluetoothDevice.isValid()) {
65 jobjectArray parcels = parcelUuidArray.object<jobjectArray>();
69 jint
size = env->GetArrayLength(parcels);
70 for (jint
i = 0;
i <
size; ++
i) {
71 auto p = QJniObject::fromLocalRef(env->GetObjectArrayElement(parcels,
i));
\macro QT_RESTRICTED_CAST_FROM_ASCII
virtual void onReceive(JNIEnv *env, jobject context, jobject intent)
void uuidFetchFinished(const QBluetoothAddress &addr, const QList< QBluetoothUuid > &serviceUuid)
static QList< QBluetoothUuid > convertParcelableArray(const QJniObject &obj)
QJniObject valueForStaticField()
Combined button and popup list for selecting options.
#define qCDebug(category,...)
#define Q_DECLARE_LOGGING_CATEGORY(name)
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLuint GLuint64EXT address
char * toString(const MyType &t)
[31]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent