Pyrogenesis  trunk
Macros | Functions
XmppClient.cpp File Reference
#include "precompiled.h"
#include "XmppClient.h"
#include "StanzaExtensions.h"
#include "i18n/L10n.h"
#include "lib/utf8.h"
#include "network/NetServer.h"
#include "network/NetClient.h"
#include "network/StunClient.h"
#include "ps/CLogger.h"
#include "ps/ConfigDB.h"
#include "ps/GUID.h"
#include "ps/Pyrogenesis.h"
#include "scriptinterface/ScriptInterface.h"
#include "scriptinterface/StructuredClone.h"
#include <iostream>
Include dependency graph for XmppClient.cpp:

Macros

#define DbgXMPP(x)
 
#define IF(x, y)   if (presence == x) m_mucRoom->setPresence(gloox::Presence::y)
 
#define CASE(X, Y)   case gloox::Presence::X: return Y
 
#define CASE(X, Y)   case gloox::X: return Y
 
#define CASE(X, Y)   case gloox::X: return Y
 
#define DEBUG_CASE(X, Y)   case gloox::X: return g_L10n.Translate("Error") + " (" + Y + ")"
 
#define CASE(X, Y)   case gloox::X: return Y
 
#define DEBUG_CASE(X, Y)   case gloox::X: return g_L10n.Translate("Error") + " (" + Y + ")"
 
#define CASE(X, Y)   case gloox::X: return Y
 
#define DEBUG_CASE(X, Y)   case gloox::X: return g_L10n.Translate("Error") + " (" + Y + ")"
 

Functions

static std::string tag_name (const glooxwrapper::IQ &iq)
 
void SetGUIMessageProperty (const ScriptRequest &rq, JS::HandleObject messageObj)
 
template<typename T , typename... Args>
void SetGUIMessageProperty (const ScriptRequest &rq, JS::HandleObject messageObj, const std::string &propertyName, const T &propertyValue, Args const &... args)
 

Macro Definition Documentation

◆ CASE [1/5]

#define CASE (   X,
  Y 
)    case gloox::Presence::X: return Y

◆ CASE [2/5]

#define CASE (   X,
  Y 
)    case gloox::X: return Y

◆ CASE [3/5]

#define CASE (   X,
  Y 
)    case gloox::X: return Y

◆ CASE [4/5]

#define CASE (   X,
  Y 
)    case gloox::X: return Y

◆ CASE [5/5]

#define CASE (   X,
  Y 
)    case gloox::X: return Y

◆ DbgXMPP

#define DbgXMPP (   x)

◆ DEBUG_CASE [1/3]

#define DEBUG_CASE (   X,
  Y 
)    case gloox::X: return g_L10n.Translate("Error") + " (" + Y + ")"

◆ DEBUG_CASE [2/3]

#define DEBUG_CASE (   X,
  Y 
)    case gloox::X: return g_L10n.Translate("Error") + " (" + Y + ")"

◆ DEBUG_CASE [3/3]

#define DEBUG_CASE (   X,
  Y 
)    case gloox::X: return g_L10n.Translate("Error") + " (" + Y + ")"

◆ IF

#define IF (   x,
 
)    if (presence == x) m_mucRoom->setPresence(gloox::Presence::y)

Function Documentation

◆ SetGUIMessageProperty() [1/2]

void SetGUIMessageProperty ( const ScriptRequest rq,
JS::HandleObject  messageObj 
)

◆ SetGUIMessageProperty() [2/2]

template<typename T , typename... Args>
void SetGUIMessageProperty ( const ScriptRequest rq,
JS::HandleObject  messageObj,
const std::string &  propertyName,
const T propertyValue,
Args const &...  args 
)

◆ tag_name()

static std::string tag_name ( const glooxwrapper::IQ iq)
static