-
Notifications
You must be signed in to change notification settings - Fork 0
/
cdefines.h
76 lines (74 loc) · 1.65 KB
/
cdefines.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 TEZINECDEFINES_H
#define TEZINECDEFINES_H
#include <QObject>
#include <QIcon>
#include <QSqlQuery>
#include <QVariant>
#define TABLEENUMS "enums"
#define TablePreferences "preferences"
#define INVALIDNUMBER -1
#define INVALIDTEXT "wkinvalid"
#define INTERNALERRORMSG "Internal error"
#define APIDB "APIDB"
#define DUMPFILESIZEMB 2
#define INTERNALERRORMSG "Internal error"
#define DefaultDB "DefaultDB"
#ifdef INTERNALMODE
#define debugIfInternalMode(WHAT) Base::internalDebug(WHAT)
#define checkAndDebugIfInternalMode(check, msg) Base::checkAndDebug(check, msg)
#else
#define debugIfInternalMode(WHAT)
#define checkAndDebugIfInternalMode(check, msg)
#endif
struct STRStyleSheet {
QString toolBarStyle;
QString toolBarLabelStyle;
QString menuBarStyle;
};
struct StudioBaseSetup {
STRStyleSheet* strStyleSheet;
};
enum SVCResp {
SVCRespError = 1,
SVCRespRespOK
};
enum LogType {
LogTypeDebug=1,
LogTypeError,
LogTypeCritical,
LogTypeWarning
};
enum DataColumnType {
DataColumnTypeInteger=1,
DataColumnTypeText,
DataColumnTypePKInteger,
DataColumnTypePKIntegerAutoIncrement,
DataColumnTypeReal,
DataColumnTypeBlob
};
enum ResponseType{
ResponseTypeObject=1,
ResponseTypeArray=2,
ResponseTypeValue=3
};
struct SQLParameter {
QString name;
QVariant value;
QSql::ParamType paramType;
SQLParameter(QString Name, QVariant Value, QSql::ParamType ParamType) {
name=Name;
value=Value;
paramType=ParamType;
}
};
struct TableColumn {
QString name;
DataColumnType type;
QString typeName;
bool unique;
bool notNull;
bool autoIncrement;
bool primaryKey;
QVariant defaultValue;
};
#endif