Go to the documentation of this file.00001
00006 #ifndef LOGMESSAGE_H
00007 #define LOGMESSAGE_H
00008
00009 #include <QtGlobal>
00010 #include <QDateTime>
00011 #include <QHash>
00012
00027 class LogMessage
00028 {
00029 Q_DISABLE_COPY(LogMessage)
00030 public:
00031
00039 LogMessage(const QtMsgType type, const QString& message, QHash<QString,QString>* logVars);
00040
00048 QString toString(const QString& msgFormat, const QString& timestampFormat) const;
00049
00053 QtMsgType getType() const;
00054
00055 private:
00056
00058 QHash<QString,QString> logVars;
00059
00061 QDateTime timestamp;
00062
00064 QtMsgType type;
00065
00067 Qt::HANDLE threadId;
00068
00070 QString message;
00071
00072 };
00073
00074 #endif // LOGMESSAGE_H