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; }
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__