diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-05-14 01:57:34 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-05-14 01:57:34 +0200 |
commit | 9e3eff1c3a2b7105fecf6d0d7f052eb9943fbada (patch) | |
tree | e28d75366e004e3865deefb5bcaa2dc8e0d3a773 /libsowatchbt/bluetoothwatchscanner.h | |
parent | 80c58c124caf17f670d8efc120f5ae4bfd9aa09f (diff) | |
download | sowatch-9e3eff1c3a2b7105fecf6d0d7f052eb9943fbada.tar.gz sowatch-9e3eff1c3a2b7105fecf6d0d7f052eb9943fbada.zip |
perform only one bluetooth discovery for all watches
Diffstat (limited to 'libsowatchbt/bluetoothwatchscanner.h')
-rw-r--r-- | libsowatchbt/bluetoothwatchscanner.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libsowatchbt/bluetoothwatchscanner.h b/libsowatchbt/bluetoothwatchscanner.h index 1ab974a..e2d78ef 100644 --- a/libsowatchbt/bluetoothwatchscanner.h +++ b/libsowatchbt/bluetoothwatchscanner.h @@ -19,17 +19,16 @@ class SOWATCHBT_EXPORT BluetoothWatchScanner : public WatchScanner public: BluetoothWatchScanner(QObject *parent); + ~BluetoothWatchScanner(); void start(); -protected: - void setUuidFilter(const QBluetoothUuid & uuid); - protected slots: virtual void handleDiscoveredService(const QBluetoothServiceInfo& info) = 0; private: - QBluetoothServiceDiscoveryAgent *_agent; + static int _instances; + static QBluetoothServiceDiscoveryAgent *_agent; }; } |