summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qfile_p.h
diff options
context:
space:
mode:
authorJoão Abecasis <joao.abecasis@nokia.com>2012-02-04 01:10:55 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-16 01:59:56 +0100
commitaf115e5bc02eea489d7c15f62e07bc0d46781c3a (patch)
treeda38840ae0d861fefde51f7b6a3be0c42d9947d4 /src/corelib/io/qfile_p.h
parent7a5bb18dc68326537ff0dc81932e715f1d129a83 (diff)
Drop QFile::fileEngine
The function was already marked as internal. By moving access to the underlying file engine to private API this supports the effort to completely drop file engines from public API. In the future, the goal is to completely drop the file-engine abstraction as it exists today. Change-Id: I332fa56e70c87e83c1e08bb9f75e04df7c93fec7 Reviewed-by: Jonas Gastal <jgastal@profusion.mobi> Reviewed-by: Anselmo L. S. Melo <anselmo.melo@openbossa.org> Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Diffstat (limited to 'src/corelib/io/qfile_p.h')
-rw-r--r--src/corelib/io/qfile_p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/corelib/io/qfile_p.h b/src/corelib/io/qfile_p.h
index b932627ec0..4a637d44a8 100644
--- a/src/corelib/io/qfile_p.h
+++ b/src/corelib/io/qfile_p.h
@@ -59,9 +59,12 @@
QT_BEGIN_NAMESPACE
+class QTemporaryFile;
+
class QFilePrivate : public QIODevicePrivate
{
Q_DECLARE_PUBLIC(QFile)
+ friend class QTemporaryFile;
protected:
QFilePrivate();
@@ -70,6 +73,8 @@ protected:
bool openExternalFile(int flags, int fd, QFile::FileHandleFlags handleFlags);
bool openExternalFile(int flags, FILE *fh, QFile::FileHandleFlags handleFlags);
+ virtual QAbstractFileEngine *engine() const;
+
QString fileName;
mutable QAbstractFileEngine *fileEngine;