From fe68d5946073d92bc585b2b5372c420218807c91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Tue, 1 Nov 2016 01:25:04 +0100 Subject: GH-1645 reimplement open/close instance window based on settings --- application/LaunchController.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'application/LaunchController.h') diff --git a/application/LaunchController.h b/application/LaunchController.h index 55cb1e58..4cc240e8 100644 --- a/application/LaunchController.h +++ b/application/LaunchController.h @@ -17,6 +17,10 @@ public: { m_instance = instance; } + InstancePtr instance() + { + return m_instance; + } void setOnline(bool online) { m_online = online; @@ -29,6 +33,14 @@ public: { m_parentWidget = widget; } + void setShowConsole(bool showConsole) + { + m_showConsole = showConsole; + } + QString id() + { + return m_instance->id(); + } private: void login(); @@ -37,9 +49,14 @@ private: private slots: void readyForLaunch(); + void onSucceeded(); + void onFailed(QString reason); + void onProgressRequested(Task *task); + private: BaseProfilerFactory *m_profiler = nullptr; bool m_online = true; + bool m_showConsole = false; InstancePtr m_instance; QWidget * m_parentWidget = nullptr; InstanceWindow *m_console = nullptr; -- cgit v1.2.3