File indexing completed on 2025-01-05 04:58:18
0001 /* 0002 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QWidget> 0010 class QCheckBox; 0011 namespace PimCommon 0012 { 0013 class AclManager; 0014 class CollectionAclWidget : public QWidget 0015 { 0016 Q_OBJECT 0017 public: 0018 explicit CollectionAclWidget(QWidget *parent = nullptr); 0019 ~CollectionAclWidget() override; 0020 0021 [[nodiscard]] PimCommon::AclManager *aclManager() const; 0022 [[nodiscard]] bool recursive() const; 0023 void setEnableRecursiveCheckBox(bool enable); 0024 0025 private: 0026 void slotRecursivePermissionChanged(); 0027 void slotCollectionCanBeAdministrated(bool b); 0028 PimCommon::AclManager *const mAclManager; 0029 QCheckBox *const mRecursiveChk; 0030 }; 0031 }