-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.h
76 lines (53 loc) · 1.45 KB
/
global.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
73
74
75
76
#ifndef GLOBAL_H
#define GLOBAL_H
#include <QString>
#include <QColor>
#include <windows.h>
#include <tchar.h>
#include <strsafe.h>
struct SeriesNumber
{
QString strEndode;
QString strDecode;
int nExpiredYear;
int nExpiredMonth;
int nExpiredDay;
int nExeYear;
int nExeMonth;
int nExeDay;
};
class Global
{
public:
static void checkSystemVersion();
static bool decodeSeriesNumber( QString strEncode );
static QString getSysInfo();
static void initGlobalData();
static void readIni();
static void readCurrentPath();
static void saveCurrentPath();
static void saveFreeFixUnRegister( QString strFlag );
static QString readFreeFixUnRegister();
static void saveIniData( QString strKey, QString strValue );
static QString readIniData( QString strKey );
private:
static bool isKeyUnregistered( QString strKey );
public:
static QString s_strCurrentPath;
static QString s_strProgramDataPath;
static QString s_strSystemDrive;
static QString s_strExePath;
static QString s_strHttpUrl;
static QString s_strDownloadPath;
static QString s_strSystemUrl;
static QString s_strVersion;
static QString s_strDatFile;
static QColor s_clrWidgetTop;
static QColor s_clrWidgetLeft;
static QString s_strTotalScan;
static SeriesNumber s_seriesNumber;
static bool s_bActive;
static bool s_bX64;
static QString s_strExeName;
};
#endif // GLOBAL_H