]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/tests/testdir.cpp
Merged very early alpha-version of Dolphin 2.0
[dolphin.git] / src / tests / testdir.cpp
index 64d7f1aaab766afd3705b52f9b5483d58114f473..5e961d2abecd1858c9b362b5750eb9b7fd24392d 100644 (file)
 #include <sys/utime.h>
 #endif
 
-/** The following function is taken from kdelibs/kio/tests/kiotesthelper.h, copyright (C) 2006 by David Faure */
+TestDir::TestDir()
+{
+}
+
+TestDir::~TestDir()
+{
+}
 
+KUrl TestDir::url() const
+{
+    return KUrl(name());
+}
+
+/** The following function is taken from kdelibs/kio/tests/kiotesthelper.h, copyright (C) 2006 by David Faure */
 static void setTimeStamp(const QString& path, const QDateTime& mtime)
 {
 #ifdef Q_OS_UNIX
@@ -63,7 +75,7 @@ void TestDir::createFile(const QString& path, const QByteArray& data, const QDat
 
 void TestDir::createFiles(const QStringList& files)
 {
-    foreach(const QString& path, files) {
+    foreach (const QString& path, files) {
         createFile(path);
     }
 }