50 #ifndef PRESENTATIONENGINEMANAGER_H_
51 #define PRESENTATIONENGINEMANAGER_H_
53 #include "util/functions.h"
54 using namespace ::br::pucrio::telemidia::util;
56 #include "system/thread/Thread.h"
57 using namespace ::br::pucrio::telemidia::ginga::core::system::thread;
59 #include "mb/IInputManager.h"
60 #include "mb/ILocalScreenManager.h"
61 #include "mb/interface/IInputEventListener.h"
62 using namespace ::br::pucrio::telemidia::ginga::core::mb;
64 #include "player/IShowButton.h"
65 #include "player/IProgramAV.h"
66 #include "player/IPlayerListener.h"
67 #include "player/IApplicationPlayer.h"
68 using namespace ::br::pucrio::telemidia::ginga::core::player;
70 #include "ncl/layout/LayoutRegion.h"
71 using namespace ::br::pucrio::telemidia::ncl::layout;
73 #include "ncl/components/ContentTypeManager.h"
74 #include "ncl/NclDocument.h"
75 using namespace ::br::pucrio::telemidia::ncl;
77 #include "gingancl/privatebase/IPrivateBaseManager.h"
78 using namespace ::br::pucrio::telemidia::ginga::ncl;
80 #include "IPresentationEngineManager.h"
97 public IPlayerListener,
98 public IInputEventListener,
99 public ICmdEventListener,
103 static const short UC_BACKGROUND = 0;
104 static const short UC_PRINTSCREEN = 1;
105 static const short UC_STOP = 2;
106 static const short UC_PAUSE = 3;
107 static const short UC_RESUME = 4;
108 static const short UC_SHIFT = 5;
117 GingaScreenID myScreen;
118 IPrivateBaseManager* privateBaseManager;
119 map<string, INCLPlayer*> formatters;
120 set<INCLPlayer*> formattersToRelease;
130 bool hasTMPNotification;
131 bool hasInteractivity;
133 bool enableMulticast;
138 ITimeBaseProvider* timeBaseProvider;
139 int currentPrivateBaseId;
140 static bool autoProcess;
141 vector<string> commands;
142 static ILocalScreenManager* dm;
156 GingaScreenID screenId);
160 void setDebugWindow(
bool debugWindow);
161 void setExitOnEnd(
bool exitOnEnd);
162 void setDisableFKeys(
bool disableFKeys);
164 set<string>* createPortIdList(
string nclFile);
165 short getMappedInterfaceType(
string nclFile,
string portId);
167 void disableMainAV(
bool disableAV);
168 void autoMountOC(
bool autoMountIt);
169 void setCurrentPrivateBaseId(
unsigned int baseId);
170 void setTimeBaseProvider(ITimeBaseProvider* tmp);
173 void printGingaWindows();
174 bool nclEdit(
string nclEditApi);
175 bool editingCommand(
string commandTag,
string commandPayload);
178 bool editingCommand(
string editingCmd);
179 void setBackgroundImage(
string uri);
184 void setTimeBaseInfo(INCLPlayer* nclPlayer);
187 void getScreenShot();
188 bool getIsLocalNcl();
189 void setEmbedApp(
bool isEmbedded);
190 void setIsLocalNcl(
bool isLocal,
void* tuner=NULL);
191 void setInteractivityInfo(
bool hasInt);
194 INCLPlayer* createNclPlayer(
string baseId,
string fname);
199 void addPlayerListener(
string nclFile, IPlayerListener* listener);
200 void removePlayerListener(
string nclFile, IPlayerListener* listener);
202 bool openNclFile(
string nclFile);
203 bool startPresentation(
string nclFile,
string interfId);
204 bool pausePresentation(
string nclFile);
205 bool resumePresentation(
string nclFile);
206 bool stopPresentation(
string nclFile);
207 bool setPropertyValue(
string nclFile,
string interfaceId,
string value);
208 string getPropertyValue(
string nclFile,
string interfaceId);
209 bool stopAllPresentations();
210 bool abortPresentation(
string nclFile);
214 void openNclDocument(
string docUri,
int x,
int y,
int w,
int h);
217 void* getDsmccListener();
221 void setCmdFile(
string cmdFile);
222 static void* processAutoCmd(
void* ptr);
223 void waitUnlockCondition();
226 void presentationCompleted(
string formatterId);
227 void releaseFormatter(
string formatterId);
231 short code,
string parameter,
short type,
string value);
233 bool userEventReceived(IInputEvent* ev);
234 bool cmdEventReceived(
string command,
string args);
236 static void* eventReceived(
void* ptr);
237 void readCommand(
string command);
239 bool getNclPlayer(
string docLocation, INCLPlayer** player);
240 bool getNclPlayer(
string baseId,
string docId, INCLPlayer** p);
242 void updateFormatters(
short command,
string parameter=
"");
Definition: PresentationEngineManager.h:95
Definition: INCLPlayer.h:63
Definition: IPresentationEngineManager.h:70