File indexing completed on 2024-04-28 07:45:41
0001 /* 0002 SPDX-FileCopyrightText: 2006 David Faure <faure@kde.org> 0003 SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org> 0004 0005 SPDX-License-Identifier: LGPL-2.0-only 0006 */ 0007 #ifndef KSERVICETEST_H 0008 #define KSERVICETEST_H 0009 0010 #include <kservice_export.h> 0011 0012 #include <QAtomicInt> 0013 #include <QObject> 0014 0015 class KServiceTest : public QObject 0016 { 0017 Q_OBJECT 0018 public: 0019 KServiceTest() 0020 : m_sycocaUpdateDone(0) 0021 { 0022 } 0023 private Q_SLOTS: 0024 void initTestCase(); 0025 void cleanupTestCase(); 0026 void testByName(); 0027 void testConstructorFullPath(); 0028 void testConstructorKDesktopFile(); 0029 void testCopyConstructor(); 0030 void testCopyInvalidService(); 0031 void testProperty(); 0032 void testAllServices(); 0033 void testSubseqConstraints(); 0034 void testByStorageId(); 0035 void testActionsAndDataStream(); 0036 void testServiceGroups(); 0037 void testDeletingService(); 0038 void testReaderThreads(); 0039 void testThreads(); 0040 void testCompleteBaseName(); 0041 void testEntryPathToName(); 0042 void testMimeType(); 0043 void testProtocols(); 0044 void testUntranslatedNames(); 0045 0046 void testAliasFor(); 0047 void testServiceActionService(); 0048 void testStartupNotify(); 0049 0050 private: 0051 void runKBuildSycoca(bool noincremental = false); 0052 0053 QAtomicInt m_sycocaUpdateDone; 0054 bool m_hasNonCLocale; 0055 }; 0056 0057 #endif