File indexing completed on 2024-05-12 05:11:09
0001 /* 0002 SPDX-FileCopyrightText: 2009 Constantin Berzan <exit3219@gmail.com> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QMap> 0010 #include <QObject> 0011 0012 /** 0013 */ 0014 namespace Akonadi 0015 { 0016 class LocalFoldersTest : public QObject 0017 { 0018 Q_OBJECT 0019 0020 private Q_SLOTS: 0021 void initTestCase(); 0022 0023 // Tests for GetLockJob: 0024 void testLock(); 0025 0026 // Tests for LocalFolders: 0027 void testInitialState(); 0028 void testRegistrationErrors(); 0029 void testDefaultFolderRegistration(); 0030 void testCustomFolderRegistration(); 0031 void testCollectionDelete(); 0032 void testBatchRegister(); 0033 0034 // Tests for ResourceScanJob: 0035 void testResourceScanErrors(); 0036 void testResourceScan(); 0037 0038 // Tests for DefaultResourceJob: 0039 void testDefaultResourceJob(); 0040 void testRecoverDefaultResource(); 0041 0042 private: 0043 QMap<QByteArray, QString> mDisplayNameMap; 0044 QMap<QByteArray, QString> mIconNameMap; 0045 }; 0046 }