summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothservicediscoveryagent.h
diff options
context:
space:
mode:
authorNedim Hadzic <nhadzic@blackberry.com>2013-08-29 12:46:56 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-05 10:23:47 +0200
commitecb93e0f63f317039c0bba2c6c754c67b80a9d5e (patch)
treeb98cc16f8d5416e4dabc9dce101ab068136cecf5 /src/bluetooth/qbluetoothservicediscoveryagent.h
parentfcb5d4d992b660305c764d54ee70d977c0833602 (diff)
Make Bluetooth adapter choosable for device and service search
In case there are more Bluetooth adapter, device and service search might give different results. Addition to Change-Id: Ideddb39460985c18547baec986b15e43946c85de - added option for setting the device adapter for service search. QBluetoothLocalDevice was used in both classes (device and service search) for passing an argument for setting adapter. The reason for this to keep the same approach, because in QBluetoothServiceDiscoveryAgent class there is already a constructor with QBluetoothAddress argument. Auto tests and examples updated. Change-Id: Ib5d7ff23e4846d9d42dae68d8d424031748811e5 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/bluetooth/qbluetoothservicediscoveryagent.h')
-rw-r--r--src/bluetooth/qbluetoothservicediscoveryagent.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothservicediscoveryagent.h b/src/bluetooth/qbluetoothservicediscoveryagent.h
index 4e3cdf42..0a67030b 100644
--- a/src/bluetooth/qbluetoothservicediscoveryagent.h
+++ b/src/bluetooth/qbluetoothservicediscoveryagent.h
@@ -72,7 +72,7 @@ public:
};
QBluetoothServiceDiscoveryAgent(QObject *parent = 0);
- explicit QBluetoothServiceDiscoveryAgent(const QBluetoothAddress &remoteAddress, QObject *parent = 0);
+ explicit QBluetoothServiceDiscoveryAgent(const QBluetoothAddress &deviceAdapter, QObject *parent = 0);
~QBluetoothServiceDiscoveryAgent();
bool isActive() const;
@@ -85,6 +85,8 @@ public:
void setUuidFilter(const QList<QBluetoothUuid> &uuids);
void setUuidFilter(const QBluetoothUuid &uuid);
QList<QBluetoothUuid> uuidFilter() const;
+ bool setRemoteAddress(const QBluetoothAddress &address);
+ QBluetoothAddress remoteAddress() const;
public Q_SLOTS:
void start(DiscoveryMode mode = MinimalDiscovery);