mirror of
https://github.com/chenx-dust/EZ4Connect.git
synced 2026-09-20 10:23:33 +08:00
27 lines
448 B
C++
27 lines
448 B
C++
#ifndef CORELOGFILE_H
|
|
#define CORELOGFILE_H
|
|
|
|
#include <QFile>
|
|
#include <QObject>
|
|
#include <QTextStream>
|
|
|
|
class CoreLogFile : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit CoreLogFile(const QString &filePath, QObject *parent = nullptr);
|
|
~CoreLogFile() override;
|
|
|
|
QString filePath() const;
|
|
bool isOpen() const;
|
|
|
|
void appendOutput(const QString &output);
|
|
|
|
private:
|
|
QFile file;
|
|
QTextStream stream;
|
|
};
|
|
|
|
#endif // CORELOGFILE_H
|