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
devicediscoverybroadcastreceiver_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 Lauri Laanmets (Proekspert AS) <lauri.laanmets@eesti.ee>
2// Copyright (C) 2016 The Qt Company Ltd.
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#ifndef DEVICEDISCOVERYBROADCASTRECEIVER_H
6#define DEVICEDISCOVERYBROADCASTRECEIVER_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
20#include <QtBluetooth/QBluetoothDeviceDiscoveryAgent>
21
23
25
27{
29public:
31 virtual void onReceive(JNIEnv *env, jobject context, jobject intent);
32 virtual void onReceiveLeScan(JNIEnv *env, jobject jBluetoothDevice, jint rssi,
33 jbyteArray scanRecord);
34
36 void deviceDiscovered(const QBluetoothDeviceInfo &info, bool isLeScanResult);
38 void finished();
39
40private:
41 QBluetoothDeviceInfo retrieveDeviceInfo(const QJniObject& bluetoothDevice,
42 int rssi, jbyteArray scanRecord = nullptr);
43};
44
46#endif // DEVICEDISCOVERYBROADCASTRECEIVER_H
quint8 rssi
virtual void onReceiveLeScan(JNIEnv *env, jobject jBluetoothDevice, jint rssi, jbyteArray scanRecord)
virtual void onReceive(JNIEnv *env, jobject context, jobject intent)
void deviceDiscovered(const QBluetoothDeviceInfo &info, bool isLeScanResult)
\inmodule QtBluetooth
\inmodule QtCore
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
Combined button and popup list for selecting options.
static void * context
#define Q_OBJECT
#define signals
QHostInfo info
[0]