summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/fileutils.h
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2014-06-23 13:15:15 +0200
committerKarsten Heimrich <karsten.heimrich@digia.com>2014-06-24 10:31:08 +0200
commit924ebcdbc9b9e590a5f0905941e2d05ac34d4be2 (patch)
treee57fb26ece9f67e1c59f0967198350d0a511637a /src/libs/installer/fileutils.h
parent4d8d708f98172e0e49fb2f0aad2e22d7798318e5 (diff)
Split out the file IO stuff and adjust other files respectively.
Also adjust the API to use QFileDevice instead of QIODevice to make clear we just operate on files here and not on any possible device like sockets, processes etc... Change-Id: I4ecbb6e244fe4bb666ed12e62f9f5586bc1347f0 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/libs/installer/fileutils.h')
-rw-r--r--src/libs/installer/fileutils.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/libs/installer/fileutils.h b/src/libs/installer/fileutils.h
index 056cd87e0..a8efefacd 100644
--- a/src/libs/installer/fileutils.h
+++ b/src/libs/installer/fileutils.h
@@ -48,9 +48,7 @@
#include <QtCore/QStringList>
QT_BEGIN_NAMESPACE
-class QByteArray;
class QFileInfo;
-class QIODevice;
class QUrl;
QT_END_NAMESPACE
@@ -82,15 +80,6 @@ private:
QString INSTALLER_EXPORT humanReadableSize(const qint64 &size, int precision = 2);
- void INSTALLER_EXPORT openForRead(QIODevice *dev, const QString &name);
- void INSTALLER_EXPORT openForWrite(QIODevice *dev, const QString &name);
- void INSTALLER_EXPORT openForAppend(QIODevice *dev, const QString &name);
-
- qint64 INSTALLER_EXPORT blockingRead(QIODevice *in, char *buffer, qint64 size);
- void INSTALLER_EXPORT blockingCopy(QIODevice *in, QIODevice *out, qint64 size);
- qint64 INSTALLER_EXPORT blockingWrite(QIODevice *out, const char *buffer, qint64 size);
- qint64 INSTALLER_EXPORT blockingWrite(QIODevice *out, const QByteArray& ba);
-
/*!
Removes the directory at \a path recursively.
@param path The directory to remove