36 #include "cxResourceExport.h"
43 #include "boost/shared_ptr.hpp"
44 #include "boost/function.hpp"
53 #include <QFileSystemWatcher>
80 typedef boost::function<void()> PendingActionType;
105 QMutex mActionsMutex;
106 QList<PendingActionType> mPendingActions;
108 bool executeAction();
109 PendingActionType popAction();
110 void invokePendingAction();
111 int getDefaultTimeout(MESSAGE_LEVEL messageLevel)
const;
120 #endif // CXLOGTHREAD_H
void callInLogThread(PendingActionType &action)
virtual void logMessage(Message msg)
virtual void installObserver(MessageObserverPtr observer, bool resend)
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
void processMessage(Message msg)
boost::shared_ptr< class MessageRepository > MessageRepositoryPtr
Message cleanupMessage(Message message)