From d8d8fc7a0d139e7b864eee3b573bd208f823ad4f Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 19 Oct 2014 18:45:03 +0200 Subject: initial import, no crypto --- sapbtlistener.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 sapbtlistener.h (limited to 'sapbtlistener.h') diff --git a/sapbtlistener.h b/sapbtlistener.h new file mode 100644 index 0000000..ee2fb7e --- /dev/null +++ b/sapbtlistener.h @@ -0,0 +1,42 @@ +#ifndef SAPBTLISTENER_H +#define SAPBTLISTENER_H + +#include + +#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) +#include +#include +QT_USE_NAMESPACE_BLUETOOTH +#else +#include +#include +QTM_USE_NAMESPACE +#endif + +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(); + + +private: + QRfcommServer *_server; + QBluetoothServiceInfo _service; +}; + +#endif // SAPBTLISTENER_H -- cgit v1.2.3