summaryrefslogtreecommitdiff
path: root/libsowatchbt/bluetoothwatchscanner.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-05-14 01:57:34 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-05-14 01:57:34 +0200
commit9e3eff1c3a2b7105fecf6d0d7f052eb9943fbada (patch)
treee28d75366e004e3865deefb5bcaa2dc8e0d3a773 /libsowatchbt/bluetoothwatchscanner.h
parent80c58c124caf17f670d8efc120f5ae4bfd9aa09f (diff)
downloadsowatch-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.h7
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;
};
}