Changeset View
Changeset View
Standalone View
Standalone View
source/lobby/XmppClient.h
Show All 21 Lines | |||||
#include "glooxwrapper/glooxwrapper.h" | #include "glooxwrapper/glooxwrapper.h" | ||||
#include <ctime> | #include <ctime> | ||||
#include <deque> | #include <deque> | ||||
#include <string> | #include <string> | ||||
#include <vector> | #include <vector> | ||||
class ScriptInterface; | class ScriptRequest; | ||||
namespace glooxwrapper | namespace glooxwrapper | ||||
{ | { | ||||
class Client; | class Client; | ||||
struct CertInfo; | struct CertInfo; | ||||
} | } | ||||
class XmppClient : public IXmppClient, public glooxwrapper::ConnectionListener, public glooxwrapper::MUCRoomHandler, public glooxwrapper::IqHandler, public glooxwrapper::RegistrationHandler, public glooxwrapper::MessageHandler, public glooxwrapper::Jingle::SessionHandler | class XmppClient : public IXmppClient, public glooxwrapper::ConnectionListener, public glooxwrapper::MUCRoomHandler, public glooxwrapper::IqHandler, public glooxwrapper::RegistrationHandler, public glooxwrapper::MessageHandler, public glooxwrapper::Jingle::SessionHandler | ||||
▲ Show 20 Lines • Show All 114 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 GuiPollNewMessages(const ScriptInterface& scriptInterface); | JS::Value GuiPollNewMessages(const ScriptInterface& guiInterface); | ||||
JS::Value GuiPollHistoricMessages(const ScriptInterface& scriptInterface); | JS::Value GuiPollHistoricMessages(const ScriptInterface& guiInterface); | ||||
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, | ||||
const std::string& level, | const std::string& level, | ||||
Show All 36 Lines |
Wildfire Games · Phabricator