forked from dresden-elektronik/deconz-rest-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgateway_scanner.h
More file actions
35 lines (27 loc) · 769 Bytes
/
gateway_scanner.h
File metadata and controls
35 lines (27 loc) · 769 Bytes
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
#ifndef GATEWAYSCANNER_H
#define GATEWAYSCANNER_H
#include <QObject>
#include <QNetworkReply>
#include <QHostAddress>
class GatewayScannerPrivate;
class GatewayScanner : public QObject
{
Q_OBJECT
public:
explicit GatewayScanner(QObject *parent = 0);
~GatewayScanner();
bool isRunning() const;
void queryGateway(const QString &url);
Q_SIGNALS:
void foundGateway(const QHostAddress &host, quint16 port, const QString &uuid, const QString &name);
public Q_SLOTS:
void startScan();
private Q_SLOTS:
void scanTimerFired();
void requestFinished(QNetworkReply *reply);
void onError(QNetworkReply::NetworkError code);
private:
Q_DECLARE_PRIVATE(GatewayScanner)
GatewayScannerPrivate *d_ptr;
};
#endif // GATEWAYSCANNER_H