summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoão Abecasis <joao.abecasis@nokia.com>2010-09-03 09:31:43 (GMT)
committerJoão Abecasis <joao.abecasis@nokia.com>2010-09-03 18:39:49 (GMT)
commitc4606e7fc8eeb52cd8966d317a77e4a69b0f2359 (patch)
tree5d69259ab1f6c48ba8a741396006702af4e0cd42 /src
parent00bcd42c9ec6cb723fdccb08bb969eef0e5f1f0f (diff)
downloadQt-c4606e7fc8eeb52cd8966d317a77e4a69b0f2359.zip
Qt-c4606e7fc8eeb52cd8966d317a77e4a69b0f2359.tar.gz
Qt-c4606e7fc8eeb52cd8966d317a77e4a69b0f2359.tar.bz2
QFileSystemEngine/Mac: keep it empty until needed
Added qfilesystemengine_mac to the build system, but hollowed it out. This way, it is ready for immediate use without having unnecessary stubs that can be found in the _unix version already.
Diffstat (limited to 'src')
-rw-r--r--src/corelib/io/io.pri1
-rw-r--r--src/corelib/io/qfilesystemengine_mac.cpp77
-rw-r--r--src/tools/bootstrap/bootstrap.pro1
3 files changed, 3 insertions, 76 deletions
diff --git a/src/corelib/io/io.pri b/src/corelib/io/io.pri
index 5d10216..7c3712e 100644
--- a/src/corelib/io/io.pri
+++ b/src/corelib/io/io.pri
@@ -81,6 +81,7 @@ win32 {
else:SOURCES += io/qprocess_unix.cpp
macx-*: {
HEADERS += io/qfilesystemwatcher_fsevents_p.h
+ SOURCES += io/qfilesystemengine_mac.cpp
SOURCES += io/qsettings_mac.cpp io/qfilesystemwatcher_fsevents.cpp
}
diff --git a/src/corelib/io/qfilesystemengine_mac.cpp b/src/corelib/io/qfilesystemengine_mac.cpp
index c915a2c..30d7fa5 100644
--- a/src/corelib/io/qfilesystemengine_mac.cpp
+++ b/src/corelib/io/qfilesystemengine_mac.cpp
@@ -43,81 +43,6 @@
QT_BEGIN_NAMESPACE
-bool QFileSystemEngine::isCaseSensitive()
-{
- return true;
-}
-
-//static
-QFileSystemEntry QFileSystemEngine::getLinkTarget(const QFileSystemEntry &link)
-{
- return link; // TODO implement
-}
-
-//static
-QFileSystemEntry QFileSystemEngine::canonicalName(const QFileSystemEntry &entry)
-{
- return entry; // TODO implement;
-}
-
-//static
-QFileSystemEntry QFileSystemEngine::absoluteName(const QFileSystemEntry &entry)
-{
- return entry; // TODO implement;
-}
-
-//static
-QString QFileSystemEngine::bundleName(const QFileSystemEntry &entry)
-{
- return QString(); // TODO implement;
-}
-
-//static
-bool QFileSystemEngine::fillMetaData(const QFileSystemEntry &entry, QFileSystemMetaData &data, QFileSystemMetaData::MetaDataFlags what)
-{
- return false; // TODO implement;
-}
-
-//static
-bool QFileSystemEngine::createDirectory(const QFileSystemEntry &entry, bool createParents)
-{
- return false; // TODO implement;
-}
-
-//static
-bool QFileSystemEngine::removeDirectory(const QFileSystemEntry &entry, bool removeEmptyParents)
-{
- return false; // TODO implement;
-}
-
-//static
-bool QFileSystemEngine::createLink(const QFileSystemEntry &source, const QFileSystemEntry &target)
-{
- return false; // TODO implement;
-}
-
-//static
-bool QFileSystemEngine::copyFile(const QFileSystemEntry &source, const QFileSystemEntry &target)
-{
- return false; // TODO implement;
-}
-
-//static
-bool QFileSystemEngine::renameFile(const QFileSystemEntry &source, const QFileSystemEntry &target)
-{
- return false; // TODO implement;
-}
-
-//static
-bool QFileSystemEngine::removeFile(const QFileSystemEntry &entry)
-{
- return false; // TODO implement;
-}
-
-//static
-bool QFileSystemEngine::setPermissions(const QFileSystemEntry &entry, QFile::Permissions permissions, QFileSystemMetaData *data)
-{
- return false; // TODO implement;
-}
+// Mac-specific implementations only!
QT_END_NAMESPACE
diff --git a/src/tools/bootstrap/bootstrap.pro b/src/tools/bootstrap/bootstrap.pro
index 6d2f760..016fdc0 100644
--- a/src/tools/bootstrap/bootstrap.pro
+++ b/src/tools/bootstrap/bootstrap.pro
@@ -97,6 +97,7 @@ win32:SOURCES += ../../corelib/io/qfilesystemengine_win.cpp \
macx: {
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.4 #enables weak linking for 10.4 (exported)
+ SOURCES += ../../corelib/io/qfilesystemengine_mac.cpp
SOURCES += ../../corelib/kernel/qcore_mac.cpp
LIBS += -framework CoreServices
}