Changeset View
Changeset View
Standalone View
Standalone View
source/lobby/XmppClient.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | private: | ||||
glooxwrapper::Client* m_client; | glooxwrapper::Client* m_client; | ||||
glooxwrapper::MUCRoom* m_mucRoom; | glooxwrapper::MUCRoom* m_mucRoom; | ||||
glooxwrapper::Registration* m_registration; | glooxwrapper::Registration* m_registration; | ||||
glooxwrapper::SessionManager* m_sessionManager; | glooxwrapper::SessionManager* m_sessionManager; | ||||
// Account infos | // Account infos | ||||
std::string m_username; | std::string m_username; | ||||
std::string m_password; | std::string m_password; | ||||
std::string m_server; | |||||
std::string m_room; | |||||
std::string m_nick; | std::string m_nick; | ||||
std::string m_xpartamuppId; | std::string m_xpartamuppId; | ||||
// State | // State | ||||
bool m_initialLoadComplete; | bool m_initialLoadComplete; | ||||
bool m_isConnected; | bool m_isConnected; | ||||
public: | public: | ||||
// Basic | // Basic | ||||
XmppClient(const std::string& sUsername, const std::string& sPassword, const std::string& sRoom, const std::string& sNick, const int historyRequestSize = 0, const bool regOpt = false); | XmppClient(const std::string& sUsername, const std::string& sPassword, const std::string& sRoom, const std::string& sNick, const int historyRequestSize = 0, const bool regOpt = false); | ||||
virtual ~XmppClient(); | virtual ~XmppClient(); | ||||
// Network | // Network | ||||
void connect(); | void connect(); | ||||
void disconnect(); | void disconnect(); | ||||
bool isConnected(); | bool isConnected(); | ||||
void recv(); | void recv(); | ||||
void SendIqGetBoardList(); | void SendIqGetBoardList(); | ||||
void SendIqGetProfile(const std::string& player); | void SendIqGetProfile(const std::string& player); | ||||
void SendIqGameReport(const ScriptInterface& scriptInterface, JS::HandleValue data); | void SendIqGameReport(const ScriptInterface& scriptInterface, JS::HandleValue data); | ||||
void SendIqRegisterGame(const ScriptInterface& scriptInterface, JS::HandleValue data); | void SendIqRegisterGame(const ScriptInterface& scriptInterface, JS::HandleValue data); | ||||
void SendIqUnregisterGame(); | void SendIqUnregisterGame(); | ||||
void SendIqChangeStateGame(const std::string& nbp, const std::string& players); | void SendIqChangeStateGame(const std::string& nbp, const std::string& players); | ||||
void SendIqLobbyAuth(const std::string& to, const std::string& token); | |||||
void SetNick(const std::string& nick); | void SetNick(const std::string& nick); | ||||
void GetNick(std::string& nick); | void GetNick(std::string& nick); | ||||
void kick(const std::string& nick, const std::string& reason); | void kick(const std::string& nick, const std::string& reason); | ||||
void ban(const std::string& nick, const std::string& reason); | void ban(const std::string& nick, const std::string& reason); | ||||
void SetPresence(const std::string& presence); | void SetPresence(const std::string& presence); | ||||
void GetPresence(const std::string& nickname, std::string& presence); | void GetPresence(const std::string& nickname, std::string& presence); | ||||
void GetRole(const std::string& nickname, std::string& role); | void GetRole(const std::string& nickname, std::string& role); | ||||
void GetSubject(std::string& subject); | void GetSubject(std::string& subject); | ||||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator