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 );
303 void setResource(
const std::string& resource );
305 typedef std::list<MessageFilter*> MessageFilterList;
306 MessageFilterList m_messageFilterList;
308 std::string m_thread;
310 bool m_wantResourceTracking;
312 bool m_honorThreadID;
318 #endif // MESSAGESESSION_H__
bool honorThreadID() const
const JID & target() const
std::list< const StanzaExtension * > StanzaExtensionList
An abstraction of a message session between any two entities.
void registerMessageHandler(MessageHandler *mh)
void setThreadID(const std::string &thread)
An abstraction of a message stanza.
The namespace for the gloox library.
A virtual interface which can be reimplemented to receive incoming message stanzas.
void removeMessageHandler()
const std::string & threadID() const
Virtual base class for message filters.
void registerMessageFilter(MessageFilter *mf)
void removeMessageFilter(MessageFilter *mf)
This is the common base class for a Jabber/XMPP Client and a Jabber Component.