mirror of
https://github.com/QuasarApp/SoundBand.git
synced 2025-04-26 15:24:31 +00:00
26 lines
428 B
C++
26 lines
428 B
C++
#ifndef LOG_H
|
|
#define LOG_H
|
|
|
|
#include <QFile>
|
|
#include <QTextStream>
|
|
#include <QDateTime>
|
|
#include "sync_global.h"
|
|
|
|
enum LogType{ERROR, WARNING, INFORMATION, NONE};
|
|
|
|
class SYNCSHARED_EXPORT Log
|
|
{
|
|
public:
|
|
explicit Log(const QString &fileName);
|
|
~Log();
|
|
void setShowDateTime(bool value);
|
|
void write(const QString &value, LogType logType = NONE);
|
|
|
|
private:
|
|
QFile *file;
|
|
bool m_showDate;
|
|
|
|
};
|
|
|
|
#endif // LOG_H
|