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/// @internal
22class KACLEditWidget : public QWidget
23{
24 Q_OBJECT
25public:
26 explicit KACLEditWidget(QWidget *parent = nullptr);
27 ~KACLEditWidget() override;
28 KACL getACL() const;
29 KACL getDefaultACL() const;
30 void setACL(const KACL &);
31 void setDefaultACL(const KACL &);
32 void setAllowDefaults(bool value);
33
34private:
35 class KACLEditWidgetPrivate;
36 std::unique_ptr<KACLEditWidgetPrivate> const d;
37
38 Q_DISABLE_COPY(KACLEditWidget)
39};
40
41#endif
42#endif
43

source code of kio/src/widgets/kacleditwidget.h