]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/tests/testdir.h
Remove the automoc noise
[dolphin.git] / src / tests / testdir.h
index bff46269064efe99d07102458138ce7c0249de4c..0d3c5dd8d36ec68bd58ee1eeb31b544d2cd73e73 100644 (file)
  * TestDir provides a temporary directory. In addition to KTempDir, it has
  * methods that create files and subdirectories inside the directory.
  */
-
 class TestDir : public KTempDir
 {
 
 public:
+    TestDir(const QString& directoryPrefix = QString());
+    virtual ~TestDir();
 
-    TestDir() {}
-    ~TestDir() {}
-
-    KUrl url() const { return KUrl(name()); }
+    KUrl url() const;
 
     /**
      * The following functions create either a file, a list of files, or a directory.
      * The paths may be absolute or relative to the test directory. Any missing parent
      * directories will be created automatically.
      */
-
-    void createFile(const QString& path, const QByteArray& data = QByteArray("test"), const QDateTime& time = QDateTime());
+    void createFile(const QString& path,
+                    const QByteArray& data = QByteArray("test"),
+                    const QDateTime& time = QDateTime());
     void createFiles(const QStringList& files);
     void createDir(const QString& path, const QDateTime& time = QDateTime());
 
-private:
+    void removeFile(const QString& path);
 
+private:
     void makePathAbsoluteAndCreateParents(QString& path);
 
 };