mirror of
https://github.com/wf-group/wfview
synced 2026-08-13 17:32:59 -04:00
56 lines
958 B
C++
56 lines
958 B
C++
// Class for all (pseudo) serial communications
|
|
#ifndef ICOMUDPCIVDATA_H
|
|
#define ICOMUDPCIVDATA_H
|
|
|
|
#include <QObject>
|
|
#include <QUdpSocket>
|
|
#include <QNetworkDatagram>
|
|
#include <QHostInfo>
|
|
#include <QTimer>
|
|
#include <QMutex>
|
|
#include <QDateTime>
|
|
#include <QByteArray>
|
|
#include <QVector>
|
|
#include <QMap>
|
|
#include <QUuid>
|
|
|
|
// Allow easy endian-ness conversions
|
|
#include <QtEndian>
|
|
|
|
// Needed for audio
|
|
#include <QBuffer>
|
|
#include <QThread>
|
|
|
|
#include <QDebug>
|
|
|
|
#include "packettypes.h"
|
|
|
|
#include "icomudpbase.h"
|
|
|
|
class icomUdpCivData : public icomUdpBase
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
icomUdpCivData(QHostAddress local, QHostAddress ip, quint16 civPort, bool splitWf, quint16 lport);
|
|
~icomUdpCivData();
|
|
QMutex serialmutex;
|
|
|
|
signals:
|
|
int receive(QByteArray);
|
|
|
|
public slots:
|
|
void send(QByteArray d);
|
|
|
|
|
|
private:
|
|
void watchdog();
|
|
void dataReceived();
|
|
void sendOpenClose(bool close);
|
|
|
|
QTimer* startCivDataTimer = Q_NULLPTR;
|
|
bool splitWaterfall = false;
|
|
};
|
|
|
|
|
|
#endif
|