All Classes Functions Variables Typedefs Friends Pages
CoreConstants.h
1 //------------------------------------------------------------------------------
2 //
3 // Copyright (c) Glympse Inc. All rights reserved.
4 //
5 //------------------------------------------------------------------------------
6 
7 #ifndef CORECONSTANTS_H__GLYMPSE__
8 #define CORECONSTANTS_H__GLYMPSE__
9 
10 namespace Glympse
11 {
12 
16 /*O*public**/ class CoreConstants
17 {
24  public: static const int32 PRIMITIVE_TYPE_ARRAY = 0x00000001;
25  public: static const int32 PRIMITIVE_TYPE_OBJECT = 0x00000002;
26  public: static const int32 PRIMITIVE_TYPE_DOUBLE = 0x00000004;
27  public: static const int32 PRIMITIVE_TYPE_LONG = 0x00000008;
28  public: static const int32 PRIMITIVE_TYPE_BOOLEAN = 0x00000010;
29  public: static const int32 PRIMITIVE_TYPE_STRING = 0x00000020;
30  public: static const int32 PRIMITIVE_TYPE_NULL = 0x00000040;
31 
38  public: static const int32 LOCATION_STATE_NOT_DETERMINED = 1;
39  public: static const int32 LOCATION_STATE_DENIED = 2;
40  public: static const int32 LOCATION_STATE_ACQUIRED = 3;
41  public: static const int32 LOCATION_STATE_ERROR = 4;
42 
51  public: static const int32 INFO = 1;
52  public: static const int32 DUMP = 2;
53  public: static const int32 NOTICE = 3;
54  public: static const int32 WARNING = 4;
55  public: static const int32 ERROR = 5;
56  public: static const int32 CRITICAL = 6;
57  public: static const int32 NONE = 7;
58 
68  public: static const int32 LOCATION_PROFILE_NOT_SET = -1;
69 
73  public: static const int32 LOCATION_PROFILE_NO_ACTIVE_BACKGROUND = 0;
74 
78  public: static const int32 LOCATION_PROFILE_NO_ACTIVE_FOREGROUND = 1;
79 
83  public: static const int32 LOCATION_PROFILE_ACTIVE_NOT_WATCHED = 2;
84 
88  public: static const int32 LOCATION_PROFILE_ACTIVE_IS_WATCHED = 3;
89 
93  public: static const int32 LOCATION_PROFILES_COUNT = 4;
94 
101  public: static const int32 LOCATION_SOURCE_NETWORK = 0x00000001;
102  public: static const int32 LOCATION_SOURCE_GPS = 0x00000002;
103  public: static const int32 LOCATION_SOURCE_PASSIVE = 0x00000004;
104  public: static const int32 LOCATION_SOURCE_ALL
105  = LOCATION_SOURCE_NETWORK
106  | LOCATION_SOURCE_GPS;
107 
117  public: static const int32 LOCATION_MODE_ENABLED = 0;
118 
122  public: static const int32 LOCATION_MODE_DISABLED = 1;
123 
130  public: static const int32 LOCATION_PRIORITY_HIGH_ACCURACY = 100;
131  public: static const int32 LOCATION_PRIORITY_BALANCED_POWER_ACCURACY = 102;
132  public: static const int32 LOCATION_PRIORITY_NO_POWER = 105;
133 
140  public: static const int32 GEOFENCE_TRANSITION_ENTER = 0x1;
141  public: static const int32 GEOFENCE_TRANSITION_EXIT = 0x2;
142 
149  public: static const int32 ETA_TRANSITION_DROPS_BELOW = 0x1;
150  public: static const int32 ETA_TRANSITION_RISES_ABOVE = 0x2;
151 
158  public: static const int32 PUSH_AVAILABILITY_UNKNOWN = 1;
159  public: static const int32 PUSH_AVAILABILITY_UNAVAILABLE = 2;
160  public: static const int32 PUSH_AVAILABILITY_AVAILABLE = 3;
161  public: static const int32 PUSH_AVAILABILITY_DENIED = 4;
162 
174  public: static const int32 DRAWABLE_SCALE_EXACT = 0;
175 
181  public: static const int32 DRAWABLE_SCALE_FIT_OR_SMALLER = 1;
182 
189  public: static const int32 DRAWABLE_SCALE_FIT = 2;
190 
196  public: static const int32 DRAWABLE_SCALE_FILL_OR_SMALLER = 3;
197 
204  public: static const int32 DRAWABLE_SCALE_FILL = 4;
205 
215  public: static const int32 DRAWABLE_COMPRESS_JPG = 0;
216 
220  public: static const int32 DRAWABLE_COMPRESS_PNG = 1;
221 
222 
232  public: static const int32 ACTIVITY_UNKNOWN = 0;
233 
237  public: static const int32 ACTIVITY_IN_VEHICLE = 1;
238 
242  public: static const int32 ACTIVITY_ON_BICYCLE = 2;
243 
247  public: static const int32 ACTIVITY_ON_FOOT = 3;
248 
252  public: static const int32 ACTIVITY_STILL = 4;
253 
257  public: static const int32 ACTIVITY_TILTING = 5;
258 
268  public: static const int32 HTTP_METHOD_DEFAULT = 0;
269 
273  public: static const int32 HTTP_METHOD_GET = 1;
274 
278  public: static const int32 HTTP_METHOD_POST = 2;
279 
283  public: static const int32 HTTP_METHOD_PUT = 3;
284 
288  public: static const int32 HTTP_METHOD_DELETE = 4;
289 };
290 
291 }
292 
293 #endif // !CORECONSTANTS_H__GLYMPSE__