Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/lobby/XmppClient.cpp
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | |||||
* @param sUsername Username to login with of register. | * @param sUsername Username to login with of register. | ||||
* @param sPassword Password to login with or register. | * @param sPassword Password to login with or register. | ||||
* @param sRoom MUC room to join. | * @param sRoom MUC room to join. | ||||
* @param sNick Nick to join with. | * @param sNick Nick to join with. | ||||
* @param historyRequestSize Number of stanzas of room history to request. | * @param historyRequestSize Number of stanzas of room history to request. | ||||
* @param regOpt If we are just registering or not. | * @param regOpt If we are just registering or not. | ||||
*/ | */ | ||||
XmppClient::XmppClient(const ScriptInterface* scriptInterface, const std::string& sUsername, const std::string& sPassword, const std::string& sRoom, const std::string& sNick, const int historyRequestSize, bool regOpt) | XmppClient::XmppClient(const ScriptInterface* scriptInterface, const std::string& sUsername, const std::string& sPassword, const std::string& sRoom, const std::string& sNick, const int historyRequestSize, bool regOpt) | ||||
: m_ScriptInterface(scriptInterface), m_client(NULL), m_mucRoom(NULL), m_registration(NULL), m_username(sUsername), m_password(sPassword), m_room(sRoom), m_nick(sNick), m_initialLoadComplete(false), m_isConnected(false), m_sessionManager() | : m_ScriptInterface(scriptInterface), | ||||
m_client(nullptr), | |||||
m_mucRoom(nullptr), | |||||
m_registration(nullptr), | |||||
m_username(sUsername), | |||||
m_password(sPassword), | |||||
m_room(sRoom), | |||||
m_nick(sNick), | |||||
m_initialLoadComplete(false), | |||||
m_isConnected(false), | |||||
m_sessionManager(nullptr), | |||||
m_certStatus(gloox::CertStatus::CertOk), | |||||
m_PresenceUpdate(false) | |||||
{ | { | ||||
if (m_ScriptInterface) | if (m_ScriptInterface) | ||||
JS_AddExtraGCRootsTracer(m_ScriptInterface->GetJSRuntime(), XmppClient::Trace, this); | JS_AddExtraGCRootsTracer(m_ScriptInterface->GetJSRuntime(), XmppClient::Trace, this); | ||||
// Read lobby configuration from default.cfg | // Read lobby configuration from default.cfg | ||||
std::string sXpartamupp; | std::string sXpartamupp; | ||||
std::string sEchelon; | std::string sEchelon; | ||||
CFG_GET_VAL("lobby.server", m_server); | CFG_GET_VAL("lobby.server", m_server); | ||||
▲ Show 20 Lines • Show All 1,167 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator