Pimcommon

imapresourcecapabilitiesmanager.h
1 /*
2  SPDX-FileCopyrightText: 2015-2022 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include <QHash>
10 #include <QObject>
11 
12 #include "pimcommonakonadi_export.h"
14 namespace Akonadi
15 {
16 class AgentInstance;
17 }
18 namespace PimCommon
19 {
20 /**
21  * @brief The ImapResourceCapabilitiesManager class
22  * @author Laurent Montel <[email protected]>
23  */
24 class PIMCOMMONAKONADI_EXPORT ImapResourceCapabilitiesManager : public QObject
25 {
26  Q_OBJECT
27 public:
28  explicit ImapResourceCapabilitiesManager(QObject *parent = nullptr);
30 
31  Q_REQUIRED_RESULT bool hasAnnotationSupport(const QString &identifier) const;
32 
33 private:
34  void slotInstanceAdded(const Akonadi::AgentInstance &instance);
35  void slotInstanceRemoved(const Akonadi::AgentInstance &instance);
36  void slotCapabilities(QDBusPendingCallWatcher *watcher);
37 
38  void init();
39  void searchCapabilities(const QString &identifier);
40  QHash<QString, bool> mImapResource;
41 };
42 }
folderdialogacltab.h
The ImapResourceCapabilitiesManager class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 03:51:53 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.