Pimcommon

imapresourcecapabilitiesmanager.h
1/*
2 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
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"
14namespace Akonadi
15{
16class AgentInstance;
17}
18namespace PimCommon
19{
20/**
21 * @brief The ImapResourceCapabilitiesManager class
22 * @author Laurent Montel <montel@kde.org>
23 */
24class PIMCOMMONAKONADI_EXPORT ImapResourceCapabilitiesManager : public QObject
25{
26 Q_OBJECT
27public:
28 explicit ImapResourceCapabilitiesManager(QObject *parent = nullptr);
30
31 [[nodiscard]] bool hasAnnotationSupport(const QString &identifier) const;
32
33private:
34 PIMCOMMONAKONADI_NO_EXPORT void slotInstanceAdded(const Akonadi::AgentInstance &instance);
35 PIMCOMMONAKONADI_NO_EXPORT void slotInstanceRemoved(const Akonadi::AgentInstance &instance);
36 PIMCOMMONAKONADI_NO_EXPORT void slotCapabilities(QDBusPendingCallWatcher *watcher);
37
38 PIMCOMMONAKONADI_NO_EXPORT void init();
39 PIMCOMMONAKONADI_NO_EXPORT void searchCapabilities(const QString &identifier);
40 QHash<QString, bool> mImapResource;
41};
42}
The ImapResourceCapabilitiesManager class.
folderdialogacltab.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:12:05 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.