30 #include <QTextStream> 32 #include <QSharedPointer> 72 void setMaximumSizeInBytes(qint64 size);
73 void setBackupCount(
int backups);
77 qint64 mCurrentSizeInBytes;
78 qint64 mMaxSizeInBytes;
89 virtual void write(
const QString& message,
Level level);
90 virtual bool isValid();
94 QTextStream mOutputStream;
95 QSharedPointer<RotationStrategy> mRotationStrategy;
virtual QIODevice::OpenMode recommendedOpenModeFlag()=0
virtual ~RotationStrategy()
Definition: QsLogDestFile.cpp:34
virtual QIODevice::OpenMode recommendedOpenModeFlag()
Definition: QsLogDestFile.h:56
virtual void includeMessageInCalculation(const QString &message)=0
virtual void setInitialInfo(const QFile &)
Definition: QsLogDestFile.h:52
Definition: QsLogDestFile.h:85
static const int MaxBackupCount
Definition: QsLogDestFile.h:64
Level
Definition: QsLogLevel.h:31
Definition: QsLogDestFile.h:60
virtual bool shouldRotate()
Definition: QsLogDestFile.h:54
Definition: QsLogDest.h:45
Definition: QsLogDestFile.h:49
virtual void setInitialInfo(const QFile &file)=0
QSharedPointer< RotationStrategy > RotationStrategyPtr
Definition: QsLogDestFile.h:82
Definition: QsLogDestFile.h:36
virtual void includeMessageInCalculation(const QString &)
Definition: QsLogDestFile.h:53
virtual void rotate()
Definition: QsLogDestFile.h:55
virtual bool shouldRotate()=0