|
NorMIT-nav
22.09
An IGT application
|
Go to the documentation of this file.
18 #include "boost/shared_ptr.hpp"
23 #include <QTextStream>
29 #include "QApplication"
34 class EventProcessingThread :
public QThread
48 qApp->processEvents();
65 QString isoDateFormat(
"yyyy-MM-dd");
66 QString isoDate = QDateTime::currentDateTime().toString(isoDateFormat);
85 mThread.reset(
new EventProcessingThread());
86 mThread->setObjectName(
"org.custusx.resource.core.logger");
115 mLogPath = absoluteLoggingFolderPath;
129 mWorker->installObserver(observer, resend);
135 mWorker->uninstallObserver(observer);
boost::shared_ptr< class LogThread > LogThreadPtr
virtual LogThreadPtr createWorker()=0
Namespace for all CustusX production code.
virtual ~EventProcessingThread()
boost::shared_ptr< class MessageObserver > MessageObserverPtr
QString getSettingsPath()
void uninstallObserver(MessageObserverPtr observer)
void loggingFolderChanged()
QString getDefaultLogPath() const
void installObserver(MessageObserverPtr observer, bool resend)
virtual void onEmittedMessage(Message message)
boost::shared_ptr< class QThread > mThread
QString getLoggingFolder() const
void emittedMessage(Message message)
emitted for each new message, in addition to writing to observer.
void setLoggingFolder(QString absoluteLoggingFolderPath)
static ProfileManager * getInstance(QString defaultProfile=QString("Laboratory"))
returns the only instance of this class