EmlaLockSafe
|
Class managing which holds static references to all views which can be accessed over the ViewId without including any views. This ensures that no include loops are necessary. More...
#include <ViewStore.h>
Public Types | |
enum | ViewId { ConfigurationServerView , EmergencyEnterKeyView , EmergencyEnterMenuView , EmergencyMenu , EmlalockUnlockKeyMenu , HardwareTestView , HygieneOpeningMenu , LockedView , PreferencesMenu , SelectDisplayTimeLeft , SelectDisplayTimePassed , SetTimerView , TimeRestrictedView , UnlockedMainMenu , UnlockSafeView , WifiConnectingView } |
IDs of the different views. More... | |
Static Public Member Functions | |
static lcd::ViewBase * | getView (const ViewId &id) |
Returns the pointer to the view registered by the given id. More... | |
static void | addView (const ViewId &id, lcd::ViewBase &view) |
registers a new view More... | |
static bool | activateView (const ViewId &id) |
activates the view described by the id More... | |
Protected Member Functions | |
ViewStore () | |
protected, use the static functions instead More... | |
Static Protected Member Functions | |
static ViewStore & | getSingleton () |
Get the Singleton object if the ViewStore. More... | |
Protected Attributes | |
std::map< ViewId, lcd::ViewBase * > | views |
Map linking the IDs. More... | |
Class managing which holds static references to all views which can be accessed over the ViewId without including any views. This ensures that no include loops are necessary.
To activate a view use views::ViewStore::activateView(views::ViewStore::HardwareTestView);
IDs of the different views.
|
inlineprotected |
protected, use the static functions instead
|
inlinestatic |
activates the view described by the id
id | ViewId of the view which should be activated |
|
inlinestatic |
|
inlinestaticprotected |
Get the Singleton object if the ViewStore.
|
inlinestatic |
Returns the pointer to the view registered by the given id.
id | ViewId of the view which should be returned |
|
protected |
Map linking the IDs.