14 #ifndef MESSAGESESSION_H__
15 #define MESSAGESESSION_H__
190 const std::string&
threadID()
const {
return m_thread; }
197 void setThreadID(
const std::string& thread ) { m_thread = thread; }
213 { m_messageHandler = mh; }
220 { m_messageHandler = 0; }
226 virtual void send(
const std::string& message );
236 virtual void send(
const std::string& message,
const std::string& subject,
248 { m_messageFilterList.push_back( mf ); }
256 { m_messageFilterList.remove( mf ); }
269 int types()
const {
return m_types; }
279 void resetResource();
286 virtual void handleMessage(
Message& msg );
295 virtual void send(
const Message& msg );
297 void setResource(
const std::string& resource );
299 typedef std::list<MessageFilter*> MessageFilterList;
300 MessageFilterList m_messageFilterList;
307 std::string m_thread;
309 bool m_wantResourceTracking;
311 bool m_honorThreadID;
This is the common base class for a Jabber/XMPP Client and a Jabber Component.
Virtual base class for message filters.
A virtual interface which can be reimplemented to receive incoming message stanzas.
An abstraction of a message session between any two entities.
const JID & target() const
void registerMessageFilter(MessageFilter *mf)
void registerMessageHandler(MessageHandler *mh)
bool honorThreadID() const
void removeMessageFilter(MessageFilter *mf)
const std::string & threadID() const
void removeMessageHandler()
void setThreadID(const std::string &thread)
An abstraction of a message stanza.
The namespace for the gloox library.
std::list< const StanzaExtension * > StanzaExtensionList