Guiliani  Version 2.6 revision 7293 (documentation build 12)
GUIPlaybackSoundCmd.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 GUIPLAYBACKSOUNDCMD__H_
11#define GUIPLAYBACKSOUNDCMD__H_
12
13#include "GUICommand.h"
14#include "GUISoundResource.h"
15
18 public CGUICommand
19{
20public:
25
30 CGUIPlaybackSoundCmd(const eC_String& rkFileName);
31
36
37#if defined(GUILIANI_STREAM_GUI)
39 virtual void ReadFromStream();
40#endif
41
42#if defined(GUILIANI_WRITE_GUI)
43 virtual void WriteToStream(const eC_Bool bWriteClassID = false);
44#endif
45
46protected:
48 virtual void Do();
49
52
53private:
55 void Init();
56};
57
58#endif
Helper Macros in Guiliani
SoundResource_t
List of sound resource ids.
Definition: GUISoundResource.h:48
Command object base class.
Definition: GUICommand.h:127
Plays a sound when executed.
Definition: GUIPlaybackSoundCmd.h:19
virtual void ReadFromStream()
CGUIPlaybackSoundCmd(const eC_String &rkFileName)
CGUIPlaybackSoundCmd(const SoundResource_t eSoundID)
virtual void WriteToStream(const eC_Bool bWriteClassID=false)
virtual void Do()
Plays the sound.
SoundResource_t m_eID
ID of the sound to be played.
Definition: GUIPlaybackSoundCmd.h:51
virtual ~CGUIPlaybackSoundCmd()