14 #ifndef MESSAGESESSION_H__
15 #define MESSAGESESSION_H__
189 const std::string&
threadID()
const {
return m_thread; }
196 void setThreadID(
const std::string& thread ) { m_thread = thread; }
212 { m_messageHandler = mh; }
218 void removeMessageHandler()
219 { m_messageHandler = 0; }
229 virtual void send(
const std::string& message,
const std::string& subject =
EmptyString,
241 { m_messageFilterList.push_back( mf ); }
249 { m_messageFilterList.remove( mf ); }
262 int types()
const {
return m_types; }
270 void resetResource();
277 virtual void handleMessage(
Message& msg );
286 virtual void send(
const Message& msg );
294 void setResource(
const std::string& resource );
296 typedef std::list<MessageFilter*> MessageFilterList;
297 MessageFilterList m_messageFilterList;
299 std::string m_thread;
303 bool m_honorThreadID;
309 #endif // MESSAGESESSION_H__