File indexing completed on 2025-01-05 04:59:49
0001 /* 0002 * SPDX-FileCopyrightText: 2014 Kevin Ottens <ervin@kde.org> 0003 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0004 */ 0005 0006 0007 #ifndef TESTLIB_AKONADIFAKEMONITOR_H 0008 #define TESTLIB_AKONADIFAKEMONITOR_H 0009 0010 #include "akonadi/akonadimonitorinterface.h" 0011 0012 namespace Testlib { 0013 0014 class AkonadiFakeMonitor : public Akonadi::MonitorInterface 0015 { 0016 Q_OBJECT 0017 public: 0018 typedef QSharedPointer<AkonadiFakeMonitor> Ptr; 0019 0020 explicit AkonadiFakeMonitor(QObject *parent = nullptr); 0021 0022 public slots: 0023 void addCollection(const Akonadi::Collection &collection); 0024 void removeCollection(const Akonadi::Collection &collection); 0025 void changeCollection(const Akonadi::Collection &collection); 0026 void changeCollectionSelection(const Akonadi::Collection &collection); 0027 0028 void addItem(const Akonadi::Item &item); 0029 void removeItem(const Akonadi::Item &item); 0030 void changeItem(const Akonadi::Item &item); 0031 void moveItem(const Akonadi::Item &item); 0032 }; 0033 0034 } 0035 0036 #endif // TESTLIB_AKONADIFAKEMONITOR_H