From 33467d4924e2b7c63316435764c6909e681f7007 Mon Sep 17 00:00:00 2001 From: Nikita Kostovsky Date: Tue, 18 Nov 2025 21:27:02 +0100 Subject: use moc remotely --- src/protocols/pixelsudpstreamer.h | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'src/protocols/pixelsudpstreamer.h') diff --git a/src/protocols/pixelsudpstreamer.h b/src/protocols/pixelsudpstreamer.h index db8acc3..a7f69b7 100644 --- a/src/protocols/pixelsudpstreamer.h +++ b/src/protocols/pixelsudpstreamer.h @@ -1,14 +1,27 @@ #pragma once +// qt +#include +#include + +// orpheus #include "iprotocol.h" -class PixelsUdpStreamer : public IProtocol +// qt +class QUdpSocket; + +class PixelsUdpStreamer : public QObject, public IProtocol { + Q_OBJECT + public: - explicit PixelsUdpStreamer(std::shared_ptr camera); + explicit PixelsUdpStreamer(std::shared_ptr camera, QObject *parent = nullptr); ~PixelsUdpStreamer() override = default; -public: +public slots: bool start() override; void stop() override; + +private: + std::shared_ptr m_socket; }; -- cgit v1.2.3-70-g09d2