50 #ifndef _APPLICATIONPLAYERADAPTER_H_
51 #define _APPLICATIONPLAYERADAPTER_H_
53 #include "../../model/ApplicationExecutionObject.h"
54 using namespace ::br::pucrio::telemidia::ginga::ncl::model::components;
56 #include "../FormatterPlayerAdapter.h"
57 using namespace ::br::pucrio::telemidia::ginga::ncl::adapters;
59 #include "player/IPlayerListener.h"
60 using namespace ::br::pucrio::telemidia::ginga::core::player;
68 namespace application {
81 IPlayerListener* editingCommandListener;
82 pthread_mutex_t eventMutex;
83 pthread_mutex_t eventsMutex;
87 vector<ApplicationStatus*> notes;
88 map<string, FormatterEvent*> preparedEvents;
89 FormatterEvent* currentEvent;
95 void setNclEditListener(IPlayerListener* listener);
98 virtual void createPlayer();
100 virtual bool hasPrepared();
101 virtual bool prepare(
102 ExecutionObject*
object, FormatterEvent* mainEvent);
105 void prepare(FormatterEvent* event);
108 virtual bool start();
110 virtual bool pause();
111 virtual bool resume();
112 virtual bool abort();
115 virtual bool unprepare();
118 virtual void naturalEnd();
119 virtual void updateStatus(
126 void notificationHandler(
135 virtual bool setAndLockCurrentEvent(FormatterEvent* event)=0;
136 virtual void unlockCurrentEvent(FormatterEvent* event)=0;
139 bool checkEvent(FormatterEvent* event,
short type);
142 bool startEvent(
string anchorId,
short type,
string value);
143 bool stopEvent(
string anchorId,
short type,
string value);
144 bool abortEvent(
string anchorId,
short type);
145 bool pauseEvent(
string anchorId,
short type);
146 bool resumeEvent(
string anchorId,
short type);
151 void lockPreparedEvents();
152 void unlockPreparedEvents();
155 virtual void flip(){};
165 #endif //_ApplicationPlayerAdapter_H_
Definition: IPlayerAdapterManager.h:65
Definition: ApplicationPlayerAdapter.h:70
Definition: ApplicationPlayerAdapter.h:77
Definition: FormatterPlayerAdapter.h:105