-
Notifications
You must be signed in to change notification settings - Fork 1
/
Defs.h
126 lines (111 loc) · 2.21 KB
/
Defs.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/*
* Copyright (C) 2010-2015 by Jonathan Naylor G4KLX
* Copyright (c) 2017 by Thomas A. Early N7TAE
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#pragma once
#include <string>
const std::string DEXTRA_HOSTS_FILE_NAME("DExtra_Hosts.txt");
const std::string DCS_HOSTS_FILE_NAME("DCS_Hosts.txt");
enum RECONNECT {
RECONNECT_NEVER,
RECONNECT_FIXED,
RECONNECT_5MINS,
RECONNECT_10MINS,
RECONNECT_15MINS,
RECONNECT_20MINS,
RECONNECT_25MINS,
RECONNECT_30MINS,
RECONNECT_60MINS,
RECONNECT_90MINS,
RECONNECT_120MINS,
RECONNECT_180MINS
};
enum DIRECTION {
DIR_INCOMING,
DIR_OUTGOING
};
enum PROTOCOL {
PROTO_DEXTRA,
PROTO_DCS,
PROTO_CCS
};
enum HW_TYPE {
HW_HOMEBREW,
HW_ICOM,
HW_DUMMY
};
enum TEXT_LANG {
TL_UNDEFINED,
TL_ENGLISH_UK,
TL_DEUTSCH,
TL_DANSK,
TL_FRANCAIS,
TL_ITALIANO,
TL_POLSKI,
TL_ENGLISH_US,
TL_ESPANOL,
TL_SVENSKA,
TL_NEDERLANDS_NL,
TL_NEDERLANDS_BE,
TL_NORSK,
TL_PORTUGUES
};
enum IRCDDB_STATUS {
IS_DISABLED,
IS_DISCONNECTED,
IS_CONNECTING,
IS_CONNECTED
};
enum G2_STATUS {
G2_NONE,
G2_LOCAL,
G2_USER,
G2_REPEATER,
G2_OK,
G2_XBAND,
G2_ECHO,
G2_VERSION,
G2_SMARTGROUP
};
enum LINK_STATUS {
LS_NONE,
LS_PENDING_IRCDDB,
LS_LINKING_LOOPBACK,
LS_LINKING_DEXTRA,
LS_LINKING_DCS,
LS_LINKING_CCS,
LS_LINKED_LOOPBACK,
LS_LINKED_DEXTRA,
LS_LINKED_DCS,
LS_LINKED_CCS,
LS_INIT
};
enum SLOWDATA_STATE {
SS_FIRST,
SS_SECOND
};
enum CALLSIGN_SWITCH {
SCS_GROUP_CALLSIGN,
SCS_USER_CALLSIGN
};
enum GATEWAY_TYPE {
GT_REPEATER,
GT_HOTSPOT,
GT_DONGLE,
GT_SMARTGROUP
};
const unsigned int TIME_PER_TIC_MS = 5U;