summaryrefslogtreecommitdiffstats
path: root/src/account_portal.h
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2024-10-02 20:39:12 +0300
committerMavridis Philippe <mavridisf@gmail.com>2024-10-02 20:39:12 +0300
commitb0aeeeb9669438db204b88711ab318a5dcab8f98 (patch)
tree8a7e74c15899b67343cda288e01b449ccd9db60b /src/account_portal.h
parent2397c7e9cb9eba2b2b7934ef7d59e1bd3035c67d (diff)
downloadxdg-desktop-portal-tde-b0aeeeb9669438db204b88711ab318a5dcab8f98.tar.gz
xdg-desktop-portal-tde-b0aeeeb9669438db204b88711ab318a5dcab8f98.zip
Port TDEFileChooserPortal::SaveFiles and TDEAccountPortal to DialogResultSender
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src/account_portal.h')
-rw-r--r--src/account_portal.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/account_portal.h b/src/account_portal.h
index b75fe26..f59fb71 100644
--- a/src/account_portal.h
+++ b/src/account_portal.h
@@ -23,6 +23,7 @@
#define __ACCOUNT_PORTAL_H
// Portal
+#include "dialog_result_sender.h"
#include "interfaces/accountInterface.h"
#include "interface.h"
@@ -50,22 +51,21 @@ class TDEAccountPortal : public TQObject,
virtual void handleMethodReply(const TQT_DBusMessage& reply);
virtual bool handleSignalSend(const TQT_DBusMessage& reply);
- virtual bool GetUserInformation(const TQT_DBusObjectPath& handle,
- const TQString& app_id,
- const TQString& window,
- const TQT_DBusVariantMap& options,
- TQ_UINT32& response,
- TQT_DBusVariantMap& results,
- TQT_DBusError& error);
+ void GetUserInformationAsync(int asyncCallId,
+ const TQT_DBusObjectPath& handle,
+ const TQString& app_id,
+ const TQString& window,
+ const TQT_DBusVariantMap& options);
- AccountInfo getAccountInfo();
void appendDataPreview(TDEPermissionDialog *dlg, AccountInfo info);
- private:
- void findUserAvatar(AccountInfo &info);
+ DialogResult prepareReply(TQDialog *dlg);
private:
+ AccountInfo m_info;
TQT_DBusConnection m_connection;
+
+ friend class DialogResultSender<TDEAccountPortal>;
};
#endif // __ACCOUNT_PORTAL_H