-
Notifications
You must be signed in to change notification settings - Fork 0
/
rfadevicequery.h
72 lines (57 loc) · 1.34 KB
/
rfadevicequery.h
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#ifndef RFADEVICEQUERY_H_
#define RFADEVICEQUERY_H_
#include "rfa-default-creds.h"
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QWidget>
#include <QProgressDialog>
#include <QBuffer>
#include <QXmlStreamReader>
#include <QUrl>
QT_BEGIN_NAMESPACE
class QFile;
class QLabel;
class QLineEdit;
class QTreeWidget;
class QTreeWidgetItem;
class QPushButton;
class QSslError;
class QAuthenticator;
class QNetworkReply;
class QCheckBox;
QT_END_NAMESPACE
class RFADeviceQuery: public QDialog {
Q_OBJECT
public:
explicit RFADeviceQuery(QWidget *parent = nullptr);
signals:
public slots:
void fetch();
void finished(QNetworkReply *reply);
void readyRead();
void metaDataChanged();
QString itemActivated(QTreeWidgetItem *item);
void error(QNetworkReply::NetworkError);
private slots:
void slotAuthRequired(QNetworkReply*, QAuthenticator*);
private:
void parseXml();
void get(const QUrl &url);
QXmlStreamReader xml;
QXmlStreamWriter xmlreq;
QString currentTag;
QString hardwareAddressString;
QString manufacturerString;
QString modelIdString;
QString protocolString;
QString lastContactString;
QString connectionStatusString;
QString networkAddressString;
QUrl url;
QNetworkAccessManager qnam;
QNetworkReply *reply;
QLineEdit *lineEdit;
QTreeWidget *treeWidget;
QPushButton *fetchButton;
};
#endif /* !RFADEVICEQUERY_H_ */