All Classes Functions Variables Typedefs Friends Pages
Static Public Member Functions | List of all members
Glympse::GlympseTools Class Reference

Static helpers for manipulating various Glympse concepts. More...

#include <GlympseTools.h>

Static Public Member Functions

static GString inviteTypeEnumToString (int32 type)
 Converts invite type code into string representation. More...
 
static int32 inviteTypeStringToEnum (const GString &type)
 Converts invite type string to one of GC::INVITE_TYPE_* constants. More...
 
static int32 guessInviteType (const GString &address)
 Detects invite type (GC::INVITE_TYPE_*) by the given address. More...
 
static GString ticketStateEnumToString (int32 state)
 Converts the ticket state enum into string representation. More...
 
static int32 ticketStateStringToEnum (const GString &state)
 Converts the ticket state string into one of GC::TICKET_STATE_* constants. More...
 

Detailed Description

Static helpers for manipulating various Glympse concepts.

Member Function Documentation

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
addressInvite address.
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
typeInvite 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
typeInvite type string.
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
stateTicket 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
stateTicket 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: