File indexing completed on 2024-04-14 11:07:37

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 testDotDirectory();
0033     void testMimetypeForRemoteFolder();
0034     void testMimetypeForRemoteFolderWithFileType();
0035     void testCurrentMimetypeForRemoteFolder();
0036     void testCurrentMimetypeForRemoteFolderWithFileType();
0037     void testIconNameForCustomFolderIcons();
0038     void testIconNameForStandardPath();
0039 
0040 #ifndef Q_OS_WIN
0041     void testIsReadable_data();
0042     void testIsReadable();
0043 #endif
0044 
0045     void testDecodeFileName_data();
0046     void testDecodeFileName();
0047     void testEncodeFileName_data();
0048     void testEncodeFileName();
0049 
0050     // KFileItemListProperties tests
0051     void testListProperties_data();
0052     void testListProperties();
0053 #ifndef Q_OS_WIN
0054     void testNonWritableDirectory();
0055 #endif
0056 
0057     // KIO global tests
0058     void testIconNameForUrl_data();
0059     void testIconNameForUrl();
0060 };
0061 
0062 #endif