|
| | XmppClient (const ScriptInterface *scriptInterface, const std::string &sUsername, const std::string &sPassword, const std::string &sRoom, const std::string &sNick, const int historyRequestSize=0, const bool regOpt=false) |
| | Construct the XMPP client. More...
|
| |
| virtual | ~XmppClient () |
| | Destroy the xmpp client. More...
|
| |
| void | TraceMember (JSTracer *trc) |
| |
| void | connect () |
| | Network. More...
|
| |
| void | disconnect () |
| |
| bool | isConnected () |
| |
| void | recv () |
| |
| void | SendIqGetBoardList () |
| | Request the leaderboard data from the server. More...
|
| |
| void | SendIqGetProfile (const std::string &player) |
| | Request the profile data from the server. More...
|
| |
| void | SendIqGameReport (const ScriptRequest &rq, JS::HandleValue data) |
| | Send game report containing numerous game properties to the server. More...
|
| |
| void | SendIqRegisterGame (const ScriptRequest &rq, JS::HandleValue data) |
| | Send a request to register a game to the server. More...
|
| |
| void | SendIqGetConnectionData (const std::string &jid, const std::string &password, const std::string &clientSalt, bool localIP) |
| | Request the Connection data (ip, port...) from the server. More...
|
| |
| void | SendIqUnregisterGame () |
| | Send a request to unregister a game to the server. More...
|
| |
| void | SendIqChangeStateGame (const std::string &nbp, const std::string &players) |
| | Send a request to change the state of a registered game on the server. More...
|
| |
| void | SendIqLobbyAuth (const std::string &to, const std::string &token) |
| | Send lobby authentication token. More...
|
| |
| void | SetNick (const std::string &nick) |
| | Request nick change, real change via mucRoomHandler. More...
|
| |
| std::string | GetNick () const |
| | Get current nickname. More...
|
| |
| std::string | GetJID () const |
| |
| void | kick (const std::string &nick, const std::string &reason) |
| | Kick a player from the current room. More...
|
| |
| void | ban (const std::string &nick, const std::string &reason) |
| | Ban a player from the current room. More...
|
| |
| void | SetPresence (const std::string &presence) |
| | Change the xmpp presence of the client. More...
|
| |
| const char * | GetPresence (const std::string &nickname) |
| | Get the current xmpp presence of the given nick. More...
|
| |
| const char * | GetRole (const std::string &nickname) |
| | Get the current xmpp role of the given nick. More...
|
| |
| std::wstring | GetRating (const std::string &nickname) |
| | Get the most recent received rating of the given nick. More...
|
| |
| const std::wstring & | GetSubject () |
| | Get current subject. More...
|
| |
| JS::Value | GUIGetPlayerList (const ScriptRequest &rq) |
| | Handle requests from the GUI for the list of players. More...
|
| |
| JS::Value | GUIGetGameList (const ScriptRequest &rq) |
| | Handle requests from the GUI for the list of all active games. More...
|
| |
| JS::Value | GUIGetBoardList (const ScriptRequest &rq) |
| | Handle requests from the GUI for leaderboard data. More...
|
| |
| JS::Value | GUIGetProfile (const ScriptRequest &rq) |
| | Handle requests from the GUI for profile data. More...
|
| |
| void | SendStunEndpointToHost (const std::string &ip, u16 port, const std::string &hostJID) |
| |
| JS::Value | GuiPollNewMessages (const ScriptInterface &guiInterface) |
| |
| JS::Value | GuiPollHistoricMessages (const ScriptInterface &guiInterface) |
| |
| bool | GuiPollHasPlayerListUpdate () |
| |
| void | SendMUCMessage (const std::string &message) |
| | Send a standard MUC textual message. More...
|
| |
| virtual | ~IXmppClient () |
| |
| virtual void | connect ()=0 |
| |
| virtual void | disconnect ()=0 |
| |
| virtual bool | isConnected ()=0 |
| |
| virtual void | recv ()=0 |
| |
| virtual void | SendIqGetBoardList ()=0 |
| |
| virtual void | SendIqGetProfile (const std::string &player)=0 |
| |
| virtual void | SendIqGameReport (const ScriptRequest &rq, JS::HandleValue data)=0 |
| |
| virtual void | SendIqRegisterGame (const ScriptRequest &rq, JS::HandleValue data)=0 |
| |
| virtual void | SendIqGetConnectionData (const std::string &jid, const std::string &password, const std::string &clientSalt, bool localIP)=0 |
| |
| virtual void | SendIqUnregisterGame ()=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 | SetNick (const std::string &nick)=0 |
| |
| virtual std::string | GetNick () const =0 |
| |
| virtual std::string | GetJID () const =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 | SetPresence (const std::string &presence)=0 |
| |
| virtual const char * | GetPresence (const std::string &nickname)=0 |
| |
| virtual const char * | GetRole (const std::string &nickname)=0 |
| |
| virtual std::wstring | GetRating (const std::string &nickname)=0 |
| |
| virtual const std::wstring & | GetSubject ()=0 |
| |
| virtual JS::Value | GUIGetPlayerList (const ScriptRequest &rq)=0 |
| |
| virtual JS::Value | GUIGetGameList (const ScriptRequest &rq)=0 |
| |
| virtual JS::Value | GUIGetBoardList (const ScriptRequest &rq)=0 |
| |
| virtual JS::Value | GUIGetProfile (const ScriptRequest &rq)=0 |
| |
| virtual JS::Value | GuiPollNewMessages (const ScriptInterface &guiInterface)=0 |
| |
| virtual JS::Value | GuiPollHistoricMessages (const ScriptInterface &guiInterface)=0 |
| |
| virtual bool | GuiPollHasPlayerListUpdate ()=0 |
| |
| virtual void | SendMUCMessage (const std::string &message)=0 |
| |
| virtual void | SendStunEndpointToHost (const std::string &ip, u16 port, const std::string &hostJID)=0 |
| |
| virtual | ~ConnectionListener () |
| |
| virtual void | onConnect ()=0 |
| |
| virtual void | onDisconnect (gloox::ConnectionError e)=0 |
| |
| virtual bool | onTLSConnect (const CertInfo &info)=0 |
| |
Public Member Functions inherited from glooxwrapper::MUCRoomHandler |
| virtual | ~MUCRoomHandler () |
| |
| virtual void | handleMUCParticipantPresence (MUCRoom &room, const MUCRoomParticipant participant, const Presence &presence)=0 |
| |
| virtual void | handleMUCMessage (MUCRoom &room, const Message &msg, bool priv)=0 |
| |
| virtual void | handleMUCError (MUCRoom &room, gloox::StanzaError error)=0 |
| |
| virtual void | handleMUCSubject (MUCRoom &room, const string &nick, const string &subject)=0 |
| |
Public Member Functions inherited from glooxwrapper::IqHandler |
| virtual | ~IqHandler () |
| |
| virtual bool | handleIq (const IQ &iq)=0 |
| |
| virtual void | handleIqID (const IQ &iq, int context)=0 |
| |
Public Member Functions inherited from glooxwrapper::RegistrationHandler |
| virtual | ~RegistrationHandler () |
| |
| virtual void | handleRegistrationFields (const JID &from, int fields, string instructions)=0 |
| |
| virtual void | handleAlreadyRegistered (const JID &from)=0 |
| |
| virtual void | handleRegistrationResult (const JID &from, gloox::RegistrationResult regResult)=0 |
| |
| virtual void | handleDataForm (const JID &from, const DataForm &form)=0 |
| |
| virtual void | handleOOB (const JID &from, const OOB &oob)=0 |
| |
Public Member Functions inherited from glooxwrapper::MessageHandler |
| virtual | ~MessageHandler () |
| |
| virtual void | handleMessage (const Message &msg, MessageSession *session=0)=0 |
| |
Public Member Functions inherited from glooxwrapper::Jingle::SessionHandler |
| virtual | ~SessionHandler () |
| |
| virtual void | handleSessionAction (gloox::Jingle::Action action, Session &session, const Session::Jingle &jingle)=0 |
| |
|
| static void | Trace (JSTracer *trc, void *data) |
| |
| static const char * | GetPresenceString (const gloox::Presence::PresenceType presenceType) |
| | Convert gloox values to string or time. More...
|
| |
| static const char * | GetRoleString (const gloox::MUCRoomRole role) |
| | Convert a gloox role type to an untranslated string literal to be used as an identifier by the scripts. More...
|
| |
| static std::string | StanzaErrorToString (gloox::StanzaError err) |
| | Convert a gloox stanza error type to string. More...
|
| |
| static std::string | RegistrationResultToString (gloox::RegistrationResult res) |
| | Convert a gloox registration result enum to string Keep in sync with Gloox documentation. More...
|
| |
| static std::string | ConnectionErrorToString (gloox::ConnectionError err) |
| | Convert a gloox connection error enum to string Keep in sync with Gloox documentation. More...
|
| |
| static std::string | CertificateErrorToString (gloox::CertStatus status) |
| | Translates a gloox certificate error codes, i.e. More...
|
| |
| static std::time_t | ComputeTimestamp (const glooxwrapper::Message &msg) |
| | Parse and return the timestamp of a historic chat message and return the current time for new chat messages. More...
|
| |
| static IXmppClient * | create (const ScriptInterface *scriptInterface, const std::string &sUsername, const std::string &sPassword, const std::string &sRoom, const std::string &sNick, const int historyRequestSize=0, bool regOpt=false) |
| |
|
| virtual void | handleMUCParticipantPresence (glooxwrapper::MUCRoom &room, const glooxwrapper::MUCRoomParticipant, const glooxwrapper::Presence &) |
| | Update local data when a user changes presence. More...
|
| |
| virtual void | handleMUCError (glooxwrapper::MUCRoom &room, gloox::StanzaError) |
| | Handle MUC room errors. More...
|
| |
| virtual void | handleMUCMessage (glooxwrapper::MUCRoom &room, const glooxwrapper::Message &msg, bool priv) |
| | Handle a room message. More...
|
| |
| virtual void | handleMUCSubject (glooxwrapper::MUCRoom &room, const glooxwrapper::string &nick, const glooxwrapper::string &subject) |
| | Update local cache when subject changes. More...
|
| |
| virtual void | handleLog (gloox::LogLevel level, gloox::LogArea area, const std::string &message) |
| | Log (debug) Handler. More...
|
| |
| virtual void | onConnect () |
| | Handle connection. More...
|
| |
| virtual void | onDisconnect (gloox::ConnectionError e) |
| | Handle disconnection. More...
|
| |
| virtual bool | onTLSConnect (const glooxwrapper::CertInfo &info) |
| | Handle TLS connection. More...
|
| |
| virtual bool | handleIq (const glooxwrapper::IQ &iq) |
| | Handle portions of messages containing custom stanza extensions. More...
|
| |
| virtual void | handleIqID (const glooxwrapper::IQ &, int) |
| |
| virtual void | handleRegistrationFields (const glooxwrapper::JID &, int fields, glooxwrapper::string instructions) |
| |
| virtual void | handleRegistrationResult (const glooxwrapper::JID &, gloox::RegistrationResult result) |
| |
| virtual void | handleAlreadyRegistered (const glooxwrapper::JID &) |
| |
| virtual void | handleDataForm (const glooxwrapper::JID &, const glooxwrapper::DataForm &) |
| |
| virtual void | handleOOB (const glooxwrapper::JID &, const glooxwrapper::OOB &oob) |
| |
| virtual void | handleMessage (const glooxwrapper::Message &msg, glooxwrapper::MessageSession *session) |
| | Handle a private message. More...
|
| |
| 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) |
| |
| template<typename... Args> |
| void | CreateGUIMessage (const std::string &type, const std::string &level, const std::time_t time, Args const &... args) |
| |