Model is only used within TouchGFX.
 
Symbols
loading...
Files
loading...

Model class

The Model class defines the data model in the model-view-presenter paradigm. The Model is a singular object used across all presenters. The currently active presenter will have a pointer to the Model through deriving from ModelListener. The Model will typically contain UI state information that must be kept alive through screen transitions. It also usually provides the interface to the rest of the system (the backend). As such, the Model can receive events and data from the backend and inform the current presenter of such events through the modelListener pointer, which is automatically configured to point to the current presenter. Conversely, the current presenter can trigger events in the backend through the Model.

Syntax

class Model;
Implemented in Model.hpp:37

Fields

modelListener

Pointer to the currently active presenter. Read more...

mcuLoadActive

No summary provided. Read more...

currentTime

No summary provided. Read more...

selectedDemoScreenIndex

No summary provided. Read more...

previousSelectedMenuType

No summary provided. Read more...

Methods

getSelectedDemoScreenIndex()

No summary provided. Read more...

setSelectedDemoScreenIndex()

No summary provided. Read more...

getPreviousSelectedMainMenuType()

No summary provided. Read more...

setPreviousSelectedMainMenuType()

No summary provided. Read more...

screenSaverMinorTick()

No summary provided. Read more...

screenSaverMajorTick()

No summary provided. Read more...

bind()

Sets the modelListener to point to the currently active presenter. Called automatically when switching screen. Read more...

tick()

No summary provided. Read more...

getCurrentTime() const

No summary provided. Read more...

getMCULoadActive() const

No summary provided. Read more...

setMCULoadActive()

No summary provided. Read more...

References

LocationReferrerScopeText
Model.hpp:37
class Model
ModelListener.hpp:23
class Model;
FrontendApplication.cpp:37FrontendApplication::FrontendApplication()
FrontendApplication.cpp:100FrontendApplication::gotoMainMenuAnimatingButtonsScreenImpl()
FrontendApplication.cpp:111FrontendApplication::gotoProductPresenterScreenImpl()
FrontendApplication.cpp:122FrontendApplication::gotoGame2DScreenImpl()
FrontendApplication.cpp:133FrontendApplication::gotoCustomControlsScreenImpl()
FrontendApplication.cpp:144FrontendApplication::gotoGraphScreenImpl()
FrontendApplication.hpp:43FrontendApplication::FrontendApplication()::mFrontendApplication::FrontendApplication()
FrontendApplication.hpp:73FrontendApplication::modelFrontendApplication
Model& model;
FrontendHeap.hpp:113FrontendHeap::modelFrontendHeap
Model model;
MainMenuPresenter.cpp:44MainMenuPresenter::setPreviousSelectedMenuType()
Model.cpp:34Model::Model()
Model::Model() :
Model.cpp:51Model::tick()
void Model::tick()
Model.cpp:105Model::screenSaverMinorTick()
void Model::screenSaverMinorTick()
Model.cpp:110Model::screenSaverMajorTick()
void Model::screenSaverMajorTick()
ModelListener.hpp:45ModelListener::bind()
void bind(Model* m) { model = m; }
ModelListener.hpp:54ModelListener::modelModelListener
Model* model;