summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qfilesystemengine_p.h
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2010-10-08 16:23:55 +0100
committerShane Kearns <shane.kearns@accenture.com>2010-10-12 13:56:22 +0100
commit8ee99ee22729b4d9603fe83929116259956b81ce (patch)
tree4afec3539ce1eba54daf25875225c88e2cf2b94c /src/corelib/io/qfilesystemengine_p.h
parentbb66cbc4287d17a3f368d3e46e98ca026a5332c7 (diff)
Use QSystemError to return errors from QFileSystemEngine
Testing done: win32-msvc2008 and Mac OS X - qfile, qfileinfo, qdir, qdiriterator, qtemporaryfile autotests symbian-sbsv2 - qtcore, qtgui, qtxml autotests win32-g++ - compilation test for qmake Reviewed-By: Thomas Zander
Diffstat (limited to 'src/corelib/io/qfilesystemengine_p.h')
-rw-r--r--src/corelib/io/qfilesystemengine_p.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/corelib/io/qfilesystemengine_p.h b/src/corelib/io/qfilesystemengine_p.h
index f4d942a051..1f4aad014f 100644
--- a/src/corelib/io/qfilesystemengine_p.h
+++ b/src/corelib/io/qfilesystemengine_p.h
@@ -56,6 +56,7 @@
#include "qfile.h"
#include "qfilesystementry_p.h"
#include "qfilesystemmetadata_p.h"
+#include <QtCore/private/qsystemerror_p.h>
QT_BEGIN_NAMESPACE
@@ -91,9 +92,6 @@ public:
static QString owner(const QFileSystemEntry &entry, QAbstractFileEngine::FileOwner own);
static QString nativeAbsoluteFilePath(const QString &path);
#endif
-#ifdef Q_OS_SYMBIAN
- static QString errorString(int errorcode);
-#endif
//homePath, rootPath and tempPath shall return clean paths
static QString homePath();
static QString rootPath();
@@ -102,13 +100,13 @@ public:
static bool createDirectory(const QFileSystemEntry &entry, bool createParents);
static bool removeDirectory(const QFileSystemEntry &entry, bool removeEmptyParents);
- static bool createLink(const QFileSystemEntry &source, const QFileSystemEntry &target, QString &errorString);
+ static bool createLink(const QFileSystemEntry &source, const QFileSystemEntry &target, QSystemError &error);
- static bool copyFile(const QFileSystemEntry &source, const QFileSystemEntry &target, QString &errorString);
- static bool renameFile(const QFileSystemEntry &source, const QFileSystemEntry &target, QString &errorString);
- static bool removeFile(const QFileSystemEntry &entry, QString &errorString);
+ static bool copyFile(const QFileSystemEntry &source, const QFileSystemEntry &target, QSystemError &error);
+ static bool renameFile(const QFileSystemEntry &source, const QFileSystemEntry &target, QSystemError &error);
+ static bool removeFile(const QFileSystemEntry &entry, QSystemError &error);
- static bool setPermissions(const QFileSystemEntry &entry, QFile::Permissions permissions, QString &errorString,
+ static bool setPermissions(const QFileSystemEntry &entry, QFile::Permissions permissions, QSystemError &error,
QFileSystemMetaData *data = 0);
static bool setCurrentPath(const QFileSystemEntry &entry);