Emergency 20 Dokumentation  4.2.0
StartMenuManager.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
13 #include <boost/noncopyable.hpp>
14 
15 
16 //[-------------------------------------------------------]
17 //[ Forward declarations ]
18 //[-------------------------------------------------------]
19 namespace em5
20 {
21  class StartMenuBaseLayer;
22  class ModificationWindow;
23  class StartMenuInstalled;
24  class ForcePatchDialog;
25  class MaterialCacheHeatingDialog;
26  class LicenseTextDialog;
27  class ModificationWindowDataSource;
28  class AccountInfo;
29 }
30 
31 
32 //[-------------------------------------------------------]
33 //[ Namespace ]
34 //[-------------------------------------------------------]
35 namespace em5
36 {
37 
38 
39  //[-------------------------------------------------------]
40  //[ Classes ]
41  //[-------------------------------------------------------]
46  class StartMenuManager : public boost::noncopyable
47  {
48 
49 
50  //[-------------------------------------------------------]
51  //[ Public methods ]
52  //[-------------------------------------------------------]
53  public:
59 
68 
73  void loadGui();
74 
79  void hideGui();
80 
85  void destroyGui();
86 
87  void showAccountInfoWindow(bool show);
88 
97 
106 
115 
124 
125 
126  //[-------------------------------------------------------]
127  //[ Private methods ]
128  //[-------------------------------------------------------]
129  private:
134  void onUpdateCheckFinished();
135 
140  void onUpdateCheckFailed();
141 
149  void showLauncherOrForcePatchWindow(bool isPatchAvailable);
150 
151  void updateAccountStatus();
152 
153 
154  //[-------------------------------------------------------]
155  //[ Private data ]
156  //[-------------------------------------------------------]
157  private:
158  StartMenuBaseLayer* mStartMenuBaseLayerWindow;
159  StartMenuInstalled* mStartMenuInstalledWindow;
160  ModificationWindow* mModificationWindow;
161  ForcePatchDialog* mForcePatchDialog;
162  MaterialCacheHeatingDialog* mMaterialCacheHeatingDialog;
163  LicenseTextDialog* mLicenseTextDialog;
164  ModificationWindowDataSource* mModificationWindowDataSource;
165  AccountInfo* mAccountInfoWindow;
166 
167 
168  };
169 
170 
171 //[-------------------------------------------------------]
172 //[ Namespace ]
173 //[-------------------------------------------------------]
174 } // em5
175 
176 
177 //[-------------------------------------------------------]
178 //[ Implementation ]
179 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
void loadGui()
Load the default EMERGENCY 5 start menu.
ModificationWindow & getModificationWindow() const
Return the start menu modification window instance.
Definition: StartMenuManager-inl.h:34
EMERGENCY 5 start menu manager.
Definition: StartMenuManager.h:46
void showAccountInfoWindow(bool show)
~StartMenuManager()
Destructor.
Start menu BaseLayer window.
Definition: StartMenuBaseLayer.h:30
StartMenuBaseLayer & getStartMenuBaseLayerWindow() const
Return the start menu base layer window instance.
Definition: StartMenuManager-inl.h:20
EMERGENCY 5 modification window GUI.
Definition: ModificationWindow.h:31
void hideGui()
Hide the default EMERGENCY 5 start menu.
void destroyGui()
Destroy the EMERGENCY 5 start menu.
Account info window.
Definition: AccountInfo.h:39
EMERGENCY 5 material cache heating dialog window GUI.
Definition: MaterialCacheHeatingDialog.h:42
StartMenuInstalled & getStartMenuInstalledWindow() const
Return the installed start menu window instance.
Definition: StartMenuManager-inl.h:27
EMERGENCY 5 start menu installed GUI.
Definition: StartMenuInstalled.h:32
ModificationWindowDataSource.
Definition: ModificationWindowDataSource.h:39
ModificationWindowDataSource & getModificationWindowDataSource() const
Return the modification data source instance.
Definition: StartMenuManager-inl.h:41
StartMenuManager()
Default constructor.
EMERGENCY 5 license text dialog window GUI.
Definition: LicenseTextDialog.h:30
EMERGENCY 5 force patch dialog window GUI.
Definition: ForcePatchDialog.h:31