1 #ifndef __libquark_util_FileLoggerDevice_hxx 2 #define __libquark_util_FileLoggerDevice_hxx 6 #include <QScopedPointer> 39 qint64 maxFileSize = 1024 * 1024,
int numBacklogFiles = 2);
53 virtual bool open(OpenMode mode);
59 virtual bool isSequential()
const;
62 virtual qint64 bytesAvailable()
const;
70 virtual qint64 readData(
char *data, qint64 maxlen);
82 virtual qint64 writeData(
const char *data, qint64 maxSize);
87 QString generateFilePath(
int n = 0);
93 QScopedPointer<QFile> _file;
100 #endif // __libquark_util_FileLoggerDevice_hxx Definition: BarChartView.h++:6
An implementation of QIODevice that writes lines of text to a rotating list of files.
Definition: FileLoggerDevice.h++:25
#define LIBQUARK_API
Definition: Quark.h++:18
static const char * LOG_FILE_EXTENSION
The file extension for the log files created by this object.
Definition: FileLoggerDevice.h++:65