d9fc9b7885eba9884111987cc78830855bb71e0e
[gpssportsniffer] / constants.h
1 #ifndef CONSTANTS_H
2 #define CONSTANTS_H
3
4 #ifndef APPLICATION_NAME
5 #define APPLICATION_NAME GPS Sport Sniffer
6 #endif
7
8 #ifndef ERROR_VERBOSITY
9 #define ERROR_VERBOSITY 3
10 #endif
11
12 #ifndef WARN_VERBOSITY
13 #define WARN_VERBOSITY 2
14 #endif
15
16 #ifndef INFO_VERBOSITY
17 #define INFO_VERBOSITY 1
18 #endif
19
20 #ifndef DEBUG_VERBOSITY
21 #define DEBUG_VERBOSITY 3
22 #endif
23
24 #ifndef DATE_FORMAT
25 #define DATE_FORMAT "dd-MM-yyyy"
26 #endif
27
28 #ifndef XML_DATE_FORMAT
29 #define XML_DATE_FORMAT "yyyy-MM-ddThh:mm:ssZ"
30 #endif
31
32 #ifndef CONTINOUS_DATE_FORMAT
33 #define CONTINOUS_DATE_FORMAT "dd-MM-yyyy_hh-mm-ss"
34 #endif
35
36 #ifndef CLEAN_DATE_FORMAT
37 #define CLEAN_DATE_FORMAT "dd-MM-yyyy hh:mm:ss"
38 #endif
39
40 #ifndef APPLICATION_PATH
41 #define APPLICATION_PATH "/home/user/MyDocs/GPSSniffer/"
42 #endif
43
44 #ifndef MAPS_DIR
45 #define MAPS_DIR "maps"
46 #endif
47
48 #ifndef TCX_FILE
49 #define TCX_FILE ".tcx"
50 #endif
51
52 #ifndef GPX_FILE
53 #define GPX_FILE ".gpx"
54 #endif
55
56 #ifndef TCX_XSI_SCHEMALOCATION
57 #define TCX_XSI_SCHEMALOCATION "http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2 http://www.garmin.com/xmlschemas/TrainingCenterDatabasev2.xsd"
58 #endif
59
60 #ifndef GPX_CREATOR
61 #define GPX_CREATOR "GPS Sport Sniffer v.1.1"
62 #endif
63
64 #ifndef GPX_VERSION
65 #define GPX_VERSION "1.1"
66 #endif
67
68 #ifndef GPX_XMLNS
69 #define GPX_XMLNS "http://www.topografix.com/GPX/1/1"
70 #endif
71
72
73 #ifndef TCX_XMLNS
74 #define TCX_XMLNS "http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2"
75 #endif
76
77 #ifndef TCX_XMLNS_XSI
78 #define TCX_XMLNS_XSI "http://www.w3.org/2001/XMLSchema-instance"
79 #endif
80
81 #ifndef EARTH_RADIUS
82 #define EARTH_RADIUS 6371
83 #endif
84
85 #ifndef PI
86 #define PI 3.1415926535897932386
87 #endif
88
89 #ifndef FIRST_LATITUDE
90 #define FIRST_LATITUDE 41.6105
91 #endif
92
93 #ifndef FIRST_LONGITUDE
94 #define FIRST_LONGITUDE 0.620667
95 #endif
96
97
98 #ifndef DEFAULT_ZOOM
99 #define DEFAULT_ZOOM 15
100 #endif
101
102 #ifndef MAX_ZOOM
103 #define MAX_ZOOM 18
104 #endif
105
106 #ifndef MIN_ICC_ZOOM
107 #define MIN_ICC_ZOOM 8
108 #endif
109
110 #ifndef TIME_SECONDS_POSSITIONING_PAN
111 #define TIME_SECONDS_POSSITIONING_PAN 7
112 #endif
113
114 #ifndef TIME_MIN_TIMEAUTOSAVE
115 #define TIME_MIN_TIMEAUTOSAVE 5
116 #endif
117
118 #ifndef WIDTH_DEFAULT
119 #define WIDTH_DEFAULT 800
120 #endif
121
122 #ifndef HEIGHT_DEFAULT
123 #define HEIGHT_DEFAULT 480
124 #endif
125
126 #ifndef HTTP_TIMEOUT
127 #define HTTP_TIMEOUT 3600
128 #endif
129
130
131 enum MapType {  MapTypeGoogleMaps=0,
132                 MapTypeICC=1,
133                 MapTypeOpenCycleMaps=2,
134                 MapTypeOpenStreetMaps=3
135 };
136
137 enum XMLFileType{XMLFile_GPX=0,
138                  XMLFile_TCX=1
139 };
140
141 enum Mode {  Mode_NewActivityMode, Mode_LoadTracksWindow
142 };
143
144
145 #endif // CONSTANTS_H