Client app template and ui

This commit is contained in:
pokamest 2020-11-23 16:20:25 +03:00
parent 3006c67472
commit f68415f08e
53 changed files with 4280 additions and 0 deletions

27
client/publib/debug.h Normal file
View file

@ -0,0 +1,27 @@
#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