11 #ifndef CXREPORTERMESSAGEREPOSITORY_H 12 #define CXREPORTERMESSAGEREPOSITORY_H 14 #include "cxResourceExport.h" 53 bool testFilter(
const Message &msg)
const;
56 QStringList mChannels;
77 static MessageRepositoryPtr create();
79 void setMessage(
Message message);
81 void install(MessageObserverPtr observer,
bool resend);
82 void uninstall(MessageObserverPtr observer);
84 void setMessageQueueMaxSize(
int count);
85 int getMessageQueueMaxSize()
const;
90 void limitQueueSize();
91 void emitThroughFilter(
const Message& message);
92 QList<Message> mMessages;
93 std::vector<MessageObserverPtr> mObservers;
94 int mMessageHistoryMaxSize;
95 bool exists(MessageObserverPtr observer);
101 #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)