From a45977185a485624095bff1a15024e9199eee676 Mon Sep 17 00:00:00 2001 From: Javier Date: Fri, 1 Jan 2016 22:05:42 +0100 Subject: reorganize source files into SAP and agents --- sap/sapbtlistener.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 sap/sapbtlistener.h (limited to 'sap/sapbtlistener.h') diff --git a/sap/sapbtlistener.h b/sap/sapbtlistener.h new file mode 100644 index 0000000..398eb1a --- /dev/null +++ b/sap/sapbtlistener.h @@ -0,0 +1,35 @@ +#ifndef SAPBTLISTENER_H +#define SAPBTLISTENER_H + +#include +#include +#include + +class SAPBTListener : public QObject +{ + Q_OBJECT +public: + explicit SAPBTListener(QObject *parent = 0); + ~SAPBTListener(); + +signals: + +public slots: + void start(); + void stop(); + + void nudge(const QBluetoothAddress &address); + +private: + +private slots: + void acceptConnection(); + void handleNudgeConnected(); + void handleNudgeError(QBluetoothSocket::SocketError error); + +private: + QBluetoothServer *_server; + QBluetoothServiceInfo _service; +}; + +#endif // SAPBTLISTENER_H -- cgit v1.2.3