summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qlowenergycontroller_p.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@theqtcompany.com>2015-10-15 12:00:13 +0200
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-11-19 06:52:35 +0000
commit57353d3f91f89e6e364b9798277048e25b9c63b8 (patch)
treef8bd609be5ade91e7b09dfb8f1d48578e51021e7 /src/bluetooth/qlowenergycontroller_p.h
parenta8d80a81d56f0fb85c41bf6ec5716c5ce7e5dac0 (diff)
QLowEnergyController: Listen for and accept GATT connection requests.
BlueZ only. No requests are handled yet. Change-Id: I25058989beb5b3ae02a4f43eeaec09c8225198dc Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/bluetooth/qlowenergycontroller_p.h')
-rw-r--r--src/bluetooth/qlowenergycontroller_p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bluetooth/qlowenergycontroller_p.h b/src/bluetooth/qlowenergycontroller_p.h
index 722de692..d91c2c73 100644
--- a/src/bluetooth/qlowenergycontroller_p.h
+++ b/src/bluetooth/qlowenergycontroller_p.h
@@ -80,6 +80,7 @@ QT_BEGIN_NAMESPACE
#if defined(QT_BLUEZ_BLUETOOTH) && !defined(QT_BLUEZ_NO_BTLE)
class HciManager;
+class QSocketNotifier;
#elif defined(QT_ANDROID_BLUETOOTH)
class LowEnergyNotificationHub;
#endif
@@ -180,6 +181,10 @@ private:
HciManager *hciManager;
QLeAdvertiser *advertiser;
+ QSocketNotifier *serverSocketNotifier;
+
+ void handleConnectionRequest();
+ void closeServerSocket();
void sendCommand(const QByteArray &packet);
void sendNextPendingRequest();