- ///
- Policy policy_;
-
- /// Transition map of the state machine.
- typedef std::vector<State> StateArray;
- ///
- typedef std::vector<StateArray> StateMachine;
- /// The state outputs are the status of the buttons.
- typedef std::vector<int> StateOutputs;
-
- /// Current state.
- State state_;
- /// Which buttons are active for a given state.
- StateOutputs outputs_;
- ///
- StateMachine state_machine_;
-
-private:
- // Helpers
- void nextState(SMInput input);
-
- void initOkCancel();
- void initOkCancelReadOnly();
- void initNoRepeatedApplyReadOnly();
- void initOkApplyCancelReadOnly();
- void initOkApplyCancel();
- void initNoRepeatedApply();
- void initPreferences();