diff options
Diffstat (limited to 'src/bluetooth/qbluetoothserver_p.h')
-rw-r--r-- | src/bluetooth/qbluetoothserver_p.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothserver_p.h b/src/bluetooth/qbluetoothserver_p.h index 29055fbd..4137986a 100644 --- a/src/bluetooth/qbluetoothserver_p.h +++ b/src/bluetooth/qbluetoothserver_p.h @@ -56,6 +56,14 @@ QT_FORWARD_DECLARE_CLASS(QSocketNotifier) #endif +#ifdef QT_ANDROID_BLUETOOTH +#include <QtAndroidExtras/QAndroidJniEnvironment> +#include <QtAndroidExtras/QAndroidJniObject> +#include <QtBluetooth/QBluetoothUuid> + +class ServerAcceptanceThread; +#endif + QT_BEGIN_NAMESPACE class QBluetoothAddress; @@ -108,6 +116,15 @@ private Q_SLOTS: void controlEvent(ppsResult result); #elif defined(QT_BLUEZ_BLUETOOTH) QSocketNotifier *socketNotifier; +#elif defined(QT_ANDROID_BLUETOOTH) + ServerAcceptanceThread *thread; + QString m_serviceName; + QBluetoothUuid m_uuid; +public: + bool isListening() const; + bool initiateActiveListening(const QBluetoothUuid& uuid, const QString &serviceName); + bool deactivateActiveListening(); + #endif }; |