summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothsocket.h
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2015-06-19 14:25:54 +0200
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-07-03 15:14:26 +0000
commitc9af4c90eed088a8b98ce57aaa623c552e62b098 (patch)
treefd3dbe14dc21a2f74f58c7be8dee3ed7045fe203 /src/bluetooth/qbluetoothsocket.h
parentf870501469c9165f16c792e1167a8a897a3b0d5a (diff)
Add preferredSecurityFlags to QBluetoothSocket
This permits the API user to determine the security parameters for the connect attempt to the remote SPP service. Task-number: QTBUG-46377 Change-Id: I1ed5ea0f5a32aa08dcedc46a34b0377654e420b2 Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
Diffstat (limited to 'src/bluetooth/qbluetoothsocket.h')
-rw-r--r--src/bluetooth/qbluetoothsocket.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/bluetooth/qbluetoothsocket.h b/src/bluetooth/qbluetoothsocket.h
index 0ec6a593..5d686d7f 100644
--- a/src/bluetooth/qbluetoothsocket.h
+++ b/src/bluetooth/qbluetoothsocket.h
@@ -36,12 +36,13 @@
#include <QtBluetooth/qbluetoothglobal.h>
-#include <QtBluetooth/QBluetoothAddress>
-#include <QtBluetooth/QBluetoothUuid>
-#include <QtBluetooth/QBluetoothServiceInfo>
+#include <QtBluetooth/qbluetooth.h>
+#include <QtBluetooth/qbluetoothaddress.h>
+#include <QtBluetooth/qbluetoothuuid.h>
+#include <QtBluetooth/qbluetoothserviceinfo.h>
-#include <QtCore/QIODevice>
-#include <QtNetwork/QAbstractSocket>
+#include <QtCore/qiodevice.h>
+#include <QtNetwork/qabstractsocket.h>
QT_BEGIN_NAMESPACE
@@ -129,6 +130,9 @@ public:
//bool waitForDisconnected(int msecs = 30000);
//virtual bool waitForReadyRead(int msecs = 30000);
+ void setPreferredSecurityFlags(QBluetooth::SecurityFlags flags);
+ QBluetooth::SecurityFlags preferredSecurityFlags() const;
+
Q_SIGNALS:
void connected();
void disconnected();