File indexing completed on 2024-04-21 03:54:52

0001 /*
0002     This file is part of the KDE project
0003     SPDX-FileCopyrightText: 2006 David Faure <faure@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 #ifndef KFILEITEMTEST_H
0008 #define KFILEITEMTEST_H
0009 
0010 #include <QObject>
0011 
0012 class KFileItemTest : public QObject
0013 {
0014     Q_OBJECT
0015 private Q_SLOTS:
0016     void initTestCase();
0017     void testPermissionsString();
0018     void testNull();
0019     void testDoesNotExist();
0020     void testDetach();
0021     void testMove();
0022     void testMimeTypeCtor();
0023     void testBasic();
0024     void testRootDirectory();
0025     void testHiddenFile();
0026     void testMimeTypeOnDemand();
0027     void testCmp();
0028     void testCmpAndInit();
0029     void testCmpByUrl();
0030     void testRename();
0031     void testRefresh();
0032     void testExists();
0033     void testDotDirectory();
0034     void testMimetypeForRemoteFolder();
0035     void testMimetypeForRemoteFolderWithFileType();
0036     void testCurrentMimetypeForRemoteFolder();
0037     void testCurrentMimetypeForRemoteFolderWithFileType();
0038     void testIconNameForCustomFolderIcons();
0039     void testIconNameForStandardPath();
0040 
0041 #ifndef Q_OS_WIN
0042     void testIsReadable_data();
0043     void testIsReadable();
0044     void testIsWritable_data();
0045     void testIsWritable();
0046     void testIsExecutable_data();
0047     void testIsExecutable();
0048 #endif
0049 
0050     void testDecodeFileName_data();
0051     void testDecodeFileName();
0052     void testEncodeFileName_data();
0053     void testEncodeFileName();
0054 
0055     // KFileItemListProperties tests
0056     void testListProperties_data();
0057     void testListProperties();
0058 #ifndef Q_OS_WIN
0059     void testNonWritableDirectory();
0060 #endif
0061 
0062     // KIO global tests
0063     void testIconNameForUrl_data();
0064     void testIconNameForUrl();
0065 };
0066 
0067 #endif