All Classes Functions Variables Typedefs Friends Pages
GlympseConstants.h
1 //------------------------------------------------------------------------------
2 //
3 // Copyright (c) Glympse Inc. All rights reserved.
4 //
5 //------------------------------------------------------------------------------
6 
7 #ifndef GLYMPSECONSTANTS_H__GLYMPSE__
8 #define GLYMPSECONSTANTS_H__GLYMPSE__
9 
10 namespace Glympse
11 {
12 
16 /*O*public**/ class GlympseConstants
17 {
32  public: static const int32 SMS_SEND_MODE_DEFAULT = 1;
33 
37  public: static const int32 SMS_SEND_MODE_DEVICE = 2;
38 
42  public: static const int32 SMS_SEND_MODE_SERVER = 3;
43 
53  public: static const int32 SMS_SEND_AUTO = 1;
54 
58  public: static const int32 SMS_SEND_MANUAL = 2;
59 
63  public: static const int32 SMS_SEND_NOT_SUPPORTED = 3;
64 
75  public: static const int32 ETA_MODE_EXTERNAL = 1;
76 
80  public: static const int32 ETA_MODE_INTERNAL = 2;
81 
100  public: static const int32 INVITE_MODE_DEFAULT = 0x00000000;
101 
107  public: static const int32 INVITE_MODE_PROMPT_BEFORE_VIEWING = 0x00000001;
108 
114  public: static const int32 INVITE_MODE_ACTIVATE_USER = 0x00000002;
115 
138  public: static const int32 USER_TRACKING_MODE_ACTIVE = 0x00000001;
139 
150  public: static const int32 USER_TRACKING_MODE_ALL = 0x00000002;
151 
158  public: static const int32 TICKET_STATE_NONE = 0x00000001;
159  public: static const int32 TICKET_STATE_ADDING = 0x00000002;
160  public: static const int32 TICKET_STATE_INVALID = 0x00000004;
161  public: static const int32 TICKET_STATE_ACTIVE = 0x00000010;
162  public: static const int32 TICKET_STATE_EXPIRING = 0x00000020;
163  public: static const int32 TICKET_STATE_EXPIRED = 0x00000040;
164  public: static const int32 TICKET_STATE_DELETING = 0x00000080;
165  public: static const int32 TICKET_STATE_DELETED = 0x00000100;
166  public: static const int32 TICKET_STATE_FAILED_TO_CREATE = 0x00000200;
167  public: static const int32 TICKET_STATE_CANCELLED = 0x00000400;
168 
169  public: static const int32 TICKET_STATE_DECODING
170  = TICKET_STATE_ADDING
171  | TICKET_STATE_ACTIVE;
172  public: static const int32 TICKET_STATE_ACTIVATING
173  = TICKET_STATE_ADDING
174  | TICKET_STATE_ACTIVE;
175 
188  public: static const int32 INVITE_ASPECT_UNKNOWN = 0;
189 
193  public: static const int32 INVITE_ASPECT_TICKET = 1;
194 
198  public: static const int32 INVITE_ASPECT_REQUEST = 2;
199 
203  public: static const int32 INVITE_ASPECT_CARD = 3;
204 
211  public: static const int32 INVITE_TYPE_UNKNOWN = 0;
212  public: static const int32 INVITE_TYPE_ACCOUNT = 1;
213  public: static const int32 INVITE_TYPE_EMAIL = 2;
214  public: static const int32 INVITE_TYPE_SMS = 3;
215  public: static const int32 INVITE_TYPE_TWITTER = 4;
216  public: static const int32 INVITE_TYPE_FACEBOOK = 5;
217  public: static const int32 INVITE_TYPE_LINK = 6;
218  public: static const int32 INVITE_TYPE_GROUP = 7;
219  public: static const int32 INVITE_TYPE_SHARE = 8;
220  public: static const int32 INVITE_TYPE_CLIPBOARD = 9;
221  public: static const int32 INVITE_TYPE_EVERNOTE = 10;
222  public: static const int32 INVITE_TYPE_APP = 11;
223 
230  public: static const int32 INVITE_STATE_NONE = 0;
231  public: static const int32 INVITE_STATE_SERVERSENDING = 1;
232  public: static const int32 INVITE_STATE_CLIENTSENDING = 2;
233  public: static const int32 INVITE_STATE_NEEDTOSEND = 3;
234  public: static const int32 INVITE_STATE_SUCCEEDED = 4;
235  public: static const int32 INVITE_STATE_DELETING = 5;
236  public: static const int32 INVITE_STATE_DELETED = 6;
237  public: static const int32 INVITE_STATE_FAILED_TO_CREATE = 7;
238  public: static const int32 INVITE_STATE_FAILED_TO_SEND = 8;
239  public: static const int32 INVITE_STATE_FAILED_TO_DELETE = 9;
240 
247  public: static const int32 IMAGE_STATE_NONE = 0;
248  public: static const int32 IMAGE_STATE_LOADING = 1;
249  public: static const int32 IMAGE_STATE_LOADED = 2;
250  public: static const int32 IMAGE_STATE_FAILED = 3;
251 
258  public: static const int32 GROUP_STATE_NONE = 0;
259  public: static const int32 GROUP_STATE_INVALID = 1;
260  public: static const int32 GROUP_STATE_ADDING = 2;
265  public: static const int32 GROUP_STATE_PENDING = 3;
266  public: static const int32 GROUP_STATE_ACTIVE = 4;
267  public: static const int32 GROUP_STATE_LEAVING = 5;
268  public: static const int32 GROUP_STATE_LEFT = 6;
269  public: static const int32 GROUP_STATE_FAILED_TO_CREATE = 7;
270  public: static const int32 GROUP_STATE_FAILED_TO_JOIN = 8;
271  public: static const int32 GROUP_STATE_FAILED_TO_LEAVE = 9;
272 
282  public: static const int32 EXPIRE_ON_ARRIVAL_NONE = 0;
283 
288  public: static const int32 EXPIRE_ON_ARRIVAL_NOTIFY = 1;
289 
294  public: static const int32 EXPIRE_ON_ARRIVAL_AUTO = 2;
295 
305  public: static const int32 GROUP_NAME_CORRECT = 0;
306 
310  public: static const int32 GROUP_NAME_TOO_SHORT = 1;
311 
315  public: static const int32 GROUP_NAME_INVALID_CHARACTER = 2;
316 
320  public: static const int32 GROUP_NAME_JUST_DIGITS = 3;
321 
332  public: static const int32 DURATION_NO_CHANGE = -1;
333 
338  public: static const int64 HISTORY_LOOKBACK_DEFAULT = -1;
339 
349  public: static const int64 CONTEXT_KEY_MIN = 0x0L;
350 
354  public: static const int64 CONTEXT_KEY_MAX = 0xffffffffffffL;
355 
365  public: static const int32 TICKET_FIELD_INVITES = 0x00000001;
366 
370  public: static const int32 TICKET_FIELD_DURATION = 0x00000002;
371 
375  public: static const int32 TICKET_FIELD_MESSAGE = 0x00000004;
376 
380  public: static const int32 TICKET_FIELD_DESTINATION = 0x00000008;
381 
391  public: static const int32 HANDOFF_ACTION_SEND = 0x00000001;
392 
402  public: static const int32 TRAVEL_MODE_DEFAULT = 0;
403 
407  public: static const int32 TRAVEL_MODE_DRIVE = 1;
408 
412  public: static const int32 TRAVEL_MODE_CYCLE = 2;
413 
417  public: static const int32 TRAVEL_MODE_WALK = 3;
418 
422  public: static const int32 TRAVEL_MODE_AIRLINE = 4;
423 
427  public: static const int32 TRAVEL_MODE_TRANSIT = 5;
428 
438  public: static const int32 ETA_QUERY_MODE_ALWAYS = 0;
439 
443  public: static const int32 ETA_QUERY_MODE_WATCHED = 1;
444 
453  {
454  return CoreFactory::createString("visible");
455  }
456 
461  {
462  return CoreFactory::createString("hidden");
463  }
464 
469  {
470  return CoreFactory::createString("location");
471  }
472 
477  {
478  return CoreFactory::createString("context");
479  }
480 
489  {
490  return CoreFactory::createString("facebook");
491  }
492 
497  {
498  return CoreFactory::createString("twitter");
499  }
500 
505  {
506  return CoreFactory::createString("evernote");
507  }
508 
513  {
514  return CoreFactory::createString("google_plus");
515  }
516 
521  {
522  return CoreFactory::createString("pairing");
523  }
524 
529  {
530  return CoreFactory::createString("phone");
531  }
532 
537  {
538  return CoreFactory::createString("email");
539  }
540 
552  {
553  return CoreFactory::createString("invite_client_send");
554  }
555 
565  public: static const int32 LINKED_ACCOUNT_STATE_NONE = 0;
566 
570  public: static const int32 LINKED_ACCOUNT_STATE_LINKING = 1;
571 
575  public: static const int32 LINKED_ACCOUNT_STATE_LINKED = 2;
576 
580  public: static const int32 LINKED_ACCOUNT_STATE_FAILED_TO_LINK = 3;
581 
585  public: static const int32 LINKED_ACCOUNT_STATE_UNLINKING = 4;
586 
590  public: static const int32 LINKED_ACCOUNT_STATE_UNLINKED = 5;
591 
595  public: static const int32 LINKED_ACCOUNT_STATE_FAILED_TO_UNLINK = 6;
596 
600  public: static const int32 LINKED_ACCOUNT_STATE_REFRESHING = 7;
601 
611  public: static const int32 LINKED_ACCOUNT_STATUS_NONE = 0;
612 
616  public: static const int32 LINKED_ACCOUNT_STATUS_OK = 1;
617 
621  public: static const int32 LINKED_ACCOUNT_STATUS_REFRESH_NEEDED = 2;
622 
632  public: static const int32 LINKED_ACCOUNT_LOGIN_NONE = 0;
633 
637  public: static const int32 LINKED_ACCOUNT_LOGIN_ENABLED = 1;
638 
642  public: static const int32 LINKED_ACCOUNT_LOGIN_DISABLED = 2;
643 
653  public: static const int32 SERVER_ERROR_UNKNOWN = 1;
654 
658  public: static const int32 SERVER_ERROR_FORMAT = 2;
659 
663  public: static const int32 SERVER_ERROR_ACCESS_DENIED = 3;
664 
668  public: static const int32 SERVER_ERROR_LINK_FAILED = 4;
669 
673  public: static const int32 SERVER_ERROR_LINK_MISMATCH = 5;
674 
678  public: static const int32 SERVER_ERROR_EXISTING_LINK = 6;
679 
683  public: static const int32 SERVER_ERROR_NOT_LINKED = 7;
684 
688  public: static const int32 SERVER_ERROR_INVALID_TOKEN = 8;
689 
695  public: static const int32 SERVER_ERROR_DISABLED = 9;
696 
711  public: static const int32 EXPIRATION_MODE_SYNCHRONIZED = 0;
712 
716  public: static const int32 EXPIRATION_MODE_DETACHED = 1;
717 
727  public: static const int32 TRACK_SOURCE_UNKNOWN = 0;
728 
732  public: static const int32 TRACK_SOURCE_GOOGLE_DIRECTIONS = 1;
733 
737  public: static const int32 TRACK_SOURCE_INFLIGHT = 2;
738 
742  public: static const int32 TRACK_SOURCE_HERE_DIRECTIONS = 3;
743 
747  public: static const int32 TRACK_SOURCE_GLYMPSE_DIRECTIONS = 4;
748 
757  public: static const int32 DIRECTIONS_STATE_UNKNOWN = 0;
758 
762  public: static const int32 DIRECTIONS_STATE_FETCHING = 1;
763 
767  public: static const int32 DIRECTIONS_STATE_SUCCESS = 2;
768 
772  public: static const int32 DIRECTIONS_STATE_FAILED = 3;
773 
783  public: static const int32 TRIGGER_TYPE_GEO = 1;
784 
788  public: static const int32 TRIGGER_TYPE_CHRONO = 2;
789 
793  public: static const int32 TRIGGER_TYPE_ETA = 3;
794 
798  public: static const int32 TRIGGER_TYPE_ARRIVAL = 4;
799 
803  public: static const int32 TRIGGER_TYPE_DEPARTURE = 5;
804 
811  public: static const int32 NETWORK_RESPONSE_CODE_ANY = 0x00000000;
812  public: static const int32 NETWORK_RESPONSE_CODE_ANY_VALID = 0x00000001;
813  public: static const int32 NETWORK_RESPONSE_CODE_2XX = 0x00000002;
814  public: static const int32 NETWORK_RESPONSE_BODY_ANY = 0x00000000;
815  public: static const int32 NETWORK_RESPONSE_BODY_NOT_EMPTY = 0x00000010;
816  public: static const int32 NETWORK_RESPONSE_BODY_VALID_JSON = 0x00000030;
817 
823  public: static const int32 CARD_TICKET_REPLY_INACTIVE = 0x00000001;
824  public: static const int32 CARD_TICKET_REPLY_NONE = 0x00000002;
825  public: static const int32 CARD_TICKET_REPLY_ACCEPT = 0x00000004;
826  public: static const int32 CARD_TICKET_REPLY_DECLINE = 0x00000008;
827 
828  public: static const int32 CARD_TICKET_REPLY_ANY
829  = CARD_TICKET_REPLY_ACCEPT
830  | CARD_TICKET_REPLY_DECLINE;
831 
837  public: static GString CARD_OBJECT_TYPE_POI()
838  {
839  return CoreFactory::createString("poi");
840  }
841 
842  public: static GString CARD_OBJECT_TYPE_INVITE()
843  {
844  return CoreFactory::createString("invite");
845  }
846 
847  public: static GString CARD_OBJECT_TYPE_UNKNOWN()
848  {
849  return CoreFactory::createString("unknown");
850  }
851 
861  public: static const int32 CARD_STATE_NONE = 0x00000001;
862 
866  public: static const int32 CARD_STATE_CREATING = 0x00000002;
867 
871  public: static const int32 CARD_STATE_PREVIEW = 0x00000004;
872 
876  public: static const int32 CARD_STATE_JOINING = 0x00000008;
877 
881  public: static const int32 CARD_STATE_ACTIVE = 0x00000010;
882 
886  public: static const int32 CARD_STATE_LEAVING = 0x00000020;
887 
892  public: static const int32 CARD_STATE_FAILED_TO_CREATE = 0x00000040;
893 
898  public: static const int32 CARD_STATE_FAILED_TO_JOIN = 0x00000080;
899 
910  {
911  return CoreFactory::createString("559364b74d76b03a2f46096e");
912  }
913 
914 };
915 
916 }
917 
918 #endif // !GLYMPSECONSTANTS_H__GLYMPSE__