Static helpers for manipulating various Glympse concepts.
More...
#include <GlympseTools.h>
Static helpers for manipulating various Glympse concepts.
| static int32 Glympse::GlympseTools::guessInviteType |
( |
const GString & |
address) | |
|
|
static |
Detects invite type (GC::INVITE_TYPE_*) by the given address.
Currently the following types can be detected:
- GC::INVITE_TYPE_SMS
- GC::INVITE_TYPE_EMAIL
- GC::INVITE_TYPE_GROUP
- Parameters
-
- Returns
- Invite type code or GC::INVITE_TYPE_UNKNOWN if specified address does not look like any of supported universal addresses.
| static GString Glympse::GlympseTools::inviteTypeEnumToString |
( |
int32 |
type) | |
|
|
static |
Converts invite type code into string representation.
- Parameters
-
| type | Invite type. See GC::INVITE_TYPE_* for the list of supported types. |
- Returns
- Invite type string or the string of "unknown" if type is not supported.
| static int32 Glympse::GlympseTools::inviteTypeStringToEnum |
( |
const GString & |
type) | |
|
|
static |
Converts invite type string to one of GC::INVITE_TYPE_* constants.
- Parameters
-
- Returns
- Invite type code or GC::INVITE_TYPE_UNKNOWN if specified type is not recognized.
| static GString Glympse::GlympseTools::ticketStateEnumToString |
( |
int32 |
state) | |
|
|
static |
Converts the ticket state enum into string representation.
- Parameters
-
| state | Ticket state. See GC::TICKET_STATE_* for the list of supported types. |
- Returns
- Ticket state string or the string of "unknown" if the state is not supported.
| static int32 Glympse::GlympseTools::ticketStateStringToEnum |
( |
const GString & |
state) | |
|
|
static |
Converts the ticket state string into one of GC::TICKET_STATE_* constants.
- Parameters
-
| state | Ticket state string. |
- Returns
- Ticket State code or TICKET_STATE_NONE if specified state is not recognized.
The documentation for this class was generated from the following file: