| 1 | /* |
| 2 | SPDX-FileCopyrightText: 2005 Sean Harmer <sh@rama.homelinux.org> |
| 3 | SPDX-FileCopyrightText: 2005-2007 Till Adam <adam@kde.org> |
| 4 | |
| 5 | SPDX-License-Identifier: LGPL-2.0-or-later |
| 6 | */ |
| 7 | |
| 8 | #ifndef KACLEDITWIDGET_H |
| 9 | #define KACLEDITWIDGET_H |
| 10 | |
| 11 | #include <config-kiowidgets.h> |
| 12 | |
| 13 | #if HAVE_POSIX_ACL || defined(Q_MOC_RUN) |
| 14 | |
| 15 | #include <QWidget> |
| 16 | |
| 17 | #include <kacl.h> |
| 18 | |
| 19 | #include <memory> |
| 20 | |
| 21 | class KACLEditWidget : public QWidget |
| 22 | { |
| 23 | Q_OBJECT |
| 24 | public: |
| 25 | explicit KACLEditWidget(QWidget *parent = nullptr); |
| 26 | ~KACLEditWidget() override; |
| 27 | KACL getACL() const; |
| 28 | KACL getDefaultACL() const; |
| 29 | void setACL(const KACL &); |
| 30 | void setDefaultACL(const KACL &); |
| 31 | void setAllowDefaults(bool value); |
| 32 | |
| 33 | private: |
| 34 | class KACLEditWidgetPrivate; |
| 35 | std::unique_ptr<KACLEditWidgetPrivate> const d; |
| 36 | |
| 37 | Q_DISABLE_COPY(KACLEditWidget) |
| 38 | }; |
| 39 | |
| 40 | #endif |
| 41 | #endif |
| 42 | |