-
Notifications
You must be signed in to change notification settings - Fork 0
/
connection.h
43 lines (31 loc) · 881 Bytes
/
connection.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
#ifndef CONNECTION_H
#define CONNECTION_H
#include <QWidget>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include "requestmanager.h"
namespace Ui {
class Connection;
}
namespace GUI {
class Connection : public QWidget
{
Q_OBJECT
public:
explicit Connection(QWidget *parent = 0);
~Connection();
bool eventFilter(QObject* object, QEvent* event);
private:
Ui::Connection *ui;
QMovie *_background;
Tool::RequestManager _manager;
QNetworkReply *_reply;
public slots:
void connectEverywhere();
void replyFinished(QNetworkReply *);
void onError(QNetworkReply::NetworkError code);
signals:
void showEverywhere();
};
}
#endif // CONNECTION_H