aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/fileout.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2018-03-21 15:30:38 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-03-21 16:58:47 +0000
commit6abcec77bce4ddbaa02984f4033b3d3b595d4723 (patch)
treeec542e0eac384390fe8de609623090d68e881a26 /sources/shiboken2/ApiExtractor/fileout.h
parent19eed14c97188d5fc924dc147dbb787e041eca67 (diff)
shiboken/FileOut: Add an overload that takes an error message string
This makes it easier to use it from other functions. Change-Id: I6f8c5ef8900c72d09bface011c36370e9210fba3 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/fileout.h')
-rw-r--r--sources/shiboken2/ApiExtractor/fileout.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sources/shiboken2/ApiExtractor/fileout.h b/sources/shiboken2/ApiExtractor/fileout.h
index 14ce3a251..de08a824c 100644
--- a/sources/shiboken2/ApiExtractor/fileout.h
+++ b/sources/shiboken2/ApiExtractor/fileout.h
@@ -32,6 +32,8 @@
#include <QtCore/QObject>
#include <QtCore/QTextStream>
+QT_FORWARD_DECLARE_CLASS(QFile)
+
class FileOut : public QObject
{
private:
@@ -49,6 +51,10 @@ public:
}
State done();
+ State done(QString *errorMessage);
+
+ static QString msgCannotOpenForReading(const QFile &f);
+ static QString msgCannotOpenForWriting(const QFile &f);
QTextStream stream;