Add (and install) svg for the new krunner interface.
[kdebase/uwolfer.git] / apps / lib / konq / tests / konqfileundomanagertest.h
blobd71222d5247f15045f9d29ffe45a09edb4029d22
1 /* This file is part of KDE
2 Copyright (c) 2006 David Faure <faure@kde.org>
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
20 #ifndef KONQFILEUNDOMANAGERTEST_H
21 #define KONQFILEUNDOMANAGERTEST_H
23 #include <QObject>
24 #include <QEventLoop>
25 class TestUiInterface;
27 class KonqFileUndoManagerTest : public QObject
29 Q_OBJECT
30 private slots:
31 void initTestCase();
32 void cleanupTestCase();
33 void testCopyFiles();
34 void testMoveFiles();
35 void testCopyDirectory();
36 void testMoveDirectory();
37 void testRenameFile();
38 void testRenameDir();
39 void testTrashFiles();
40 void testModifyFileBeforeUndo(); // #20532
41 void testCreateDir();
43 // TODO find tests that would lead to kio job errors
45 // TODO test renaming during a CopyJob.
46 // Doesn't seem possible though, requires user interaction...
48 // TODO: add test for undoing after a partial move (http://bugs.kde.org/show_bug.cgi?id=91579)
49 // Difficult too.
51 private:
52 void doUndo();
53 TestUiInterface* m_uiInterface;
56 #endif