diff options
| author | Tannin <devnull@localhost> | 2013-06-15 14:42:20 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2013-06-15 14:42:20 +0200 |
| commit | 49cbe0349184419530d22782cc670946b61c9f01 (patch) | |
| tree | a73c952c93f0624771df97fa9b2b724b51ed0956 /src/logbuffer.h | |
| parent | 6069decb159ec30b7a69649294ee0e89783bb717 (diff) | |
- completed Qt5 compatibility
- added GetFileVerisonInfoW hook for Windows 8 compatibility
- fixed BossDummy to compile correctly with current version of the RGiesecke.DllExport assembly
- fixed NCC components compiling with different Framewerk versions
- dropped files-list in Nexus-tab of modinfo dialog
Diffstat (limited to 'src/logbuffer.h')
| -rw-r--r-- | src/logbuffer.h | 114 |
1 files changed, 57 insertions, 57 deletions
diff --git a/src/logbuffer.h b/src/logbuffer.h index d1e292b9..de5e887f 100644 --- a/src/logbuffer.h +++ b/src/logbuffer.h @@ -17,60 +17,60 @@ You should have received a copy of the GNU General Public License along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef LOGBUFFER_H
-#define LOGBUFFER_H
-
-#include <QObject>
-#include <QMutex>
-#include <QScopedPointer>
-#include <vector>
-
-
-class LogBuffer : public QObject
-{
- Q_OBJECT
-
-public:
-
- static void init(int messageCount, QtMsgType minMsgType, const QString &outputFileName);
-#if QT_VERSION >= 0x050000
- static void log(QtMsgType type, const QMessageLogContext &context, const QString &message);
-#else
- static void log(QtMsgType type, const char *message);
-#endif
-
- static void writeNow();
- static void cleanQuit();
-
-public:
-
- virtual ~LogBuffer();
-
- void logMessage(QtMsgType type, const QString &message);
-
-signals:
-
-public slots:
-
-private:
-
- explicit LogBuffer(int messageCount, QtMsgType minMsgType, const QString &outputFileName);
- LogBuffer(const LogBuffer &reference); // not implemented
- LogBuffer &operator=(const LogBuffer &reference); // not implemented
-
- void write() const;
-
-private:
-
- static QScopedPointer<LogBuffer> s_Instance;
- static QMutex s_Mutex;
-
- QString m_OutFileName;
- bool m_ShutDown;
- QtMsgType m_MinMsgType;
- unsigned int m_NumMessages;
- std::vector<QString> m_Messages;
-
-};
-
-#endif // LOGBUFFER_H
+#ifndef LOGBUFFER_H +#define LOGBUFFER_H + +#include <QObject> +#include <QMutex> +#include <QScopedPointer> +#include <vector> + + +class LogBuffer : public QObject +{ + Q_OBJECT + +public: + + static void init(int messageCount, QtMsgType minMsgType, const QString &outputFileName); +#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + static void log(QtMsgType type, const QMessageLogContext &context, const QString &message); +#else + static void log(QtMsgType type, const char *message); +#endif + + static void writeNow(); + static void cleanQuit(); + +public: + + virtual ~LogBuffer(); + + void logMessage(QtMsgType type, const QString &message); + +signals: + +public slots: + +private: + + explicit LogBuffer(int messageCount, QtMsgType minMsgType, const QString &outputFileName); + LogBuffer(const LogBuffer &reference); // not implemented + LogBuffer &operator=(const LogBuffer &reference); // not implemented + + void write() const; + +private: + + static QScopedPointer<LogBuffer> s_Instance; + static QMutex s_Mutex; + + QString m_OutFileName; + bool m_ShutDown; + QtMsgType m_MinMsgType; + unsigned int m_NumMessages; + std::vector<QString> m_Messages; + +}; + +#endif // LOGBUFFER_H |
