summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothserviceinfo_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bluetooth/qbluetoothserviceinfo_p.h')
-rw-r--r--src/bluetooth/qbluetoothserviceinfo_p.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bluetooth/qbluetoothserviceinfo_p.h b/src/bluetooth/qbluetoothserviceinfo_p.h
index 0e263fe6..46ae84d4 100644
--- a/src/bluetooth/qbluetoothserviceinfo_p.h
+++ b/src/bluetooth/qbluetoothserviceinfo_p.h
@@ -43,6 +43,7 @@
#define QBLUETOOTHSERVICEINFO_P_H
#include "qbluetoothuuid.h"
+#include "qbluetoothaddress.h"
#include "qbluetoothdeviceinfo.h"
#include "qbluetoothserviceinfo.h"
@@ -63,14 +64,12 @@ public:
QBluetoothServiceInfoPrivate();
~QBluetoothServiceInfoPrivate();
- bool registerService() const;
+ bool registerService(const QBluetoothAddress &localAdapter = QBluetoothAddress());
bool isRegistered() const;
- bool unregisterService() const;
+ bool unregisterService();
- void setRegisteredAttribute(quint16 attributeId, const QVariant &value) const;
- void removeRegisteredAttribute(quint16 attributeId) const;
QBluetoothDeviceInfo deviceInfo;
QMap<quint16, QVariant> attributes;
@@ -78,10 +77,11 @@ public:
int serverChannel() const;
private:
#ifdef QT_BLUEZ_BLUETOOTH
- bool ensureSdpConnection() const;
+ bool ensureSdpConnection(const QBluetoothAddress &localAdapter = QBluetoothAddress());
- mutable OrgBluezServiceInterface *service;
- mutable quint32 serviceRecord;
+ OrgBluezServiceInterface *service;
+ quint32 serviceRecord;
+ QBluetoothAddress currentLocalAdapter;
#endif
mutable bool registered;