2014-11-21 21:24:33 +01:00
|
|
|
// protoserver includes
|
|
|
|
#include "protoserver/ProtoConnectionWrapper.h"
|
|
|
|
|
2016-08-28 15:10:43 +02:00
|
|
|
ProtoConnectionWrapper::ProtoConnectionWrapper(const QString &address,
|
|
|
|
int priority,
|
|
|
|
int duration_ms,
|
|
|
|
bool skipProtoReply)
|
2016-07-16 22:51:31 +02:00
|
|
|
: _priority(priority)
|
|
|
|
, _duration_ms(duration_ms)
|
2017-03-04 22:17:42 +01:00
|
|
|
, _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(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
|
|
|
}
|