Refactoring
This commit is contained in:
parent
3e223f0e4b
commit
c9bc8aa8c1
23 changed files with 117 additions and 2280 deletions
|
@ -1,27 +0,0 @@
|
|||
#ifndef DEBUG_H
|
||||
#define DEBUG_H
|
||||
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
#include <QString>
|
||||
#include <QDir>
|
||||
|
||||
class Debug
|
||||
{
|
||||
public:
|
||||
static bool init();
|
||||
static QString getPathToClientLog();
|
||||
static QString getPathToLogsDir();
|
||||
|
||||
private:
|
||||
static bool init(QDir& appDir);
|
||||
|
||||
private:
|
||||
static QFile m_clientLog;
|
||||
static QTextStream m_clientLogTextStream;
|
||||
static QString m_clientLogName;
|
||||
|
||||
friend void debugMessageHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg);
|
||||
};
|
||||
|
||||
#endif // DEBUG_H
|
Loading…
Add table
Add a link
Reference in a new issue