blob: a7f69b741e9179ab516d0e25e99884ffc42154c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#pragma once
// qt
#include <QObject>
#include <QReadWriteLock>
// orpheus
#include "iprotocol.h"
// qt
class QUdpSocket;
class PixelsUdpStreamer : public QObject, public IProtocol
{
Q_OBJECT
public:
explicit PixelsUdpStreamer(std::shared_ptr<ICamera> camera, QObject *parent = nullptr);
~PixelsUdpStreamer() override = default;
public slots:
bool start() override;
void stop() override;
private:
std::shared_ptr<QUdpSocket> m_socket;
};
|