File indexing completed on 2024-05-12 04:19:58
0001 /* 0002 Gwenview: an image viewer 0003 Copyright 2009 Aurélien Gâteau <agateau@kde.org> 0004 0005 This program is free software; you can redistribute it and/or 0006 modify it under the terms of the GNU General Public License 0007 as published by the Free Software Foundation; either version 2 0008 of the License, or (at your option) any later version. 0009 0010 This program is distributed in the hope that it will be useful, 0011 but WITHOUT ANY WARRANTY; without even the implied warranty of 0012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0013 GNU General Public License for more details. 0014 0015 You should have received a copy of the GNU General Public License 0016 along with this program; if not, write to the Free Software 0017 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 0018 0019 */ 0020 #ifndef IMPORTERTEST_H 0021 #define IMPORTERTEST_H 0022 0023 // stdc++ 0024 #include <memory> 0025 0026 // Qt 0027 #include <QObject> 0028 #include <QTemporaryDir> 0029 #include <QUrl> 0030 0031 // KF 0032 0033 class ImporterTest : public QObject 0034 { 0035 Q_OBJECT 0036 0037 private Q_SLOTS: 0038 void init(); 0039 void testContentsAreIdentical(); 0040 void testSuccessfulImport(); 0041 void testSuccessfulImportRemote(); 0042 void testAutoRenameFormat(); 0043 void testReadOnlyDestination(); 0044 void testFileNameFormater(); 0045 void testFileNameFormater_data(); 0046 void testSkippedUrlList(); 0047 void testRenamedCount(); 0048 0049 private: 0050 std::unique_ptr<QTemporaryDir> mTempDir; 0051 QList<QUrl> mDocumentList; 0052 }; 0053 0054 #endif /* IMPORTERTEST_H */