Guiliani  Version 2.6 revision 7293 (documentation build 12)
GUIToggleBehaviour.h
1/*
2* Copyright (C) TES Electronic Solutions GmbH,
3* All Rights Reserved.
4* Contact: info@guiliani.de
5*
6* This file is part of the Guiliani HMI framework
7* for the development of graphical user interfaces on embedded systems.
8*/
9
10#ifndef GUI_TOGGLE_BEHAVIOUR__H_
11#define GUI_TOGGLE_BEHAVIOUR__H_
12
13#include "GUICmdBehaviour.h"
14
19{
20public:
23
24 virtual ~CGUIToggleBehaviour();
25
30 void SetInitialState(const eC_Bool& bInitialState);
31
35 eC_Bool GetInitialState() const;
36
41
46
51
56
57#if defined(GUILIANI_STREAM_GUI)
58 virtual void ReadFromStream();
59#endif
60
61#if defined(GUILIANI_WRITE_GUI)
62 virtual void WriteToStream(const eC_Bool bWriteClassID = false);
63#endif
64
65protected:
71 virtual void ExecuteCommand(const BehaviourType_t& eFromBehaviour);
72
73private:
78
83 CGUIToggleBehaviour& operator=(const CGUIToggleBehaviour& kSource);
84
85private:
87 eC_Bool m_bInitialState;
88
90 eC_Bool m_bCurrentState;
91
93 CGUICommandPtr m_pkCommandTrue;
94
96 CGUICommandPtr m_pkCommandFalse;
97};
98
99#endif
Definition: GUICmdBehaviour.h:22
Behaviour for repeating clicks on object Additional phases can be defined where the start-time of the...
Definition: GUIToggleBehaviour.h:19
virtual void ReadFromStream()
void SetTrueCommand(CGUICommandPtr pkCmd)
void SetFalseCommand(CGUICommandPtr pkCmd)
void SetInitialState(const eC_Bool &bInitialState)
CGUICommandPtr GetFalseCommand() const
virtual void ExecuteCommand(const BehaviourType_t &eFromBehaviour)
virtual void WriteToStream(const eC_Bool bWriteClassID=false)
CGUIToggleBehaviour()
Default constructor.
eC_Bool GetInitialState() const
CGUICommandPtr GetTrueCommand() const