File indexing completed on 2024-12-08 04:34:21
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 #pragma once 0007 #include "libruqolawidgets_private_export.h" 0008 #include "permissions/permission.h" 0009 #include <QDialog> 0010 class ExplorePermissionsWidget; 0011 class LIBRUQOLAWIDGETS_TESTS_EXPORT ExplorePermissionsDialog : public QDialog 0012 { 0013 Q_OBJECT 0014 public: 0015 explicit ExplorePermissionsDialog(QWidget *parent = nullptr); 0016 ~ExplorePermissionsDialog() override; 0017 0018 void setPermissions(const QVector<Permission> &permissions); 0019 void setOWnRoles(const QStringList &roleStr); 0020 0021 private: 0022 LIBRUQOLAWIDGETS_NO_EXPORT void readConfig(); 0023 LIBRUQOLAWIDGETS_NO_EXPORT void writeConfig(); 0024 ExplorePermissionsWidget *const mExporePermissionWidget; 0025 };