summaryrefslogtreecommitdiffstats
path: root/src/permission_dialog.h
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2024-07-08 18:58:28 +0300
committerMavridis Philippe <[email protected]>2024-07-08 18:59:14 +0300
commita5eb53fcbc12342f0a12ef4819146b2d0bb14652 (patch)
tree0d7bd718644ded44e69b6a6102173d699131c0b2 /src/permission_dialog.h
parent87769ed51d8087ddc4a02705f39fe4f21431b66f (diff)
downloadxdg-desktop-portal-tde-a5eb53fcbc12342f0a12ef4819146b2d0bb14652.tar.gz
xdg-desktop-portal-tde-a5eb53fcbc12342f0a12ef4819146b2d0bb14652.zip
Added Account portal, permission dialog class, moved some code to util
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'src/permission_dialog.h')
-rw-r--r--src/permission_dialog.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/permission_dialog.h b/src/permission_dialog.h
new file mode 100644
index 0000000..9fe3a99
--- /dev/null
+++ b/src/permission_dialog.h
@@ -0,0 +1,54 @@
+/*******************************************************************************
+ XDG desktop portal implementation for TDE
+ Copyright © 2024 Mavridis Philippe <[email protected]>
+
+ This program or library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of the License,
+ or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this library; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+ Improvements and feedback are welcome!
+*******************************************************************************/
+
+#ifndef __PERMISSION_DIALOG_H
+#define __PERMISSION_DIALOG_H
+
+// TDE
+#include <kdialogbase.h>
+
+typedef TQMap<TQString, TQString> Dictionary;
+
+class TQVBox;
+class TQHBox;
+class TQLabel;
+
+class TDEPermissionDialog : public KDialogBase
+{
+ TQ_OBJECT
+
+ public:
+ TDEPermissionDialog(TQString application, TQString feature,
+ TQString icon = "messagebox_question",
+ Dictionary details = {});
+ virtual ~TDEPermissionDialog();
+
+ void appendWidget(TQWidget *widget);
+
+ private:
+ TQVBox *m_vbox;
+ TQHBox *m_hbox;
+ TQLabel *m_icon;
+ TQLabel *m_text;
+ TQLabel *m_detail;
+};
+
+#endif // __PERMISSION_DIALOG_H \ No newline at end of file