File indexing completed on 2024-04-21 14:55:17
0001 /* 0002 Copyright (c) 2006 David Faure <faure@kde.org> 0003 0004 This library is free software; you can redistribute it and/or 0005 modify it under the terms of the GNU Library General Public 0006 License version 2 as published by the Free Software Foundation. 0007 0008 This library is distributed in the hope that it will be useful, 0009 but WITHOUT ANY WARRANTY; without even the implied warranty of 0010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0011 Library General Public License for more details. 0012 0013 You should have received a copy of the GNU Library General Public License 0014 along with this library; see the file COPYING.LIB. If not, write to 0015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0016 Boston, MA 02110-1301, USA. 0017 */ 0018 0019 #ifndef kstandarddirstest_h 0020 #define kstandarddirstest_h 0021 0022 #include <QObject> 0023 0024 class KStandarddirsTest : public QObject 0025 { 0026 Q_OBJECT 0027 private Q_SLOTS: 0028 void initTestCase(); 0029 void testSaveLocation(); 0030 void testLocateLocal(); 0031 void testResourceDirs(); 0032 void testAppData(); 0033 void testChangeSaveLocation(); 0034 void testFindResource(); 0035 void testFindAllResources(); 0036 void testFindAllResourcesNewDir(); 0037 void testFindDirs(); 0038 void testFindResourceDir(); 0039 void testFindExe(); 0040 void testFindExeLibExec(); 0041 void testLocate(); 0042 void testRelativeLocation(); 0043 void testAddResourceType(); 0044 void testAddResourceDir(); 0045 void testSetXdgDataDirs(); 0046 void testRestrictedResources(); 0047 void testSymlinkResolution(); 0048 void testThreads(); 0049 0050 private: 0051 QString m_configHome; 0052 QString m_dataHome; 0053 bool m_canFindKConfig; 0054 }; 0055 0056 #endif