13 #include "messagesession.h"
14 #include "messagefilter.h"
15 #include "messagehandler.h"
16 #include "clientbase.h"
25 : m_parent( parent ), m_target( jid ), m_messageHandler( 0 ),
26 m_types( types ), m_wantResourceTracking( wantResourceTracking ), m_hadMessages( false ), m_honorThreadID( honorTID )
47 m_thread =
"gloox" + m_parent->
getID();
54 MessageFilterList::const_iterator it = m_messageFilterList.begin();
55 for( ; it != m_messageFilterList.end(); ++it )
58 if( m_messageHandler && !msg.
body().empty() )
66 m_thread =
"gloox" + m_parent->
getID();
76 StanzaExtensionList::const_iterator it = sel.begin();
77 for( ; it != sel.end(); ++it )
78 m.addExtension( (*it));
86 m_parent->
send( msg );
89 void MessageSession::decorate(
Message& msg )
99 void MessageSession::setResource(
const std::string& resource )