-
Notifications
You must be signed in to change notification settings - Fork 3
/
entercaptcha.h
46 lines (37 loc) · 902 Bytes
/
entercaptcha.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
#ifndef ENTERCAPTCHA_H
#define ENTERCAPTCHA_H
#include <QtWidgets>
#include <QDialog>
#include <QSettings>
#include <QtNetwork>
#include <QMainWindow>
#include <QTextEdit>
namespace Ui {
class EnterCaptcha;
}
class EnterCaptcha : public QDialog
{
Q_OBJECT
public:
explicit EnterCaptcha(QWidget *parent = 0);
~EnterCaptcha();
void requestCaptcha();
void requestBridges(QString captchaInput, QString captchaToken);
signals:
void captchaLoadFinished(bool finished);
void bridgesDataLoaded(QDateTime time);
public slots:
void bridgesLoaded();
private slots:
void on_submitCaptcha_accepted();
void dataLoaded();
private:
void captchaLoaded();
Ui::EnterCaptcha *ui;
QString enterCaptchaToken;
QNetworkReply *requestLoaded;
QByteArray requestedData;
QNetworkAccessManager networkAccess;
void setProxy();
};
#endif // ENTERCAPTCHA_H