Changeset View
Changeset View
Standalone View
Standalone View
source/lobby/XmppClient.h
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | public: | ||||
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 SendIqGetConnectionData(const std::string& jid); | |||||
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 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); | 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); | ||||
std::string GetGameIp(const ScriptInterface& scriptInterface, const std::string& hostname, bool stun); | |||||
Silier: nuke | |||||
void SendStunEndpointToHost(const StunClient::StunEndpoint& stunEndpoint, const std::string& hostJID); | void SendStunEndpointToHost(const StunClient::StunEndpoint& stunEndpoint, const std::string& hostJID); | ||||
/** | /** | ||||
* Convert gloox values to string or time. | * Convert gloox values to string or time. | ||||
*/ | */ | ||||
static const char* GetPresenceString(const gloox::Presence::PresenceType presenceType); | static const char* GetPresenceString(const gloox::Presence::PresenceType presenceType); | ||||
static const char* GetRoleString(const gloox::MUCRoomRole role); | static const char* GetRoleString(const gloox::MUCRoomRole role); | ||||
static std::string StanzaErrorToString(gloox::StanzaError err); | static std::string StanzaErrorToString(gloox::StanzaError err); | ||||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
nuke