summaryrefslogtreecommitdiffstats
path: root/src/file_chooser_portal.h
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2024-07-07 20:40:21 +0300
committerMavridis Philippe <[email protected]>2024-07-07 20:40:21 +0300
commitb8f8ce418e3b2bb00b6a5b4c75aebfb6e99147ef (patch)
tree1df3c198bdfb32a5a4d89548675759cbf2b9559e /src/file_chooser_portal.h
parent30af69c9c08df296d31c73f73ecb448a923fab72 (diff)
downloadxdg-desktop-portal-tde-b8f8ce418e3b2bb00b6a5b4c75aebfb6e99147ef.tar.gz
xdg-desktop-portal-tde-b8f8ce418e3b2bb00b6a5b4c75aebfb6e99147ef.zip
Code reorganization and some improvements borrowed from kdbusnotification
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'src/file_chooser_portal.h')
-rw-r--r--src/file_chooser_portal.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/file_chooser_portal.h b/src/file_chooser_portal.h
index 375b7c8..ef7b43a 100644
--- a/src/file_chooser_portal.h
+++ b/src/file_chooser_portal.h
@@ -33,7 +33,7 @@
#include <tdefile.h>
// Portal
-#include "filechooserInterface.h"
+#include "interfaces/filechooserInterface.h"
struct FileDialogOpts
{
@@ -64,6 +64,8 @@ class TDEFileChooserPortal : public TQObject,
TDEFileChooserPortal(TQT_DBusConnection &connection);
virtual ~TDEFileChooserPortal();
+ static const TQString interface() { return "org.freedesktop.impl.portal.FileChooser"; }
+
protected:
virtual bool OpenFile(const TQT_DBusObjectPath& handle,
const TQString& app_id,
@@ -92,7 +94,9 @@ class TDEFileChooserPortal : public TQObject,
TQMap<TQString, TQT_DBusVariant> &results,
TQT_DBusError& error);
- virtual void handleMethodReply(const TQT_DBusMessage &reply);
+ virtual void handleMethodReply(const TQT_DBusMessage& reply);
+ virtual bool handleSignalSend(const TQT_DBusMessage& reply);
+
private:
TQT_DBusConnection m_connection;