50 #include "network/TcpSocketService.h"
58 #include "util/functions.h"
59 #include "util/Base64.h"
61 using namespace ::br::pucrio::telemidia::util;
63 #include "system/compat/SystemCompat.h"
64 using namespace ::br::pucrio::telemidia::ginga::core::system::compat;
66 #include "contextmanager/IContextManager.h"
67 using namespace ::br::pucrio::telemidia::ginga::core::contextmanager;
69 #ifndef REMOTEEVENTSERVICE_H_
70 #define REMOTEEVENTSERVICE_H_
79 namespace multidevice {
83 pthread_mutex_t groupsMutex;
84 map<int,TcpSocketService*> groups;
85 static const int DEFAULT_PORT = 22222;
86 static IContextManager* contextManager;
87 string base_device_ncl_path;
95 void addDeviceClass(
unsigned int id);
96 void setBaseDeviceNCLPath(
string base_device_ncl_path);
98 unsigned int device_class,
99 unsigned int device_id,
102 bool isLocalConnection);
104 void addDocument(
unsigned int device_class,
char* name,
char* body);
105 void startDocument(
unsigned int device_class,
char* name);
106 void stopDocument(
unsigned int device_class,
char* name);
108 bool newDeviceConnected(
int newDevClass,
int w,
int h);
109 void connectedToBaseDevice(
unsigned int domainAddr);
111 bool receiveRemoteContent(
115 bool receiveRemoteContent(
117 char *stream,
int streamSize);
119 bool receiveRemoteContentInfo(
120 string contentId,
string contentUri);
122 bool receiveRemoteEvent(
125 string eventContent);
Definition: RemoteEventService.h:80
Definition: IRemoteDeviceListener.h:62