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 #include "akonadifakemonitor.h" 0008 0009 using namespace Testlib; 0010 0011 AkonadiFakeMonitor::AkonadiFakeMonitor(QObject *parent) 0012 : Akonadi::MonitorInterface(parent) 0013 { 0014 } 0015 0016 void AkonadiFakeMonitor::addCollection(const Akonadi::Collection &collection) 0017 { 0018 emit collectionAdded(collection); 0019 } 0020 0021 void AkonadiFakeMonitor::removeCollection(const Akonadi::Collection &collection) 0022 { 0023 emit collectionRemoved(collection); 0024 } 0025 0026 void AkonadiFakeMonitor::changeCollection(const Akonadi::Collection &collection) 0027 { 0028 emit collectionChanged(collection); 0029 } 0030 0031 void AkonadiFakeMonitor::changeCollectionSelection(const Akonadi::Collection &collection) 0032 { 0033 emit collectionSelectionChanged(collection); 0034 } 0035 0036 void AkonadiFakeMonitor::addItem(const Akonadi::Item &item) 0037 { 0038 emit itemAdded(item); 0039 } 0040 0041 void AkonadiFakeMonitor::removeItem(const Akonadi::Item &item) 0042 { 0043 emit itemRemoved(item); 0044 } 0045 0046 void AkonadiFakeMonitor::changeItem(const Akonadi::Item &item) 0047 { 0048 emit itemChanged(item); 0049 } 0050 0051 void AkonadiFakeMonitor::moveItem(const Akonadi::Item &item) 0052 { 0053 emit itemMoved(item); 0054 } 0055 0056 0057 0058 #include "moc_akonadifakemonitor.cpp"