-
Notifications
You must be signed in to change notification settings - Fork 17
/
common.h
58 lines (43 loc) · 881 Bytes
/
common.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
#ifndef COMMON_H
#define COMMON_H
#ifdef Q_OS_WIN
#define OS_IS_WINDOWS 1
#else
#define OS_IS_WINDOWS 0
#endif
#include <QString>
const long OneHundredMillion = 100000000;
bool isZero(double d);
bool isEqual(double d1, double d2);
enum PeriodType{
PERIOD_REALTIME = 0,
PERIOD_ONE_MIN,
PERIOD_FIVE_MINS,
PERIOD_TEN_MINS,
PERIOD_FIFTEEN_MINS,
PERIOD_THIRTY_MINS,
PERIOD_ONE_HOUR,
PERIOD_ONE_DAY,
PERIOD_ONE_WEEK,
PERIOD_ONE_MONTH,
PERIOD_THREE_MONTHS,
PERIOD_ONE_YEAR,
PERIOD_CUSTOM_YEARS,
PERIOD_CUSTOM_MONTHS,
PERIOD_CUSTOM_DAYS,
PERIOD_CUSTOM_MINS,
};
namespace HEHUI {
enum DatabaseType {
OTHER = 0,
MYSQL = 1,
SQLITE = 2,
POSTGRESQL = 3,
FIREBIRD = 4,
DB2 = 5,
ORACLE = 6,
M$SQLSERVER = 7,
M$ACCESS =8,
};
}
#endif // COMMON_H