-
Notifications
You must be signed in to change notification settings - Fork 95
Expand file tree
/
Copy pathProductKey.h
More file actions
executable file
·54 lines (48 loc) · 1.11 KB
/
Copy pathProductKey.h
File metadata and controls
executable file
·54 lines (48 loc) · 1.11 KB
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
#ifndef PRODUCTKEY_H
#define PRODUCTKEY_H
#include <QDialog>
#include "Variable.h"
#ifdef ULTRACOPIER_INTERNET_SUPPORT
#include <QTimer>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#endif
namespace Ui {
class ProductKey;
}
class ProductKey : public QDialog
{
Q_OBJECT
public:
explicit ProductKey(QWidget *parent = 0);
~ProductKey();
bool isUltimate() const;
bool isIllegal() const;
static ProductKey *productKey;
bool parseKey(QString orgkey=QString());
private slots:
void on_buttonBox_accepted();
void on_buttonBox_rejected();
private:
Ui::ProductKey *ui;
bool ultimate;
#ifdef ULTRACOPIER_INTERNET_SUPPORT
QString lastKey;
QString bannedList;
QTimer newUpdateTimer;
QTimer firstUpdateTimer;
QNetworkAccessManager *qnam;//destroy to close connection
QNetworkReply *reply;
#endif
signals:
void changeToUltimate();
#ifdef ULTRACOPIER_INTERNET_SUPPORT
void bannedKey();
private slots:
void checkUpdate();
void downloadFile();
void httpFinished();
void downloadFileInternal();
#endif
};
#endif // PRODUCTKEY_H