#ifndef BLUETOOTHWATCHSCANNER_H #define BLUETOOTHWATCHSCANNER_H #include #include #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); ~BluetoothWatchScanner(); void start(); protected slots: virtual void handleDiscoveredService(const QBluetoothServiceInfo& info) = 0; private: static int _instances; static QBluetoothServiceDiscoveryAgent *_agent; }; } #endif // BLUETOOTHWATCHSCANNER_H