File indexing completed on 2025-01-19 04:56:35

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 AKONADI_MONITORIMPL_H
0008 #define AKONADI_MONITORIMPL_H
0009 
0010 #include "akonadimonitorinterface.h"
0011 #include <Akonadi/Item>
0012 
0013 namespace Akonadi {
0014 
0015 class Monitor;
0016 
0017 class MonitorImpl : public MonitorInterface
0018 {
0019     Q_OBJECT
0020 public:
0021     MonitorImpl();
0022     virtual ~MonitorImpl();
0023 
0024 private slots:
0025     void onCollectionChanged(const Akonadi::Collection &collection, const QSet<QByteArray> &parts);
0026 
0027 private:
0028     bool hasSupportedMimeTypes(const Collection &collection);
0029     Akonadi::Monitor *m_monitor;
0030 };
0031 
0032 }
0033 
0034 #endif // AKONADI_MONITORIMPL_H