summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothservicediscoveryagent_p.h
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@viroteck.net>2015-08-20 08:56:24 +0000
committerRobin Burchell <robin.burchell@viroteck.net>2015-09-15 20:12:21 +0000
commitaa6cc482b09bf06d9baaaca1a02d600f8203c2a4 (patch)
tree8c9f10e641375a54629476f205ab5fdd93cb9e50 /src/bluetooth/qbluetoothservicediscoveryagent_p.h
parente9995b1199f8e488703a82cd7dfaffed9ad51087 (diff)
bluez: SDP: find a device before creating it.
To enable service discovery for known devices even if org.bluez.Adapter.CreateDevice has security restrictions, call org.bluez.Adapter.FindDevice first and CreateDevice only if the device isn't already known. The change is needed due to runtime security checks on Jolla devices, but reordering the calls does no harm when used with upstream bluetoothd. Change-Id: I8ad09808cec648f5b5949044c60173ff1ad46332 Task-number: MER#1225 Done-by: Hannu Mallat <hannu.mallat@jollamobile.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/bluetooth/qbluetoothservicediscoveryagent_p.h')
-rw-r--r--src/bluetooth/qbluetoothservicediscoveryagent_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothservicediscoveryagent_p.h b/src/bluetooth/qbluetoothservicediscoveryagent_p.h
index 4a35ffdb..c4d5017a 100644
--- a/src/bluetooth/qbluetoothservicediscoveryagent_p.h
+++ b/src/bluetooth/qbluetoothservicediscoveryagent_p.h
@@ -108,6 +108,7 @@ public:
#ifdef QT_BLUEZ_BLUETOOTH
void _q_discoveredServices(QDBusPendingCallWatcher *watcher);
void _q_createdDevice(QDBusPendingCallWatcher *watcher);
+ void _q_foundDevice(QDBusPendingCallWatcher *watcher);
//Slots below are used for discovering Bluetooth Low Energy devices. It will be used with Bluez 5.x version.
/*
void _g_discoveredGattService();
@@ -141,6 +142,7 @@ private:
QVariant readAttributeValue(QXmlStreamReader &xml);
QBluetoothServiceInfo parseServiceXml(const QString& xml);
void performMinimalServiceDiscovery(const QBluetoothAddress &deviceAddress);
+ void discoverServices(const QString deviceObjectPath);
#endif
public: