File indexing completed on 2022-11-29 18:25:16

0001 /*
0002  *  Copyright (C) 2005-2009 David Faure   <faure@kde.org>
0003  *
0004  *  This library is free software; you can redistribute it and/or modify
0005  *  it under the terms of the GNU Lesser General Public License as published by
0006  *  the Free Software Foundation; either version 2 of the License or ( at
0007  *  your option ) version 3 or, at the discretion of KDE e.V. ( which shall
0008  *  act as a proxy as in section 14 of the GPLv3 ), any later version.
0009  *
0010  *  This library 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 GNU
0013  *  Library General Public License for more details.
0014  *
0015  *  You should have received a copy of the GNU Library General Public License
0016  *  along with this library; see the file COPYING.LIB.  If not, write to
0017  *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0018  *  Boston, MA 02110-1301, USA.
0019  */
0020 
0021 #ifndef KMIMETYPETEST_H
0022 #define KMIMETYPETEST_H
0023 
0024 #include <QObject>
0025 
0026 class KMimeTypeTest : public QObject
0027 {
0028     Q_OBJECT
0029 private Q_SLOTS:
0030     void initTestCase();
0031     void cleanupTestCase();
0032     void testByName();
0033     void testIcons();
0034     void testFindByUrl();
0035     void testFindByPathUsingFileName_data();
0036     void testFindByPathUsingFileName();
0037     void testAdditionalGlobs_data();
0038     void testAdditionalGlobs();
0039     void testFindByPathWithContent();
0040     void testFindByNameAndContent();
0041     void testFindByContent();
0042     void testFindByContent_data();
0043     void testFindByFileContent();
0044     void testAllMimeTypes();
0045     void testAlias();
0046     void testMimeTypeParent();
0047     void testMimeTypeInheritancePerformance();
0048     void testMimeTypeTraderForTextPlain();
0049     void testMimeTypeTraderForDerivedMimeType();
0050     void testMimeTypeTraderForAlias();
0051     void testPreferredService();
0052     void testHasServiceType1();
0053     void testHasServiceType2();
0054     void testPatterns_data();
0055     void testPatterns();
0056     void testExtractKnownExtension_data();
0057     void testExtractKnownExtension();
0058     void testSortByComment();
0059     void testFromThread();
0060     void testThreads();
0061     void testProperties();
0062     void testIsNull();
0063 private:
0064     QString m_nonKdeApp;
0065     QString m_textPlainApp;
0066 };
0067 
0068 #endif