Emergency 20 Dokumentation  4.2.0
StartMenuManager-inl.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Includes ]
6 //[-------------------------------------------------------]
8 
9 
10 //[-------------------------------------------------------]
11 //[ Namespace ]
12 //[-------------------------------------------------------]
13 namespace em5
14 {
15 
16 
17  //[-------------------------------------------------------]
18  //[ Public methods ]
19  //[-------------------------------------------------------]
21  {
22  // It's safe in here to cast the pointer to a reference because we know that the pointer is never ever a null pointer
23  QSF_ASSERT(nullptr != mStartMenuBaseLayerWindow, "The start menu base layer window instance is invalid", QSF_REACT_NONE);
24  return *mStartMenuBaseLayerWindow;
25  }
26 
28  {
29  // It's safe in here to cast the pointer to a reference because we know that the pointer is never ever a null pointer
30  QSF_ASSERT(nullptr != mStartMenuInstalledWindow, "The start menu installed window instance is invalid", QSF_REACT_NONE);
31  return *mStartMenuInstalledWindow;
32  }
33 
35  {
36  // It's safe in here to cast the pointer to a reference because we know that the pointer is never ever a null pointer
37  QSF_ASSERT(nullptr != mModificationWindow, "The modification window instance is invalid", QSF_REACT_NONE);
38  return *mModificationWindow;
39  }
40 
42  {
43  // It's safe in here to cast the pointer to a reference because we know that the pointer is never ever a null pointer
44  QSF_ASSERT(nullptr != mModificationWindowDataSource, "The modification data source instance is invalid", QSF_REACT_NONE);
45  return *mModificationWindowDataSource;
46  }
47 
48 
49 //[-------------------------------------------------------]
50 //[ Namespace ]
51 //[-------------------------------------------------------]
52 } // em5
Definition: ActionPriority.h:13
ModificationWindow & getModificationWindow() const
Return the start menu modification window instance.
Definition: StartMenuManager-inl.h:34
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
#define QSF_REACT_NONE
Definition: ErrorHandling.h:199
StartMenuInstalled & getStartMenuInstalledWindow() const
Return the installed start menu window instance.
Definition: StartMenuManager-inl.h:27
#define QSF_ASSERT(condition, explanation, reaction)
Definition: ErrorHandling.h:138
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