-
Notifications
You must be signed in to change notification settings - Fork 0
/
globalDefine.h
47 lines (33 loc) · 1.69 KB
/
globalDefine.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
#ifndef GLOBALDEFINE_H
#define GLOBALDEFINE_H
#include<string>
namespace GlobalDefine{
#define FUNC_RETUEN_SUCCESS 0 //函数正常返回
#define FUNC_RETUEN_ERROR (-1) //函数错误返回
#define MAINWINDOW_TITLE "加卸载工具(ARINC615ATool-V1.0.19)"
#define WINDOW_WIDTH 1500 //界面宽度
#define WINDOW_HEIGHT 700 //界面高度
#define MAX_LIST_WIDGET_WIDTH 600 //设备列表中widget的宽度
#define MAX_LIST_WIDGET_HEIGHT 70 //设备列表中widget的高度
#define MAX_ADD_VALUE 65535 //自增的最大值
#define MAX_TARGET_NUMBER 16 //最大支持的目标机数量
#define FIND_OPERATION "FIND"
#define INFORMATION_OPERATION "INFORMATION"
#define UPLOAD_OPERATION "UPLOAD"
#define MEDIA_DOWNLOAD_OPERATION "MEDIA-DOWNLOAD"
#define OPERATOR_DOWNLOAD_OPERATION "OPERATOR-DOWNLOAD"
#define AUTO_CONFIG_OPERATION "AUTO-CONFIG"
#define PARAMETER_CONFIG_OPERATION "PARAMETER-CONFIG"
#define STATUSFILE_RECEIVE_OPERATION "STATUSFILE_RECEIVE_OPERATION"
#define FIND_OP_CODE 1
#define INFO_OP_CODE 2
#define UPLOAD_OP_CODE 3
#define MDOWN_OP_CODE 4
#define ODOWN_OP_CODE 5
#define AUTO_CONFIG_OP_CODE 6
#define PARAMETER_CONFIG_OP_CODE 7
#define STATUSFILE_RECEIVE_OP_CODE 8
#define TFTP_LISTEN_PORT 69
#define FIND_LISTEN_PORT 1001
}
#endif // GLOBALDEFINE_H