File indexing completed on 2024-04-28 05:36:49
0001 /* 0002 * SPDX-FileCopyrightText: 2017 Red Hat Inc 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 * 0006 * SPDX-FileCopyrightText: 2017 Jan Grulich <jgrulich@redhat.com> 0007 */ 0008 0009 #ifndef XDG_DESKTOP_PORTAL_KDE_ACCESS_DIALOG_H 0010 #define XDG_DESKTOP_PORTAL_KDE_ACCESS_DIALOG_H 0011 0012 #include "quickdialog.h" 0013 #include <QVariantMap> 0014 0015 class AccessDialog : public QuickDialog 0016 { 0017 Q_OBJECT 0018 public: 0019 explicit AccessDialog(QObject *parent = nullptr); 0020 0021 void setAcceptLabel(const QString &label); 0022 void setBody(const QString &body); 0023 void setIcon(const QString &icon); 0024 void setRejectLabel(const QString &label); 0025 void setTitle(const QString &title); 0026 void setSubtitle(const QString &subtitle); 0027 0028 void createDialog(); 0029 0030 private: 0031 QVariantMap m_props; 0032 }; 0033 0034 #endif // XDG_DESKTOP_PORTAL_KDE_ACCESS_DIALOG_H