summaryrefslogtreecommitdiffstats
path: root/src/util.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/util.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/util.h')
-rw-r--r--src/util.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index f27b7b8..e5a2040 100644
--- a/src/util.h
+++ b/src/util.h
@@ -26,6 +26,7 @@
#include <tqdbusvariant.h>
#include <tqdbusdatalist.h>
#include <tqvariant.h>
+#include <twin.h>
// TDE
#include <kurl.h>
@@ -33,6 +34,18 @@
typedef TQMap<TQString, TQT_DBusVariant> TQT_DBusVariantMap;
typedef TQValueList<TQT_DBusData> TQT_DBusValueList;
+struct ApplicationInfo
+{
+ TQString name;
+ TQString path;
+ TQString desktopFile;
+ int pid;
+};
+
+extern WId parse_window_id(const TQString data);
+
+extern ApplicationInfo application_info_from_wid(WId wid);
+
extern bool check_variant(TQT_DBusVariant variant, TQString signature);
extern TQString bytelist_to_string(TQT_DBusDataList list);