11 #ifndef CXREPORTERMESSAGEREPOSITORY_H 12 #define CXREPORTERMESSAGEREPOSITORY_H 14 #include "cxResourceExport.h" 55 bool testFilter(
const Message &msg)
const;
58 QStringList mChannels;
79 static MessageRepositoryPtr create();
81 void setMessage(
Message message);
83 void install(MessageObserverPtr observer,
bool resend);
84 void uninstall(MessageObserverPtr observer);
86 void setMessageQueueMaxSize(
int count);
87 int getMessageQueueMaxSize()
const;
92 void limitQueueSize();
93 void emitThroughFilter(
const Message& message);
94 QList<Message> mMessages;
95 std::vector<MessageObserverPtr> mObservers;
96 int mMessageHistoryMaxSize;
97 bool exists(MessageObserverPtr observer);
103 #endif // CXREPORTERMESSAGEREPOSITORY_H void sendMessage(const Message &message)
boost::shared_ptr< class MessageFilter > MessageFilterPtr
void newChannel(QString channel)
void installFilter(MessageFilterPtr filter)
boost::shared_ptr< class MessageObserver > MessageObserverPtr
boost::shared_ptr< class MessageRepository > MessageRepositoryPtr
boost::shared_ptr< class MessageListener > MessageListenerPtr
Namespace for all CustusX production code.
void newMessage(Message message)