#ifndef SOUNDEXAMPLE_H
#define SOUNDEXAMPLE_H
#include "aibolib.h"
#include "def.h"
enum SYSTEM_STATE{
SYSTEM_START,
SYSTEM_IDLE
};
enum SOUNDS_STATE{
STARWARS,
HELLO,
SOUNDS_IDLE
};
class SoundExample: public Aibo {
public:
SoundExample();
virtual ~SoundExample(){};
OSubject* subject[numOfSubject];
OObserver* observer[numOfObserver];
OStatus DoInit (const OSystemEvent& event);
OStatus DoStart (const OSystemEvent& event);
OStatus DoStop (const OSystemEvent& event);
OStatus DoDestroy(const OSystemEvent& event);
void NotifySpeaker(const OReadyEvent& event);
protected:
SYSTEM_STATE State;
SOUNDS_STATE Sound;
AiboSound Sounds;
int SoundCounter;
int Tog;
};
#endif