diff options
Diffstat (limited to 'metawatch/metawatchscanner.h')
-rw-r--r-- | metawatch/metawatchscanner.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/metawatch/metawatchscanner.h b/metawatch/metawatchscanner.h new file mode 100644 index 0000000..c98bf1a --- /dev/null +++ b/metawatch/metawatchscanner.h @@ -0,0 +1,30 @@ +#ifndef METAWATCHSCANNER_H +#define METAWATCHSCANNER_H + +#include <sowatch.h> +#include <QtConnectivity/QBluetoothServiceDiscoveryAgent> + +using QTM_PREPEND_NAMESPACE(QBluetoothServiceDiscoveryAgent); +using QTM_PREPEND_NAMESPACE(QBluetoothServiceInfo); + +namespace sowatch +{ + +class MetaWatchScanner : public WatchScanner +{ + Q_OBJECT +public: + explicit MetaWatchScanner(QObject *parent = 0); + + void start(); + +private: + QBluetoothServiceDiscoveryAgent *_agent; + +private slots: + void handleDiscoveredService(const QBluetoothServiceInfo& info); +}; + +} + +#endif // METAWATCHSCANNER_H |