~ubuntu-branches/debian/sid/kde-baseapps/sid

« back to all changes in this revision

Viewing changes to dolphin/src/tests/testdir.h

  • Committer: Package Import Robot
  • Author(s): Modestas Vainius, Eshat Cakar, Pino Toscano
  • Date: 2012-06-09 22:18:08 UTC
  • mfrom: (4.2.1) (6.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20120609221808-h1l0ekd5qmb8nefr
Tags: 4:4.8.4-1
* New upstream release.

[ Eshat Cakar ]
* Add watch file.
* Bump kde-sc-dev-latest build dependency to version 4:4.8.4.
* Update installed files.

[ Pino Toscano ]
* Move files of the konqueror documentation from kde-baseapps-data to
  konqueror itself.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 * TestDir provides a temporary directory. In addition to KTempDir, it has
30
30
 * methods that create files and subdirectories inside the directory.
31
31
 */
32
 
 
33
32
class TestDir : public KTempDir
34
33
{
35
34
 
36
35
public:
37
 
 
38
 
    TestDir() {}
39
 
    ~TestDir() {}
40
 
 
41
 
    KUrl url() const { return KUrl(name()); }
 
36
    TestDir();
 
37
    virtual ~TestDir();
 
38
 
 
39
    KUrl url() const;
42
40
 
43
41
    /**
44
42
     * The following functions create either a file, a list of files, or a directory.
45
43
     * The paths may be absolute or relative to the test directory. Any missing parent
46
44
     * directories will be created automatically.
47
45
     */
48
 
 
49
 
    void createFile(const QString& path, const QByteArray& data = QByteArray("test"), const QDateTime& time = QDateTime());
 
46
    void createFile(const QString& path,
 
47
                    const QByteArray& data = QByteArray("test"),
 
48
                    const QDateTime& time = QDateTime());
50
49
    void createFiles(const QStringList& files);
51
50
    void createDir(const QString& path, const QDateTime& time = QDateTime());
52
51
 
 
52
    void removeFile(const QString& path);
 
53
 
53
54
private:
54
 
 
55
55
    void makePathAbsoluteAndCreateParents(QString& path);
56
56
 
57
57
};