Changeset View
Changeset View
Standalone View
Standalone View
source/lobby/XmppClient.cpp
Show First 20 Lines • Show All 71 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 std::string& sUsername, const std::string& sPassword, const std::string& sRoom, const std::string& sNick, const int historyRequestSize, bool regOpt) | XmppClient::XmppClient(const std::string& sUsername, const std::string& sPassword, const std::string& sRoom, const std::string& sNick, const int historyRequestSize, bool regOpt) | ||||
: 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_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() | ||||
{ | { | ||||
// 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); | ||||
CFG_GET_VAL("lobby.xpartamupp", sXpartamupp); | CFG_GET_VAL("lobby.xpartamupp", sXpartamupp); | ||||
CFG_GET_VAL("lobby.echelon", sEchelon); | CFG_GET_VAL("lobby.echelon", sEchelon); | ||||
▲ Show 20 Lines • Show All 1,148 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator