Lumiera  0.pre.03
»edityourfreedom«
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
StateManager Class Referenceabstract

#include "gui/ctrl/state-manager.hpp"

Description

Interface: handling of persistent interface state.

Operations to retrieve previously captured state and to re-play this state towards the originating UI-elements. It is assumed that the actual implementation is connected to the UI-Bus and captures state mark notifications. State is first grouped by ID of the originating interface element, and recorded per distinct property within each element.

Definition at line 79 of file state-manager.hpp.

Public Member Functions

virtual void clearState ()=0
 
virtual StateMark currentState (ID uiElm, string propertyKey) const =0
 
virtual void replayAllProperties (ID uiElm)=0
 
virtual void replayAllState ()=0
 
virtual void replayAllState (string propertyKey)=0
 
virtual void replayState (ID uiElm, string propertyKey)=0
 

Protected Types

using ID = lib::idi::BareEntryID const &
 
using StateMark = lib::diff::GenNode const &
 

Protected Member Functions

virtual ~StateManager ()
 this is an interface More...
 

Additional Inherited Members

- Private Member Functions inherited from NonCopyable
 NonCopyable ()=default
 
 NonCopyable (NonCopyable const &)=delete
 
 ~NonCopyable ()=default
 
NonCopyableoperator= (NonCopyable const &)=delete
 

Member Typedef Documentation

using ID = lib::idi::BareEntryID const&
protected

Definition at line 85 of file state-manager.hpp.

using StateMark = lib::diff::GenNode const&
protected

Definition at line 86 of file state-manager.hpp.

Constructor & Destructor Documentation

~StateManager ( )
protectedvirtual

this is an interface

Definition at line 47 of file ui-state.cpp.

Member Function Documentation

virtual StateMark currentState ( ID  uiElm,
string  propertyKey 
) const
pure virtual

Implemented in StateRecorder.

Referenced by BusTerm_test::captureStateMark().

+ Here is the caller graph for this function:

virtual void replayState ( ID  uiElm,
string  propertyKey 
)
pure virtual

Implemented in StateRecorder.

virtual void replayAllState ( )
pure virtual

Implemented in StateRecorder.

virtual void replayAllState ( string  propertyKey)
pure virtual

Implemented in StateRecorder.

virtual void replayAllProperties ( ID  uiElm)
pure virtual

Implemented in StateRecorder.

virtual void clearState ( )
pure virtual

Implemented in StateRecorder.

Referenced by Nexus::useMockStateManager().

+ Here is the caller graph for this function:

+ Inheritance diagram for StateManager:
+ Collaboration diagram for StateManager:

The documentation for this class was generated from the following files: