You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
510 B
C++
26 lines
510 B
C++
#ifndef ENCODEMODELCAMERA_H
|
|
#define ENCODEMODELCAMERA_H
|
|
|
|
#include <QByteArray>
|
|
#include <QDataStream>
|
|
#include <QObject>
|
|
#include <QUdpSocket>
|
|
|
|
class EncodeModelCamera : public QObject {
|
|
Q_OBJECT
|
|
public:
|
|
explicit EncodeModelCamera(QObject *parent = nullptr);
|
|
// ~EncodeModelCamera();
|
|
|
|
private:
|
|
QByteArray cmdArray;
|
|
QUdpSocket *cameraUDP;
|
|
public slots:
|
|
void SendCMD(QByteArray cmdDataArray);
|
|
void ReadData();
|
|
signals:
|
|
void UDP_Receive(QByteArray cmdDataArray);
|
|
};
|
|
|
|
#endif // ENCODEMODELCAMERA_H
|