8#include "collectionaclpage.h"
11#include "aclmanager.h"
12#include "collectionaclwidget.h"
13#include "imapaclattribute.h"
14#include <Akonadi/Collection>
15#include <KLocalizedString>
20class PimCommon::CollectionAclPagePrivate
23 CollectionAclPagePrivate() =
default;
25 CollectionAclWidget *mCollectionAclWidget =
nullptr;
28CollectionAclPage::CollectionAclPage(
QWidget *parent)
29 : CollectionPropertiesPage(parent)
30 , d(new
PimCommon::CollectionAclPagePrivate)
32 setObjectName(
"PimCommon::CollectionAclPage"_L1);
34 setPageTitle(
i18nc(
"@title:tab Access Control settings page.",
"Access Control"));
38CollectionAclPage::~CollectionAclPage() =
default;
40void CollectionAclPage::init()
44 d->mCollectionAclWidget =
new CollectionAclWidget(
this);
55 d->mCollectionAclWidget->aclManager()->setCollection(collection);
60 d->mCollectionAclWidget->aclManager()->save(d->mCollectionAclWidget->recursive());
64 const auto origCol = d->mCollectionAclWidget->aclManager()->collection();
68#include "moc_collectionaclpage.cpp"
void addAttribute(Attribute *attribute)
bool hasAttribute() const
The ImapAclAttribute class.
QString i18nc(const char *context, const char *text, const TYPE &arg...)
void init(KXmlGuiWindow *window, KGameDifficulty *difficulty=nullptr)
void setContentsMargins(const QMargins &margins)
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.