Changeset View
Changeset View
Standalone View
Standalone View
source/lobby/XmppClient.h
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | public: | ||||
void SendIqLobbyAuth(const std::string& to, const std::string& token); | 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); | ||||
const char* GetPresence(const std::string& nickname); | const char* GetPresence(const std::string& nickname); | ||||
const char* GetRole(const std::string& nickname); | const char* GetRole(const std::string& nickname); | ||||
std::wstring GetRating(const std::string& nickname); | |||||
const std::wstring& GetSubject(); | const std::wstring& GetSubject(); | ||||
void GUIGetPlayerList(const ScriptInterface& scriptInterface, JS::MutableHandleValue ret); | void GUIGetPlayerList(const ScriptInterface& scriptInterface, JS::MutableHandleValue ret); | ||||
void GUIGetGameList(const ScriptInterface& scriptInterface, JS::MutableHandleValue ret); | void GUIGetGameList(const ScriptInterface& scriptInterface, JS::MutableHandleValue ret); | ||||
void GUIGetBoardList(const ScriptInterface& scriptInterface, JS::MutableHandleValue ret); | void GUIGetBoardList(const ScriptInterface& scriptInterface, JS::MutableHandleValue ret); | ||||
void GUIGetProfile(const ScriptInterface& scriptInterface, JS::MutableHandleValue ret); | void GUIGetProfile(const ScriptInterface& scriptInterface, JS::MutableHandleValue ret); | ||||
void SendStunEndpointToHost(const StunClient::StunEndpoint& stunEndpoint, const std::string& hostJID); | void SendStunEndpointToHost(const StunClient::StunEndpoint& stunEndpoint, const std::string& hostJID); | ||||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | protected: | ||||
/* Message Handler */ | /* Message Handler */ | ||||
virtual void handleMessage(const glooxwrapper::Message& msg, glooxwrapper::MessageSession* session); | virtual void handleMessage(const glooxwrapper::Message& msg, glooxwrapper::MessageSession* session); | ||||
/* Session Handler */ | /* Session Handler */ | ||||
virtual void handleSessionAction(gloox::Jingle::Action action, glooxwrapper::Jingle::Session& session, const glooxwrapper::Jingle::Session::Jingle& jingle); | virtual void handleSessionAction(gloox::Jingle::Action action, glooxwrapper::Jingle::Session& session, const glooxwrapper::Jingle::Session::Jingle& jingle); | ||||
virtual void handleSessionInitiation(glooxwrapper::Jingle::Session& session, const glooxwrapper::Jingle::Session::Jingle& jingle); | virtual void handleSessionInitiation(glooxwrapper::Jingle::Session& session, const glooxwrapper::Jingle::Session::Jingle& jingle); | ||||
public: | public: | ||||
JS::Value GuiPollNewMessage(const ScriptInterface& scriptInterface); | JS::Value GuiPollNewMessages(const ScriptInterface& scriptInterface); | ||||
JS::Value GuiPollHistoricMessages(const ScriptInterface& scriptInterface); | JS::Value GuiPollHistoricMessages(const ScriptInterface& scriptInterface); | ||||
bool GuiPollHasPlayerListUpdate(); | bool GuiPollHasPlayerListUpdate(); | ||||
void SendMUCMessage(const std::string& message); | void SendMUCMessage(const std::string& message); | ||||
protected: | protected: | ||||
template<typename... Args> | template<typename... Args> | ||||
void CreateGUIMessage( | void CreateGUIMessage( | ||||
const std::string& type, | const std::string& type, | ||||
Show All 37 Lines |
Wildfire Games · Phabricator