2014-11-21 21:24:33 +01:00
|
|
|
// protoserver includes
|
|
|
|
#include "protoserver/ProtoConnectionWrapper.h"
|
|
|
|
|
|
|
|
ProtoConnectionWrapper::ProtoConnectionWrapper(const std::string & address, int priority, int duration_ms, bool skipProtoReply) :
|
2016-05-26 23:44:27 +02:00
|
|
|
_priority(priority),
|
|
|
|
_duration_ms(duration_ms),
|
|
|
|
_connection(address)
|
2014-11-21 21:24:33 +01:00
|
|
|
{
|
2016-05-26 23:44:27 +02:00
|
|
|
_connection.setSkipReply(skipProtoReply);
|
2016-06-07 23:12:18 +02:00
|
|
|
connect(&_connection, SIGNAL(setGrabbingMode(GrabbingMode)), this, SIGNAL(setGrabbingMode(GrabbingMode)));
|
|
|
|
connect(&_connection, SIGNAL(setVideoMode(VideoMode)), this, SIGNAL(setVideoMode(VideoMode)));
|
2014-11-21 21:24:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
ProtoConnectionWrapper::~ProtoConnectionWrapper()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void ProtoConnectionWrapper::receiveImage(const Image<ColorRgb> & image)
|
|
|
|
{
|
2016-05-26 23:44:27 +02:00
|
|
|
_connection.setImage(image, _priority, _duration_ms);
|
2014-11-21 21:24:33 +01:00
|
|
|
}
|