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; }
219 void removeMessageHandler()
220 { m_messageHandler = 0; }
230 virtual void send(
const std::string& message,
const std::string& subject =
EmptyString,
242 { m_messageFilterList.push_back( mf ); }
250 { m_messageFilterList.remove( mf ); }
263 int types()
const {
return m_types; }
273 void resetResource();
280 virtual void handleMessage(
Message& msg );
289 virtual void send(
const Message& msg );
297 void setResource(
const std::string& resource );
299 typedef std::list<MessageFilter*> MessageFilterList;
300 MessageFilterList m_messageFilterList;
302 std::string m_thread;
304 bool m_wantResourceTracking;
306 bool m_honorThreadID;
312 #endif // MESSAGESESSION_H__