Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/lobby/glooxwrapper/glooxwrapper.h
Show First 20 Lines • Show All 388 Lines • ▼ Show 20 Lines | private: | ||||
ClientImpl* m_Impl; | ClientImpl* m_Impl; | ||||
Disco* m_DiscoWrapper; | Disco* m_DiscoWrapper; | ||||
public: | public: | ||||
gloox::Client* getWrapped() { return m_Wrapped; } | gloox::Client* getWrapped() { return m_Wrapped; } | ||||
bool connect(bool block = true); | bool connect(bool block = true); | ||||
gloox::ConnectionError recv(int timeout = -1); | gloox::ConnectionError recv(int timeout = -1); | ||||
std::string getID(); | |||||
void send(const IQ& iq); | void send(const IQ& iq); | ||||
void setTls(gloox::TLSPolicy tls); | void setTls(gloox::TLSPolicy tls); | ||||
void setCompression(bool compression); | void setCompression(bool compression); | ||||
void setSASLMechanisms(int mechanisms); | void setSASLMechanisms(int mechanisms); | ||||
void registerStanzaExtension(StanzaExtension* ext); | void registerStanzaExtension(StanzaExtension* ext); | ||||
void registerConnectionListener(ConnectionListener* cl); | void registerConnectionListener(ConnectionListener* cl); | ||||
Show All 38 Lines | class GLOOXWRAPPER_API IQ | ||||
NONCOPYABLE(IQ); | NONCOPYABLE(IQ); | ||||
private: | private: | ||||
gloox::IQ* m_Wrapped; | gloox::IQ* m_Wrapped; | ||||
bool m_Owned; | bool m_Owned; | ||||
public: | public: | ||||
const gloox::IQ& getWrapped() const { return *m_Wrapped; } | const gloox::IQ& getWrapped() const { return *m_Wrapped; } | ||||
IQ(const gloox::IQ& iq) : m_Wrapped(const_cast<gloox::IQ*>(&iq)), m_Owned(false) { } | IQ(const gloox::IQ& iq) : m_Wrapped(const_cast<gloox::IQ*>(&iq)), m_Owned(false) { } | ||||
IQ(gloox::IQ::IqType type, const JID& to, const string& id = ""); | IQ(gloox::IQ::IqType type, const JID& to, const string& id); | ||||
~IQ(); | ~IQ(); | ||||
void addExtension(const StanzaExtension* se); | void addExtension(const StanzaExtension* se); | ||||
const StanzaExtension* findExtension(int type) const; | const StanzaExtension* findExtension(int type) const; | ||||
template<class T> | template<class T> | ||||
inline const T* findExtension(int type) const | inline const T* findExtension(int type) const | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 218 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator