From b8f8ce418e3b2bb00b6a5b4c75aebfb6e99147ef Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Sun, 7 Jul 2024 20:40:21 +0300 Subject: Code reorganization and some improvements borrowed from kdbusnotification Signed-off-by: Mavridis Philippe --- src/file_chooser_portal.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/file_chooser_portal.h') 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 // 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 &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; -- cgit v1.2.1