From 2dc27cddbe35ede34431a6fdf7bf931a7c286bc6 Mon Sep 17 00:00:00 2001 From: Daniel Teichmann Date: Fri, 2 Jul 2021 20:21:39 +0200 Subject: Introduce add_server_wizard.{cpp, h}; drop third add_server_wizard scene --- src/scenes/add_server_wizard/add_server_wizard.h | 35 ++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/scenes/add_server_wizard/add_server_wizard.h (limited to 'src/scenes/add_server_wizard/add_server_wizard.h') diff --git a/src/scenes/add_server_wizard/add_server_wizard.h b/src/scenes/add_server_wizard/add_server_wizard.h new file mode 100644 index 0000000..1feec9b --- /dev/null +++ b/src/scenes/add_server_wizard/add_server_wizard.h @@ -0,0 +1,35 @@ +#ifndef ADD_SERVER_WIZARD_H +#define ADD_SERVER_WIZARD_H + +#include "../../RWADBusAdaptor.h" +#include + +class Add_Server_wizard : public QObject +{ + Q_OBJECT +public: + explicit Add_Server_wizard(QObject *parent = nullptr); + +private: + bool _add_server(QString host_url); + bool _add_web_app_host(QString host_url); + + OrgArcticaProjectRWASupportSessionServiceInterface *_dbus_rwa; + void _initDBus(); + +signals: + void step1Success(); + void step1Failed(QString reason); + void step2Success(); + void step2Failed(QString reason); + +public slots: + bool processStep1(QString host_url); + bool processStep2(); + + void _add_web_app_host_dbus_replied(QDBusPendingCallWatcher *call); + //void _get_web_app_hosts_dbus_replied(QDBusPendingCallWatcher *call); + //void _remove_web_app_host_dbus_replied(QDBusPendingCallWatcher *call); +}; + +#endif // ADD_SERVER_WIZARD_H -- cgit v1.2.3