qt/ledset/mainwin.h
2023-09-05 10:02:20 +08:00

31 lines
508 B
C++

#ifndef MAINWIN_H
#define MAINWIN_H
#include "basewin.h"
#include "gutil/qgui.h"
#include <QUdpSocket>
class MainWin : public BaseWin {
Q_OBJECT
public:
MainWin();
~MainWin();
QWidget *win{0};
QByteArray net_name;
TreeWidget *table;
QUdpSocket mUdpSocket;
int maxNetPort_zrf = 0;
public slots:
void getCard();
};
struct UDPPacket {
unsigned char SyncHead[3];
unsigned char ucCommType;
char serialCode[20];
unsigned int iLength;
};
#endif // MAINWIN_H