All Classes Functions Variables Typedefs Friends Pages
GlympseEvents.h
1 //------------------------------------------------------------------------------
2 //
3 // Copyright (c) 2012 Glympse Inc. All rights reserved.
4 //
5 //------------------------------------------------------------------------------
6 
7 #ifndef GLYMPSEEVENTS_H__GLYMPSE__
8 #define GLYMPSEEVENTS_H__GLYMPSE__
9 
10 namespace Glympse
11 {
12 
16 /*O*public**/ class GlympseEvents
17 {
27  public: static const int32 LISTENER_PLATFORM = 1;
28 
32  public: static const int32 LISTENER_INVITE = 2;
33 
38  public: static const int32 LISTENER_USER = 3;
39 
44  public: static const int32 LISTENER_TICKET = 4;
45 
50  public: static const int32 LISTENER_NETWORK = 5;
51 
56  public: static const int32 LISTENER_BATTERY = 6;
57 
62  public: static const int32 LISTENER_IMAGE = 7;
63 
68  public: static const int32 LISTENER_LOCATION = 8;
69 
74  public: static const int32 LISTENER_GROUPS = 9;
75 
80  public: static const int32 LISTENER_GROUP = 10;
81 
86  public: static const int32 LISTENER_CONFIG = 11;
87 
92  public: static const int32 LISTENER_HANDOFF = 12;
93 
98  public: static const int32 LISTENER_LINKED_ACCOUNTS = 13;
99 
104  public: static const int32 LISTENER_APPLICATIONS = 14;
105 
110  public: static const int32 LISTENER_TRIGGERS = 15;
111 
116  public: static const int32 LISTENER_PLACE_SEARCH = 16;
117 
122  public: static const int32 LISTENER_PAIRING = 17;
123 
128  public: static const int32 LISTENER_FAVORITES = 18;
129 
134  public: static const int32 LISTENER_DIRECTIONS = 19;
135 
140  public: static const int32 LISTENER_CONFIRMATION_CODE = 20;
141 
146  public: static const int32 LISTENER_CARDS = 21;
147 
152  public: static const int32 LISTENER_CARD = 22;
153 
158  public: static const int32 LISTENER_CARD_ACTIVITY = 23;
159 
164  public: static const int32 LISTENER_CARD_MEMBER = 24;
165 
170  public: static const int32 LISTENER_CARD_INVITE = 25;
171 
176  public: static const int32 LISTENER_POIS = 26;
177 
182  public: static const int32 LISTENER_INVITE_VIEWERS = 30;
183 
195  public: static const int32 PLATFORM_ACCOUNT_CREATED = 0x00000002;
196 
202  public: static const int32 PLATFORM_ACCOUNT_CREATE_FAILED = 0x00000004;
203 
209  public: static const int32 PLATFORM_LOGIN_SUCCEEDED = 0x00000008;
210 
216  public: static const int32 PLATFORM_LOGIN_FAILED = 0x00000020;
217 
223  public: static const int32 PLATFORM_SESSION_FAILED = 0x00000040;
224 
225  public: static const int32 PLATFORM_SYNCED_WITH_SERVER = 0x00000080;
226  public: static const int32 PLATFORM_STARTED = 0x00000100;
227  public: static const int32 PLATFORM_STOPPED = 0x00000200;
228  public: static const int32 PLATFORM_LOCATION = 0x00000400;
229  public: static const int32 PLATFORM_LOCATIONS_APPENDED = 0x00000800;
230  public: static const int32 PLATFORM_DATA_APPENDED = 0x00001000;
231  public: static const int32 PLATFORM_USER_ADDED = 0x00002000;
232  public: static const int32 PLATFORM_USER_REMOVED = 0x00004000;
233  public: static const int32 PLATFORM_USER_CHANGED = 0x00008000;
234  public: static const int32 PLATFORM_USER_LIST_REORDERED = 0x00010000;
235  public: static const int32 PLATFORM_TICKET_ADDED = 0x00020000;
236  public: static const int32 PLATFORM_TICKET_REMOVED = 0x00040000;
237  public: static const int32 PLATFORM_TICKET_CHANGED = 0x00080000;
238  public: static const int32 PLATFORM_TICKET_LIST_REORDERED = 0x00100000;
239  public: static const int32 PLATFORM_TICKET_ARRIVED = 0x00200000;
240  public: static const int32 PLATFORM_INVITE_TICKET = 0x00400000;
241  public: static const int32 PLATFORM_INVITE_REQUEST = 0x00800000;
242 
249  public: static const int32 PLATFORM_FIRST_LAUNCH = 0x01000000;
250 
262  public: static const int32 PLATFORM_RATE_LIMITED = 0x02000000;
263 
268  public: static const int32 PLATFORM_STATE_CHANGED = 0x04000000;
269 
275  public: static const int32 PLATFORM_CARD_INVITE = 0x10000000;
276 
282  public: static const int32 PLATFORM_CARD_REQUEST = 0x20000000;
283 
284  public: static const int32 PLATFORM_USER_LIST_CHANGED
285  = PLATFORM_USER_ADDED
286  | PLATFORM_USER_REMOVED
287  | PLATFORM_USER_LIST_REORDERED
288  | PLATFORM_LOCATION
289  | PLATFORM_USER_CHANGED;
290  public: static const int32 PLATFORM_TICKET_LIST_CHANGED
291  = PLATFORM_TICKET_ADDED
292  | PLATFORM_TICKET_REMOVED
293  | PLATFORM_TICKET_LIST_REORDERED
294  | PLATFORM_TICKET_CHANGED
295  | PLATFORM_TICKET_ARRIVED;
296 
307  public: static const int32 INVITE_DECODED = 0x00000001;
308 
313  public: static const int32 INVITE_INVALID_CODE = 0x00000002;
314 
326  public: static const int32 USER_NICKNAME_CHANGED = 0x00000001;
327 
333  public: static const int32 USER_ACTIVE_TICKET_CHANGED = 0x00000002;
334 
340  public: static const int32 USER_TICKET_ADDED = 0x00000004;
341 
347  public: static const int32 USER_TICKET_REMOVED = 0x00000008;
348 
354  public: static const int32 USER_AVATAR_UPLOADED = 0x00000010;
355 
361  public: static const int32 USER_AVATAR_NOT_UPLOADED = 0x00000020;
362 
369  public: static const int32 USER_ACTIVE_TICKET_RESIGNING = 0x00000040;
370 
374  public: static const int32 USER_CHANGED
380 
403  public: static const int32 TICKET_CREATED = 0x00000001;
404 
411  public: static const int32 TICKET_EXPIRED = 0x00000002;
412 
416  public: static const int32 TICKET_FIRST_VIEWED = 0x00000004;
417  public: static const int32 TICKET_VISIBILITY_CHANGED = 0x00000008;
418  public: static const int32 TICKET_DURATION_CHANGED = 0x00000010;
419  public: static const int32 TICKET_MESSAGE_CHANGED = 0x00000020;
420  public: static const int32 TICKET_DESTINATION_CHANGED = 0x00000040;
421  public: static const int32 TICKET_TRACK_CHANGED = 0x00000080;
422  public: static const int32 TICKET_ETA_CHANGED = 0x00000100;
423  public: static const int32 TICKET_ROUTE_CHANGED = 0x00000200;
424  public: static const int32 TICKET_TRAVEL_MODE_CHANGED = 0x00000400;
425  public: static const int32 TICKET_INVALID_CODE = 0x00000800;
426  public: static const int32 TICKET_INVITE_CREATED = 0x00001000;
427  public: static const int32 TICKET_INVITE_SENT = 0x00002000;
428 
436  public: static const int32 TICKET_INVITE_UPDATED = 0x00004000;
437 
438  public: static const int32 TICKET_INVITE_REMOVED = 0x00008000;
439  public: static const int32 TICKET_INVITE_FAILED = 0x00010000;
440  public: static const int32 TICKET_REQUEST_CREATED = 0x00020000;
441  public: static const int32 TICKET_REQUEST_SENT = 0x00040000;
442  public: static const int32 TICKET_REQUEST_FAILED = 0x00080000;
443  public: static const int32 TICKET_FAILED = 0x00100000;
444 
448  public: static const int32 TICKET_ARRIVED = 0x00200000;
449 
456  public: static const int32 TICKET_DATA_APPENDED = 0x00400000;
457 
464  public: static const int32 TICKET_DATA_CLEARED = 0x00800000;
465 
472  public: static const int32 TICKET_TRANSFERRED = 0x01000000;
473 
479  public: static const int32 TICKET_NOT_TRANSFERRED = 0x02000000;
480 
487  public: static const int32 TICKET_COMPLETED = 0x04000000;
488 
489  public: static const int32 TICKET_INVITE_CHANGED
490  = TICKET_INVITE_CREATED
491  | TICKET_INVITE_SENT
493  | TICKET_INVITE_REMOVED
494  | TICKET_INVITE_FAILED;
495  public: static const int32 TICKET_CHANGED
497  | TICKET_DURATION_CHANGED
498  | TICKET_MESSAGE_CHANGED
499  | TICKET_DESTINATION_CHANGED
500  | TICKET_TRACK_CHANGED
501  | TICKET_ETA_CHANGED
502  | TICKET_ROUTE_CHANGED
503  | TICKET_TRAVEL_MODE_CHANGED
504  | TICKET_INVITE_CHANGED
505  | TICKET_VISIBILITY_CHANGED
506  | TICKET_FAILED
510 
521  public: static const int32 NETWORK_START_FAILING = 0x00000001;
522 
526  public: static const int32 NETWORK_RECOVERED = 0x00000002;
527 
533  public: static const int32 NETWORK_WILL_SEND_REQUEST = 0x00000010;
534 
542  public: static const int32 NETWORK_IS_PREPARING_REQUEST = 0x00000020;
543 
551  public: static const int32 NETWORK_IS_SENDING_REQUEST = 0x00000040;
552 
556  public: static const int32 NETWORK_POST_RATE_CALCULATED = 0x00000080;
557 
564  public: static const int32 NETWORK_RESPONSE_RECEIVED = 0x00000100;
565 
569  public: static const int32 NETWORK_CLOCKS_SYNCED = 0x00000200;
570 
574  public: static const int32 NETWORK_PUSH_AVAILABILITY_CHANGED = 0x00000400;
575 
581  public: static const int32 BATTERY_STATE_CHANGED = 0x00000001;
582 
594  public: static const int32 LOCATION_STATE_CHANGED = 0x00000001;
595 
599  public: static const int32 LOCATION_REGION_ENTERED = 0x00000010;
600 
604  public: static const int32 LOCATION_REGION_LEFT = 0x00000020;
605 
610  public: static const int32 LOCATION_PROFILE_CHANGED = 0x00000100;
611 
616  public: static const int32 LOCATION_PROVIDER_STOPPED = 0x00000200;
617 
623  public: static const int32 IMAGE_CHANGED = 0x00000001;
624 
636  public: static const int32 GROUPS_INVITE = 0x00000001;
637 
644  public: static const int32 GROUPS_DECODED = 0x00000002;
645 
651  public: static const int32 GROUPS_GROUP_ADDED = 0x00000004;
652 
658  public: static const int32 GROUPS_GROUP_REMOVED = 0x00000008;
659 
663  public: static const int32 GROUPS_SYNCED_WITH_SERVER = 0x00000020;
664 
676  public: static const int32 GROUP_INVALID_CODE = 0x00000001;
677 
684  public: static const int32 GROUP_INVITE_CREATED = 0x00000002;
685 
691  public: static const int32 GROUP_INVITE_SENT = 0x00000004;
692 
698  public: static const int32 GROUP_INVITE_FAILED = 0x00000008;
699 
706  public: static const int32 GROUP_MEMBER_ADDED = 0x00000010;
707 
714  public: static const int32 GROUP_MEMBER_REMOVED = 0x00000020;
715 
721  public: static const int32 GROUP_ORDER_CHANGED = 0x00000040;
722 
729  public: static const int32 GROUP_FIRST_VIEWED = 0x00000100;
730 
737  public: static const int32 GROUP_MEMBER_TICKET_CHANGED = 0x00000200;
738 
745  public: static const int32 GROUP_MEMBER_TICKET_RESIGNING = 0x00000400;
746 
753  public: static const int32 GROUP_FAILED = 0x00040000;
754 
760  public: static const int32 GROUP_NAME_CHANGED = 0x00080000;
761 
767  public: static const int32 GROUP_CREATED = 0x00100000;
768 
775  public: static const int32 CONFIG_XOA_CHANGED = 0x00000001;
776  public: static const int32 CONFIG_LOCATION_SHARING_CHANGED = 0x00000002;
777  public: static const int32 CONFIG_TICKET_SENT_CHANGED = 0x00000004;
778  public: static const int32 CONFIG_ACCOUNTS_LINKED_CHANGED = 0x00000008;
779 
780  public: static const int32 CONFIG_CHANGED
781  = CONFIG_XOA_CHANGED
782  | CONFIG_LOCATION_SHARING_CHANGED
783  | CONFIG_TICKET_SENT_CHANGED
784  | CONFIG_ACCOUNTS_LINKED_CHANGED;
785 
798  public: static const int32 HANDOFF_PROVIDER_CONNECTED = 0x00000001;
799 
807  public: static const int32 HANDOFF_PROVIDER_AVAILABLE = 0x00000002;
808 
812  public: static const int32 HANDOFF_PROVIDER_DISCONNECTED = 0x00000004;
813 
831  public: static const int32 LISTENER_ID_MIN = 0x7fff0000;
832 
836  public: static const int32 LISTENER_ID_MAX = 0x7fffffff;
837 
849  public: static const int32 ACCOUNT_LINK_SUCCEEDED = 0x00000001;
850 
856  public: static const int32 ACCOUNT_LINK_FAILED = 0x00000002;
857 
863  public: static const int32 ACCOUNT_UNLINK_SUCCEEDED = 0x00000004;
864 
870  public: static const int32 ACCOUNT_UNLINK_FAILED = 0x00000008;
871 
877  public: static const int32 ACCOUNT_REFRESH_SUCCEEDED = 0x00000010;
878 
888  public: static const int32 ACCOUNT_REFRESH_FAILED = 0x00000020;
889 
895  public: static const int32 ACCOUNT_LIST_REFRESH_SUCCEEDED = 0x00000040;
896 
902  public: static const int32 ACCOUNT_LIST_REFRESH_FAILED = 0x00000080;
903 
915  public: static const int32 CONFIRMATION_CODE_SENT = 0x00000001;
916 
922  public: static const int32 CONFIRMATION_CODE_FAILED = 0x00000002;
923 
935  public: static const int32 APPLICATIONS_APP_ADDED = 0x00000001;
936 
942  public: static const int32 APPLICATIONS_APP_REMOVED = 0x00000002;
943 
949  public: static const int32 APPLICATIONS_APP_CHANGED = 0x00000004;
950 
956  public: static const int32 APPLICATIONS_APP_LAUNCHED = 0x00000008;
957 
969  public: static const int32 TRIGGERS_TRIGGER_ADDED = 0x00000001;
970 
976  public: static const int32 TRIGGERS_TRIGGER_REMOVED = 0x00000002;
977 
983  public: static const int32 TRIGGERS_TRIGGER_ACTIVATED = 0x00000004;
984 
996  public: static const int32 PAIRING_CODE_CLAIMED = 0x00000001;
997 
1003  public: static const int32 PAIRING_CODE_FAILED = 0x00000002;
1004 
1010  public: static const int32 PAIRING_GET_CODE_SUCCEEDED = 0x00000004;
1011 
1017  public: static const int32 PAIRING_GET_CODE_FAILED = 0x00000008;
1018 
1030  public: static const int32 PLACE_SEARCH_COMPLETED = 0x00000001;
1031 
1037  public: static const int32 PLACE_SEARCH_FAILED = 0x00000002;
1038 
1050  public: static const int32 FAVORITES_CHANGED = 0x00000001;
1051 
1063  public: static const int32 DIRECTIONS_SUCCEEDED = 0x00000001;
1064 
1070  public: static const int32 DIRECTIONS_FAILED = 0x00000002;
1071 
1077  public: static const int32 DIRECTIONS_CHANGED
1080 
1092  public: static const int32 CARD_MANAGER_CARD_ADDED = 0x00000002;
1093 
1099  public: static const int32 CARD_MANAGER_CARD_REMOVED = 0x00000004;
1100 
1106  public: static const int32 CARD_MANAGER_SYNCED = 0x00000008;
1107 
1113  public: static const int32 CARD_MANAGER_SYNC_FAILED = 0x00000010;
1114 
1120  public: static const int32 CARD_MANAGER_CARD_TYPES_UPDATED = 0x00000020;
1121 
1133  public: static const int32 CARD_STATE_CHANGED = 0x00000001;
1134 
1140  public: static const int32 CARD_NAME_UPDATED = 0x00000008;
1141 
1147  public: static const int32 CARD_MEMBER_ADDED = 0x00000020;
1148 
1154  public: static const int32 CARD_MEMBER_REMOVED = 0x00000040;
1155 
1161  public: static const int32 CARD_INVITE_ADDED = 0x00000080;
1162 
1168  public: static const int32 CARD_INVITE_REMOVED = 0x00000100;
1169 
1175  public: static const int32 CARD_OBJECT_ADDED = 0x00000200;
1176 
1182  public: static const int32 CARD_OBJECT_REMOVED = 0x00000400;
1183 
1189  public: static const int32 CARD_OBJECT_UPDATED = 0x00000800;
1190 
1196  public: static const int32 CARD_OBJECT_REMOVAL_FAILED = 0x00001000;
1197 
1204  public: static const int32 CARD_MEMBER_DELETE_FAILED = 0x00002000;
1205 
1212  public: static const int32 CARD_REQUEST_FAILED = 0x00004000;
1213 
1225  public: static const int32 CARD_ACTIVITY_CHANGED = 0x00000001;
1226 
1232  public: static const int32 CARD_ACTIVITY_SYNCED = 0x00000002;
1233 
1239  public: static const int32 CARD_EVENT_CREATED = 0x00000004;
1240 
1244  public: static const int32 CARD_EVENT_CREATE_FAILED = 0x00000008;
1245 
1257  public: static const int32 CARD_MEMBER_STARTED_SHARING = 0x00000001;
1258 
1264  public: static const int32 CARD_MEMBER_STOPPED_SHARING = 0x00000002;
1265 
1271  public: static const int32 CARD_MEMBER_TICKET_DECODED = 0x00000004;
1272 
1278  public: static const int32 CARD_MEMBER_STARTED_REQUESTING = 0x00000010;
1279 
1285  public: static const int32 CARD_MEMBER_STOPPED_REQUESTING = 0x00000020;
1286 
1292  public: static const int32 CARD_MEMBER_REQUEST_DECODED = 0x00000040;
1293 
1302  public: static const int32 CARD_MEMBER_REQUEST_DECLINED = 0x00000080;
1303 
1309  public: static const int32 CARD_MEMBER_STATE_CHANGED = 0x00000100;
1310 
1322  public: static const int32 CARD_INVITE_CREATED = 0x00000001;
1323 
1329  public: static const int32 CARD_INVITE_SENT = 0x00000002;
1330 
1336  public: static const int32 CARD_INVITE_FAILED = 0x00000004;
1337 
1347  public: static const int32 POI_LIST_SYNCED = 0x00000001;
1348 
1354  public: static const int32 POI_ADDED = 0x00000002;
1355 
1361  public: static const int32 POI_UPDATED = 0x00000004;
1362 
1368  public: static const int32 POI_REMOVED = 0x00000008;
1369 
1381  public: static const int32 INVITE_VIEWERS_ADDED = 0x00000001;
1382 
1388  public: static const int32 INVITE_VIEWERS_REMOVED = 0x00000002;
1389 
1395  public: static const int32 INVITE_VIEWERS_CLEARED = 0x00000004;
1396 };
1397 
1398 }
1399 
1400 #endif // !GLYMPSEEVENTS_H__GLYMPSE__