Allow forwarding of flat-/proto buffer input (#1471)

* Typo

* Address compiler Warnings

* Allow forwarding of flat-/proto buffer input
This commit is contained in:
LordGrey
2022-05-29 17:47:08 +02:00
committed by GitHub
parent 7c76322215
commit ec496ed457
15 changed files with 792 additions and 735 deletions

View File

@@ -198,6 +198,7 @@ void ProtoClientConnection::handleImageCommand(const proto::ImageRequest &messag
}
emit setGlobalInputImage(_priority, imageRGB, duration);
emit setBufferImage("ProtoBuffer", imageRGB);
// send reply
sendSuccessReply();

View File

@@ -56,6 +56,11 @@ signals:
///
void setGlobalInputColor(int priority, const std::vector<ColorRgb> &ledColor, int timeout_ms, const QString& origin = "ProtoBuffer" ,bool clearEffects = true);
///
/// @brief Emit the final processed image
///
void setBufferImage(const QString& name, const Image<ColorRgb>& image);
///
/// @brief Emits whenever the client disconnected
///

View File

@@ -80,6 +80,7 @@ void ProtoServer::newConnection()
connect(client, &ProtoClientConnection::clearGlobalInput, GlobalSignals::getInstance(), &GlobalSignals::clearGlobalInput);
connect(client, &ProtoClientConnection::setGlobalInputImage, GlobalSignals::getInstance(), &GlobalSignals::setGlobalImage);
connect(client, &ProtoClientConnection::setGlobalInputColor, GlobalSignals::getInstance(), &GlobalSignals::setGlobalColor);
connect(client, &ProtoClientConnection::setBufferImage, GlobalSignals::getInstance(), &GlobalSignals::setBufferImage);
connect(GlobalSignals::getInstance(), &GlobalSignals::globalRegRequired, client, &ProtoClientConnection::registationRequired);
_openConnections.append(client);
}