diff options
Diffstat (limited to 'src/protocols/pixelsudpstreamer.cpp')
| -rw-r--r-- | src/protocols/pixelsudpstreamer.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/protocols/pixelsudpstreamer.cpp b/src/protocols/pixelsudpstreamer.cpp index d7c66c7..e7498d7 100644 --- a/src/protocols/pixelsudpstreamer.cpp +++ b/src/protocols/pixelsudpstreamer.cpp @@ -1,7 +1,17 @@ #include "pixelsudpstreamer.h" -PixelsUdpStreamer::PixelsUdpStreamer(std::shared_ptr<ICamera> camera) - : IProtocol{camera} +#include <QUdpSocket> + +PixelsUdpStreamer::PixelsUdpStreamer(std::shared_ptr<ICamera> camera, QObject *parent) + : QObject{parent} + , IProtocol{camera} {} -bool PixelsUdpStreamer::start() {} +bool PixelsUdpStreamer::start() +{ + m_socket = std::make_shared<QUdpSocket>(); + + return true; +} + +void PixelsUdpStreamer::stop() {} |
