diff options
author | Fabian Bumberger <fbumberger@rim.com> | 2012-11-16 19:04:02 +0100 |
---|---|---|
committer | Peter Hartmann <phartmann@rim.com> | 2012-11-22 09:53:56 +0100 |
commit | 23d47eb487107bd0a66949a3962c6c3d5403c0ef (patch) | |
tree | 646fb17f504fac1eadbbffa77a4781f996bc0dc4 /src/bluetooth/qbluetoothlocaldevice_p.h | |
parent | ab0b1ffb6fc2ba9818f9c53b49e33eba3234e7d3 (diff) |
QNX: Adding the local bluetooth device
Change-Id: I44d7c6ccf16fb8f537f7f4627d4a6cd42ffd0fdd
Reviewed-by: Mehdi Fekari <mfekari@rim.com>
Reviewed-by: Alex <ablasche@gmail.com>
Diffstat (limited to 'src/bluetooth/qbluetoothlocaldevice_p.h')
-rw-r--r-- | src/bluetooth/qbluetoothlocaldevice_p.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothlocaldevice_p.h b/src/bluetooth/qbluetoothlocaldevice_p.h index e69f9e87..b20f0bc5 100644 --- a/src/bluetooth/qbluetoothlocaldevice_p.h +++ b/src/bluetooth/qbluetoothlocaldevice_p.h @@ -59,6 +59,9 @@ QT_BEGIN_NAMESPACE class QDBusPendingCallWatcher; QT_END_NAMESPACE +#elif defined(QTM_QNX_BLUETOOTH) +#include <QSocketNotifier> +#include "qnx/ppshelpers_p.h" #endif QT_BEGIN_HEADER @@ -109,6 +112,32 @@ private: void initializeAdapter(); }; +#elif defined(QTM_QNX_BLUETOOTH) + +class QBluetoothLocalDevicePrivate : public QObject +{ + Q_OBJECT + Q_DECLARE_PUBLIC(QBluetoothLocalDevice) +public: + QBluetoothLocalDevicePrivate(); + ~QBluetoothLocalDevicePrivate(); + + static QString name(); + static QBluetoothAddress address(); + + void powerOn(); + void powerOff(); + + void setHostMode(QBluetoothLocalDevice::HostMode mode); + QBluetoothLocalDevice::HostMode hostMode() const; + + void setAccess(int); + + Q_INVOKABLE void controlReply(ppsResult res); + +private: + QBluetoothLocalDevice *q_ptr; +}; #else class QBluetoothLocalDevicePrivate : public QObject { |