blob: e2d78ef11edf3ac77c9be700f682a34b78fbff3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#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);
~BluetoothWatchScanner();
void start();
protected slots:
virtual void handleDiscoveredService(const QBluetoothServiceInfo& info) = 0;
private:
static int _instances;
static QBluetoothServiceDiscoveryAgent *_agent;
};
}
#endif // BLUETOOTHWATCHSCANNER_H
|