Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
GlooxConversion.h File Reference
#include "lib/external_libraries/gloox.h"
#include <string>
Include dependency graph for GlooxConversion.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

const char * GetPresenceString (const gloox::Presence::PresenceType presenceType)
 Convert a gloox presence type to an untranslated string literal to be used as an identifier by the scripts. More...
 
const char * GetRoleString (const gloox::MUCRoomRole role)
 Convert a gloox role type to an untranslated string literal to be used as an identifier by the scripts. More...
 
std::string StanzaErrorToString (gloox::StanzaError err)
 Convert a gloox stanza error type to string. More...
 
std::string ConnectionErrorToString (gloox::ConnectionError err)
 Convert a gloox connection error enum to string Keep in sync with Gloox documentation. More...
 
std::string RegistrationResultToString (gloox::RegistrationResult res)
 Convert a gloox registration result enum to string Keep in sync with Gloox documentation. More...
 
std::string CertificateErrorToString (gloox::CertStatus status)
 Translates a gloox certificate error codes, i.e. More...
 

Function Documentation

◆ CertificateErrorToString()

std::string CertificateErrorToString ( gloox::CertStatus  status)

Translates a gloox certificate error codes, i.e.

gloox certificate statuses except CertOk. Keep in sync with specifications.

◆ ConnectionErrorToString()

std::string ConnectionErrorToString ( gloox::ConnectionError  err)

Convert a gloox connection error enum to string Keep in sync with Gloox documentation.

Parameters
errError to be converted
Returns
Converted error string

◆ GetPresenceString()

const char * GetPresenceString ( const gloox::Presence::PresenceType  presenceType)

Convert a gloox presence type to an untranslated string literal to be used as an identifier by the scripts.

◆ GetRoleString()

const char * GetRoleString ( const gloox::MUCRoomRole  role)

Convert a gloox role type to an untranslated string literal to be used as an identifier by the scripts.

◆ RegistrationResultToString()

std::string RegistrationResultToString ( gloox::RegistrationResult  res)

Convert a gloox registration result enum to string Keep in sync with Gloox documentation.

Parameters
errEnum to be converted
Returns
Converted string

◆ StanzaErrorToString()

std::string StanzaErrorToString ( gloox::StanzaError  err)

Convert a gloox stanza error type to string.

Keep in sync with Gloox documentation

Parameters
errError to be converted
Returns
Converted error string