Changeset View
Changeset View
Standalone View
Standalone View
source/lobby/IXmppClient.h
Show All 15 Lines | |||||
*/ | */ | ||||
#ifndef IXMPPCLIENT_H | #ifndef IXMPPCLIENT_H | ||||
#define IXMPPCLIENT_H | #define IXMPPCLIENT_H | ||||
#include "scriptinterface/ScriptTypes.h" | #include "scriptinterface/ScriptTypes.h" | ||||
class ScriptInterface; | class ScriptInterface; | ||||
namespace StunClient { | |||||
class StunEndpoint; | |||||
} | |||||
class IXmppClient | class IXmppClient | ||||
{ | { | ||||
public: | public: | ||||
static IXmppClient* create(const std::string& sUsername, const std::string& sPassword, const std::string& sRoom, const std::string& sNick, const int historyRequestSize = 0, bool regOpt = false); | static IXmppClient* create(const std::string& sUsername, const std::string& sPassword, const std::string& sRoom, const std::string& sNick, const int historyRequestSize = 0, bool regOpt = false); | ||||
virtual ~IXmppClient() {} | virtual ~IXmppClient() {} | ||||
virtual void connect() = 0; | virtual void connect() = 0; | ||||
Show All 17 Lines | public: | ||||
virtual void ClearPresenceUpdates() = 0; | virtual void ClearPresenceUpdates() = 0; | ||||
virtual int GetMucMessageCount() = 0; | virtual int GetMucMessageCount() = 0; | ||||
virtual void GUIGetGameList(ScriptInterface& scriptInterface, JS::MutableHandleValue ret) = 0; | virtual void GUIGetGameList(ScriptInterface& scriptInterface, JS::MutableHandleValue ret) = 0; | ||||
virtual void GUIGetBoardList(ScriptInterface& scriptInterface, JS::MutableHandleValue ret) = 0; | virtual void GUIGetBoardList(ScriptInterface& scriptInterface, JS::MutableHandleValue ret) = 0; | ||||
virtual void GUIGetProfile(ScriptInterface& scriptInterface, JS::MutableHandleValue ret) = 0; | virtual void GUIGetProfile(ScriptInterface& scriptInterface, JS::MutableHandleValue ret) = 0; | ||||
virtual void GuiPollMessage(ScriptInterface& scriptInterface, JS::MutableHandleValue ret) = 0; | virtual void GuiPollMessage(ScriptInterface& scriptInterface, JS::MutableHandleValue ret) = 0; | ||||
virtual void SendMUCMessage(const std::string& message) = 0; | virtual void SendMUCMessage(const std::string& message) = 0; | ||||
virtual void SendStunEndpointToHost(StunClient::StunEndpoint& stunEndpoint, const std::string& hostJID) = 0; | |||||
leper: This should most likely be `StunClient::StunEndpoint&`, else you can't use a forward decl. | |||||
}; | }; | ||||
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
This should most likely be StunClient::StunEndpoint&, else you can't use a forward decl.