36 #include "cxResourceExport.h"
44 #include "boost/shared_ptr.hpp"
45 #include "boost/function.hpp"
54 #include <QFileSystemWatcher>
94 QList<ActionType> mPendingActions;
98 void invokePendingAction();
108 typedef boost::function<void()> ActionType;
132 QPointer<ThreadMethodInvoker> mQueue;
134 int getDefaultTimeout(MESSAGE_LEVEL messageLevel)
const;
143 #endif // CXLOGTHREAD_H
virtual void logMessage(Message msg)
virtual void installObserver(MessageObserverPtr observer, bool resend)
ThreadMethodInvoker(QObject *parent)
virtual void uninstallObserver(MessageObserverPtr observer)
virtual void setLoggingFolder(QString absoluteLoggingFolderPath)
call during startup, will fail if called when running
LogThread(QObject *parent=NULL)
MessageRepositoryPtr mRepository
virtual void executeSetLoggingFolder(QString absoluteLoggingFolderPath)=0
void emittedMessage(Message message)
emitted for each new message, in addition to writing to observer.
boost::shared_ptr< class MessageObserver > MessageObserverPtr
boost::function< void()> ActionType
void callInLogThread(ThreadMethodInvoker::ActionType action)
void callInLogThread(ActionType action)
void processMessage(Message msg)
boost::shared_ptr< class MessageRepository > MessageRepositoryPtr
Message cleanupMessage(Message message)