14#include "GUIStreamableObject.h"
15#include "eC_TList_doubleLinked.h"
16#include "RefCounted.h"
185#if defined GUILIANI_WRITE_GUI
189#if defined GUILIANI_STREAM_GUI
193#if defined(GUILIANI_STREAM_GUI) || defined(GUILIANI_WRITE_GUI)
227 CGUICommand(
const eC_UInt uiPriority = 0,
const eC_UInt uiTimeUntilFirstExecution = 0,
const eC_Bool bFinished =
true);
231 virtual void Do() = 0;
238 void ExecuteAdditionalCmds();
243 eC_Bool m_bIsFinished;
246 eC_UInt m_uiTimeUntilNextExecution;
250 eC_UInt m_uiPriority;
252 struct AdditionalCmd_t
255 : m_pkCmd(NULL), m_bExecOneTime(false) {}
257 : m_pkCmd(pkCmd), m_bExecOneTime(bExecOneTime) {}
259 eC_Bool m_bExecOneTime;
263 AdditionalCmdList m_kAdditionalCmds;
Manages and executes instances of CGUICommand.
Definition: GUICommandHandler.h:109
Command object base class.
Definition: GUICommand.h:127
void SetTimeUntilNextExecution(eC_UInt uiTime)
eC_UInt GetTimeUntilNextExecution() const
Definition: GUICommand.h:152
virtual void WriteToStream(const eC_Bool bWriteClassID=false)
void AddAdditionalCmd(CGUICommandPtr pkCmd, eC_Bool bOneTime=false)
static const eC_Char XMLTAG_COMMANDCLASSID[]
XML tag to be used when writing the command class ID into a stream.
Definition: GUICommand.h:195
void RemoveAllAdditionalCmds()
Removes all additional commands from this command's list.
eC_UInt GetNumberOfAdditionalCmds() const
Definition: GUICommand.h:175
virtual void ReadFromStream()
CGUICommandPtr GetAdditionalCmd(const eC_UInt &uiIndex) const
void RemoveAdditionalCmd(CGUICommandPtr pkCmd)
virtual ~CGUICommand()
Destructor.
Definition: GUICommand.h:234
static const eC_Char XMLTAG_ADDITIONALCMDCOUNT[]
XML tag to be used when writing the additional command count into a stream.
Definition: GUICommand.h:198
CGUICommand(const eC_UInt uiPriority=0, const eC_UInt uiTimeUntilFirstExecution=0, const eC_Bool bFinished=true)
eC_Bool IsFinished() const
Definition: GUICommand.h:148
void SetPriority(eC_UInt uiPriority)
void SetToBeFinished(eC_Bool bIsFinished)
Definition: GUICommand.h:214
static const eC_Char XMLTAG_REMOVE_AFTER_EXECUTION[]
XML tag to be used when writing the remove after execution flag.
Definition: GUICommand.h:201
eC_UInt GetPriority() const
Definition: GUICommand.h:170
Base class for streamable objects.
Definition: GUIStreamableObject.h:45
The reference counted pointer class used with SharedPtr.
Definition: RefCounted.h:32
eC_UInt GetQuantity() const
Definition: eC_TList_doubleLinked.h:587
bool operator==(const NSmartPtr::SharedPtr< C1 > &a, const NSmartPtr::SharedPtr< C2 > &b)
Definition: SharedPtr.h:240