Pimcommon

aclmodifyjob.h
1/*
2 SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5
6*/
7#pragma once
8
9#include <Akonadi/Collection>
10#include <KIMAP/Acl>
11#include <QObject>
12class KJob;
13namespace PimCommon
14{
15class ImapAclAttribute;
16class AclModifyJob : public QObject
17{
19public:
20 explicit AclModifyJob(QObject *parent = nullptr);
21 ~AclModifyJob() override;
22
23 void setTopLevelCollection(const Akonadi::Collection &topLevelCollection);
24 void setRecursive(bool recursive);
25 void start();
26
27 void setCurrentRight(const QMap<QByteArray, KIMAP::Acl::Rights> &currentRight);
28
30 void searchContactDone();
31 void searchNextContact();
32
33private:
34 void slotModifyDone(KJob *job);
35 void slotFetchCollectionFinished(const Akonadi::Collection::List &collectionList);
36 void slotFetchCollectionFailed();
37 void changeAcl(const Akonadi::Collection &collection);
38 void checkNewCollection();
39 bool canAdministrate(const PimCommon::ImapAclAttribute *attribute, const Akonadi::Collection &collection) const;
40 void searchContact();
41 void slotModifyAcl();
42 void slotGroupSearchResult(KJob *job);
43
44 Akonadi::Collection mTopLevelCollection;
45 Akonadi::Collection::List mRecursiveCollection;
49 bool mRecursive = false;
50 int mCurrentIndex = -1;
51};
52}
The ImapAclAttribute class.
folderdialogacltab.h
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.