diff options
author | Daniel Teichmann <daniel.teichmann@das-netzwerkteam.de> | 2021-07-02 20:21:39 +0200 |
---|---|---|
committer | Daniel Teichmann <daniel.teichmann@das-netzwerkteam.de> | 2021-07-02 20:21:39 +0200 |
commit | 2dc27cddbe35ede34431a6fdf7bf931a7c286bc6 (patch) | |
tree | b318725d3b475231b1f355d2ebb11cc03b197382 /src/scenes/add_server_wizard/add_server_wizard.h | |
parent | b285492183f105c9a1fd758d6cd2e767262fd995 (diff) | |
download | RWA.Support.DesktopApp-2dc27cddbe35ede34431a6fdf7bf931a7c286bc6.tar.gz RWA.Support.DesktopApp-2dc27cddbe35ede34431a6fdf7bf931a7c286bc6.tar.bz2 RWA.Support.DesktopApp-2dc27cddbe35ede34431a6fdf7bf931a7c286bc6.zip |
Introduce add_server_wizard.{cpp, h}; drop third add_server_wizard scene
Diffstat (limited to 'src/scenes/add_server_wizard/add_server_wizard.h')
-rw-r--r-- | src/scenes/add_server_wizard/add_server_wizard.h | 35 |
1 files changed, 35 insertions, 0 deletions
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 <QObject> + +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 |