|
| static GApiStatus | createApiStatus (const GString &server) |
| | Creates an API status object that can be used to query the Glympse API availability. More...
|
| |
| static GGlympse | createGlympse (const GString &server, const GString &apiKey) |
| |
| static GGlympse | createGlympse (const GString &server, const GString &apiKey, const GString &prefix) |
| | Prefix allows to instantiate multiple instances of Glympse platform within the same applocation bundle. More...
|
| |
| static GInvite | createInvite (int32 type, const GString &name, const GString &address) |
| | Constructs invite object based on type, name and address of the recipient. More...
|
| |
| static GInvite | createInvite (int32 type, const GString &subtype, const GString &name, const GString &address) |
| | Creates invite by specifying both type and subtype. More...
|
| |
| static GInvite | createPublicInvite (const GString &name) |
| | Creates an invite to be sent to public group. More...
|
| |
| static GTicket | createTicket (int64 duration, const GString &message, const GPlace &destination) |
| | Creates new ticket object, which is intended to be sent. More...
|
| |
| static GTicket | createRequest (const GTicket &requestTicket, const GInvite &invite) |
| | Submits a request invite to the server with the given desired request ticket. More...
|
| |
|
static GPlace | createPlace (double latitude, double longitude, const GString &name) |
| | Creates place object.
|
| |
| static GAddress | createAddress (const GString &line1, const GString &line2, const GString &city, const GString &state, const GString &zip, const GString &country) |
| | Creates new address object. More...
|
| |
|
static GImage | createImage (const GDrawable &drawable) |
| | Creates image object.
|
| |
| static GPrimitive | createFacebookAccountProfile (const GString &token) |
| | Creates a Facebook account profile with the specified token. More...
|
| |
| static GPrimitive | createTwitterAccountProfile (const GString &consumerKey, const GString &consumerSecret, const GString &oauthToken, const GString &oauthTokenSecret) |
| | Creates a Twitter account profile with the specified parameters. More...
|
| |
| static GPrimitive | createEvernoteAccountProfile (const GString &token) |
| | Creates an Evernote account profile with the specified token. More...
|
| |
| static GPrimitive | createGoogleAccountProfile (const GString &token) |
| | Creates a Google+ account profile with the specified token. More...
|
| |
| static GPrimitive | createGoogleServerAuthorizationProfile (const GString &code) |
| | Creates a Google+ server authorization profile with the specified server authorization code. More...
|
| |
| static GPrimitive | createPairingCodeProfile () |
| | Creates a pairing code profile. More...
|
| |
| static GPrimitive | createPhoneAccountProfile (const GString &phone) |
| | Creates phone account profile. More...
|
| |
| static GPrimitive | createEmailAccountProfile (const GString &email) |
| | Creates email account profile. More...
|
| |
| static GTrackBuilder | createTrackBuilder () |
| | Creates an object intended to populate ITrack with location data. More...
|
| |
| static GGeoTrigger | createGeoTrigger (const GString &name, bool autoSend, const GTicket &ticket, const GLatLng ¢er, double radius, int32 transition) |
| | Creates Geo trigger object. More...
|
| |
| static GChronoTrigger | createChronoTrigger (const GString &name, bool autoSend, const GTicket &ticket, int64 fireTime) |
| | Creates Chrono trigger object. More...
|
| |
| static GEtaTrigger | createEtaTrigger (const GString &name, bool autoSend, const GTicket &ticket, int64 threshold, int32 transition, const GTicket &etaTicket) |
| | Creates ETA trigger object. More...
|
| |
| static GArrivalTrigger | createArrivalTrigger (const GString &name, bool autoSend, const GTicket &ticket, const GTicket &monitoredTicket, const GPrimitive &config) |
| | Creates Arrival trigger object. More...
|
| |
| static GDepartureTrigger | createDepartureTrigger (const GString &name, bool autoSend, const GTicket &ticket, const GPlace &location, const GPrimitive &config) |
| | Creates Departure trigger object. More...
|
| |
|
static GCard | createCard (const GString &cardTypeId, const GString &name) |
| | Creates an empty card object.
|
| |
|
static GCardObjectPoi | createCardObjectPoi (const GPoi &poi) |
| | Creates a card object that wraps a POI.
|
| |
|
static GCardObjectInvite | createCardObjectInvite (const GString &inviteCode) |
| | Creates a card object that wraps a Invite Code.
|
| |
|
static GCardTicketBuilder | createCardTicketBuilder (int32 aspect) |
| | Creates an card ticket builder.
|
| |
|
static GCardInvite | createCardInvite (const GInvite &invite) |
| | Creates an card invite.
|
| |
| static GPoiBuilder | createPoiBuilder () |
| | Creates an object intended for building IPoi objects. More...
|
| |
| static GPoiBuilder | createPoiBuilder (const GPoi &source) |
| | Creates an object intended for building a new POI based off of existing POI. More...
|
| |
The GlympseFactory class provides factory methods for instantiating major Glympse API primitives and Glympse platform itself.
| static GInvite Glympse::GlympseFactory::createInvite |
( |
int32 |
type, |
|
|
const GString & |
name, |
|
|
const GString & |
address |
|
) |
| |
|
static |
Constructs invite object based on type, name and address of the recipient.
Type is intended to identify delivery mechanism and pick appropriate side to schedule invite delivery (client or server). Invite name should provide human-readable invite information (like person name). Address should uniquely identify recipient within type namespace (examples: phone number, email, etc).
It is required to specify invite type explicitly in the following cases:
- GC::INVITE_TYPE_ACCOUNT
- GC::INVITE_TYPE_TWITTER
- GC::INVITE_TYPE_FACEBOOK
- GC::INVITE_TYPE_LINK
- GC::INVITE_TYPE_SHARE
- GC::INVITE_TYPE_CLIPBOARD
- GC::INVITE_TYPE_EVERNOTE
- GC::INVITE_TYPE_GROUP (when raw group name is specified or invite is sent to a private group).
It is only possible to pass GC::INVITE_TYPE_UNKNOWN, if address field contains
- phone number,
- email address or
- public group name (with leading '!' or '#'). In this case invite type will be determined by the library.
Group invite is marked visible automatically, if address starts with '#'.
Each invite type has specific requirements for name and address arguments.
- GC::INVITE_TYPE_ACCOUNT
- name (optional): Recipient Glympse nickname
- address (required): Glympse user id
- GC::INVITE_TYPE_EMAIL
- name (optional): Recipient name
- address (required): Email address
- GC::INVITE_TYPE_SMS
- name (optional): Recipient name
- address (required): Phone number
- GC::INVITE_TYPE_TWITTER
- name (optional): Twitter name of signed in user with leading @
- address (optional): Twitter user id or Twitter name with leading @
- GC::INVITE_TYPE_FACEBOOK
- name (optional): Facebook name of signed in user
- address (optional): Facebook user id
- GC::INVITE_TYPE_LINK
- name (optional): Application specific invite display name
- address (optional): Application specific invite address
- GC::INVITE_TYPE_GROUP
- name (optional): Application specific invite display name
- address (required): Glympse private group id, or Glympse public group name
- GC::INVITE_TYPE_SHARE
- name (optional): Name of application
- address (required): Signature of application
- GC::INVITE_TYPE_CLIPBOARD
- name : none
- address : none
- GC::INVITE_TYPE_EVERNOTE
- name : none
- address : none
- Returns
- Invite object or NULL, if invite cannot be constructed.