diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-05-08 18:04:31 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-05-08 18:04:31 +0200 |
commit | ccd19d2b7ee4184503ea46b98333b27a5613190e (patch) | |
tree | f78cc3f3c946d7a4f8167f72fb20703c65494d84 /libsowatchbt/bluetoothwatchscanner.h | |
parent | 6003bf81107dd9be51589c074b74c5af82bfc8ab (diff) | |
download | sowatch-ccd19d2b7ee4184503ea46b98333b27a5613190e.tar.gz sowatch-ccd19d2b7ee4184503ea46b98333b27a5613190e.zip |
big change: a new abstract BluetoothWatch class
Diffstat (limited to 'libsowatchbt/bluetoothwatchscanner.h')
-rw-r--r-- | libsowatchbt/bluetoothwatchscanner.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/libsowatchbt/bluetoothwatchscanner.h b/libsowatchbt/bluetoothwatchscanner.h new file mode 100644 index 0000000..1ab974a --- /dev/null +++ b/libsowatchbt/bluetoothwatchscanner.h @@ -0,0 +1,37 @@ +#ifndef BLUETOOTHWATCHSCANNER_H +#define BLUETOOTHWATCHSCANNER_H + +#include <sowatch.h> +#include <QtConnectivity/QBluetoothServiceDiscoveryAgent> + +#include "sowatchbt_global.h" + +namespace sowatch +{ + +using QTM_PREPEND_NAMESPACE(QBluetoothServiceDiscoveryAgent); +using QTM_PREPEND_NAMESPACE(QBluetoothServiceInfo); +using QTM_PREPEND_NAMESPACE(QBluetoothUuid); + +class SOWATCHBT_EXPORT BluetoothWatchScanner : public WatchScanner +{ + Q_OBJECT + +public: + BluetoothWatchScanner(QObject *parent); + + void start(); + +protected: + void setUuidFilter(const QBluetoothUuid & uuid); + +protected slots: + virtual void handleDiscoveredService(const QBluetoothServiceInfo& info) = 0; + +private: + QBluetoothServiceDiscoveryAgent *_agent; +}; + +} + +#endif // BLUETOOTHWATCHSCANNER_H |