File indexing completed on 2024-05-12 05:10:37
0001 /* 0002 SPDX-FileCopyrightText: 2023 Daniel Vrátil <dvratil@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QObject> 0010 #include <QTemporaryFile> 0011 0012 #include <Akonadi/Collection> 0013 #include <Akonadi/Item> 0014 0015 class CollectionCalendarTest : public QObject 0016 { 0017 Q_OBJECT 0018 public: 0019 explicit CollectionCalendarTest(QObject *parent = nullptr); 0020 0021 private Q_SLOTS: 0022 void initTestCase(); 0023 0024 void testPopulateFromReadyETM(); 0025 void testPopulateWhenETMLoads(); 0026 void testItemAdded(); 0027 void testItemRemoved(); 0028 void testItemChanged(); 0029 void testUnrelatedItemIsNotSeen(); 0030 0031 private: 0032 Akonadi::Collection testCollection; 0033 Akonadi::Collection otherCollection; 0034 QTemporaryFile otherResourceConfig; 0035 };