qt/ledset/mainwin.h
2023-08-21 11:21:00 +08:00

30 lines
478 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;
Table *table{0};
QUdpSocket mUdpSocket;
public slots:
void getCard();
};
struct UDPPacket {
unsigned char SyncHead[3];
unsigned char ucCommType;
char serialCode[20];
unsigned int iLength;
};
#endif // MAINWIN_H