summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/installer/utils.h')
-rw-r--r--src/libs/installer/utils.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/libs/installer/utils.h b/src/libs/installer/utils.h
index cfaeaa67d..7cd237dcc 100644
--- a/src/libs/installer/utils.h
+++ b/src/libs/installer/utils.h
@@ -67,6 +67,20 @@ namespace QInstaller {
INSTALLER_EXPORT std::ostream& operator<<(std::ostream &os, const QString &string);
+ class INSTALLER_EXPORT VerboseWriterOutput
+ {
+ public:
+ virtual bool write(const QString &fileName, QIODevice::OpenMode openMode, const QByteArray &data) = 0;
+
+ protected:
+ ~VerboseWriterOutput();
+ };
+
+ class INSTALLER_EXPORT PlainVerboseWriterOutput : public VerboseWriterOutput
+ {
+ public:
+ virtual bool write(const QString &fileName, QIODevice::OpenMode openMode, const QByteArray &data);
+ };
class INSTALLER_EXPORT VerboseWriter
{
@@ -76,6 +90,8 @@ namespace QInstaller {
static VerboseWriter *instance();
+ bool flush(VerboseWriterOutput *output);
+
void appendLine(const QString &msg);
void setFileName(const QString &fileName);