Changeset View
Changeset View
Standalone View
Standalone View
source/lobby/IXmppClient.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | public: | ||||
virtual void SendIqUnregisterGame() = 0; | virtual void SendIqUnregisterGame() = 0; | ||||
virtual void SendIqChangeStateGame(const std::string& nbp, const std::string& players) = 0; | virtual void SendIqChangeStateGame(const std::string& nbp, const std::string& players) = 0; | ||||
virtual void SendIqLobbyAuth(const std::string& to, const std::string& token) = 0; | virtual void SendIqLobbyAuth(const std::string& to, const std::string& token) = 0; | ||||
virtual void SetNick(const std::string& nick) = 0; | virtual void SetNick(const std::string& nick) = 0; | ||||
virtual void GetNick(std::string& nick) = 0; | virtual void GetNick(std::string& nick) = 0; | ||||
virtual void kick(const std::string& nick, const std::string& reason) = 0; | virtual void kick(const std::string& nick, const std::string& reason) = 0; | ||||
virtual void ban(const std::string& nick, const std::string& reason) = 0; | virtual void ban(const std::string& nick, const std::string& reason) = 0; | ||||
virtual void SetPresence(const std::string& presence) = 0; | virtual void SetPresence(const std::string& presence) = 0; | ||||
virtual void GetPresence(const std::string& nickname, std::string& presence) = 0; | virtual const char* GetPresence(const std::string& nickname) = 0; | ||||
Stan: why not a std::string / std::wstring ? | |||||
elexisAuthorUnsubmitted Done Inline Actionselexis: https://code.wildfiregames.com/D2271#94711 | |||||
virtual void GetRole(const std::string& nickname, std::string& role) = 0; | virtual const char* GetRole(const std::string& nickname) = 0; | ||||
virtual void GetSubject(std::string& subject) = 0; | virtual void GetSubject(std::string& subject) = 0; | ||||
virtual void GUIGetPlayerList(const ScriptInterface& scriptInterface, JS::MutableHandleValue ret) = 0; | virtual void GUIGetPlayerList(const ScriptInterface& scriptInterface, JS::MutableHandleValue ret) = 0; | ||||
virtual void GUIGetGameList(const ScriptInterface& scriptInterface, JS::MutableHandleValue ret) = 0; | virtual void GUIGetGameList(const ScriptInterface& scriptInterface, JS::MutableHandleValue ret) = 0; | ||||
virtual void GUIGetBoardList(const ScriptInterface& scriptInterface, JS::MutableHandleValue ret) = 0; | virtual void GUIGetBoardList(const ScriptInterface& scriptInterface, JS::MutableHandleValue ret) = 0; | ||||
virtual void GUIGetProfile(const ScriptInterface& scriptInterface, JS::MutableHandleValue ret) = 0; | virtual void GUIGetProfile(const ScriptInterface& scriptInterface, JS::MutableHandleValue ret) = 0; | ||||
virtual bool GuiPollPresenceStatusUpdate() = 0; | virtual bool GuiPollPresenceStatusUpdate() = 0; | ||||
virtual JS::Value GuiPollNewMessage(const ScriptInterface& scriptInterface) = 0; | virtual JS::Value GuiPollNewMessage(const ScriptInterface& scriptInterface) = 0; | ||||
virtual JS::Value GuiPollHistoricMessages(const ScriptInterface& scriptInterface) = 0; | virtual JS::Value GuiPollHistoricMessages(const ScriptInterface& scriptInterface) = 0; | ||||
virtual void SendMUCMessage(const std::string& message) = 0; | virtual void SendMUCMessage(const std::string& message) = 0; | ||||
virtual void SendStunEndpointToHost(const StunClient::StunEndpoint& stunEndpoint, const std::string& hostJID) = 0; | virtual void SendStunEndpointToHost(const StunClient::StunEndpoint& stunEndpoint, const std::string& hostJID) = 0; | ||||
}; | }; | ||||
extern IXmppClient *g_XmppClient; | extern IXmppClient *g_XmppClient; | ||||
extern bool g_rankedGame; | extern bool g_rankedGame; | ||||
#endif // XMPPCLIENT_H | #endif // XMPPCLIENT_H |
Wildfire Games · Phabricator
why not a std::string / std::wstring ?