CustusX  2020.11.07-dev+develop.4ce4a
An IGT application
cx::MessageListener Class Reference

#include <cxMessageListener.h>

Inheritance diagram for cx::MessageListener:

Signals

void newMessage (Message message)
 
void newChannel (QString channel)
 

Public Member Functions

MessageListenerPtr clone ()
 
 ~MessageListener ()
 
bool containsErrors () const
 
bool containsText (const QString text) const
 
QList< MessagegetMessages () const
 
void restart ()
 
void installFilter (MessageFilterPtr)
 
void setMessageQueueMaxSize (int count)
 
int getMessageQueueMaxSize () const
 

Static Public Member Functions

static MessageListenerPtr create (LogPtr log=LogPtr())
 
static MessageListenerPtr createWithQueue (LogPtr log=LogPtr(), int size=1000)
 

Detailed Description

Utility for listening to the Reporter and storing messages from it.

Messages are passed throught MessageFilter before being emitted from this class.

Date
2014-03-09
Author
christiana

Definition at line 38 of file cxMessageListener.h.

Constructor & Destructor Documentation

cx::MessageListener::~MessageListener ( )

Definition at line 60 of file cxMessageListener.cpp.

Member Function Documentation

MessageListenerPtr cx::MessageListener::clone ( )

Definition at line 35 of file cxMessageListener.cpp.

bool cx::MessageListener::containsErrors ( ) const

Definition at line 91 of file cxMessageListener.cpp.

bool cx::MessageListener::containsText ( const QString  text) const

Definition at line 106 of file cxMessageListener.cpp.

MessageListenerPtr cx::MessageListener::create ( LogPtr  log = LogPtr())
static

Definition at line 23 of file cxMessageListener.cpp.

MessageListenerPtr cx::MessageListener::createWithQueue ( LogPtr  log = LogPtr(),
int  size = 1000 
)
static

Definition at line 28 of file cxMessageListener.cpp.

int cx::MessageListener::getMessageQueueMaxSize ( ) const

Definition at line 134 of file cxMessageListener.cpp.

QList< Message > cx::MessageListener::getMessages ( ) const

Definition at line 139 of file cxMessageListener.cpp.

void cx::MessageListener::installFilter ( MessageFilterPtr  filter)

Definition at line 123 of file cxMessageListener.cpp.

void cx::MessageListener::newChannel ( QString  channel)
signal
void cx::MessageListener::newMessage ( Message  message)
signal
void cx::MessageListener::restart ( )

Definition at line 118 of file cxMessageListener.cpp.

void cx::MessageListener::setMessageQueueMaxSize ( int  count)

Definition at line 129 of file cxMessageListener.cpp.


The documentation for this class was generated from the following files: