summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qfile.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.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.h')
-rw-r--r--src/corelib/io/qfile.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/corelib/io/qfile.h b/src/corelib/io/qfile.h
index bc278cf600..bf7290dda2 100644
--- a/src/corelib/io/qfile.h
+++ b/src/corelib/io/qfile.h
@@ -54,8 +54,7 @@ QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
-
-class QAbstractFileEngine;
+class QTemporaryFile;
class QFilePrivate;
class Q_CORE_EXPORT QFile : public QIODevice
@@ -174,8 +173,6 @@ public:
uchar *map(qint64 offset, qint64 size, MemoryMapFlags flags = NoOptions);
bool unmap(uchar *address);
- virtual QAbstractFileEngine *fileEngine() const;
-
protected:
#ifdef QT_NO_QOBJECT
QFile(QFilePrivate &dd);
@@ -188,6 +185,7 @@ protected:
qint64 readLineData(char *data, qint64 maxlen);
private:
+ friend class QTemporaryFile;
Q_DISABLE_COPY(QFile)
};