inital commit

This commit is contained in:
2023-01-29 18:45:42 +01:00
commit f91c9f1a6f
19 changed files with 3763 additions and 0 deletions

36
vhfmillthread.h Normal file
View File

@ -0,0 +1,36 @@
#ifndef VHFMILLTHREAD_H
#define VHFMILLTHREAD_H
#include <QThread>
#include <QSerialPort>
#include <QTcpSocket>
#include "vhfmill.h"
class VhfMillThread : public QThread
{
Q_OBJECT
private:
const bool tcp;
const int port;
const QString serialPort;
const QString host;
public:
VhfMill* mill = nullptr;
QIODevice* masterIODevice = nullptr;
int ret = -1;
public:
VhfMillThread(bool tcpI, int portI, const QString& hostI, const QString& serialPortI, QObject *parent = nullptr);
~VhfMillThread();
signals:
void ready();
protected:
virtual void run() override;
};
#endif // VHFMILLTHREAD_H