summaryrefslogtreecommitdiff
path: root/libsowatchbt/bluetoothwatchscanner.h
blob: 1ab974ab06972255c2978d417626c3d01a0ce8c3 (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
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