qt/ledset/mainwin.h

31 lines
508 B
C
Raw Permalink Normal View History

2022-08-25 18:43:03 +08:00
#ifndef MAINWIN_H
#define MAINWIN_H
#include "basewin.h"
2023-03-31 18:44:09 +08:00
#include "gutil/qgui.h"
2023-08-21 11:21:00 +08:00
#include <QUdpSocket>
2022-08-25 18:43:03 +08:00
class MainWin : public BaseWin {
Q_OBJECT
public:
MainWin();
2023-07-28 14:48:41 +08:00
~MainWin();
2022-08-25 18:43:03 +08:00
QWidget *win{0};
2022-12-16 15:08:53 +08:00
QByteArray net_name;
2023-09-05 10:02:20 +08:00
TreeWidget *table;
2023-08-21 11:21:00 +08:00
QUdpSocket mUdpSocket;
2023-09-01 17:25:53 +08:00
int maxNetPort_zrf = 0;
2022-12-16 15:08:53 +08:00
2023-03-20 12:11:58 +08:00
public slots:
void getCard();
2022-08-25 18:43:03 +08:00
};
2023-08-21 11:21:00 +08:00
struct UDPPacket {
unsigned char SyncHead[3];
unsigned char ucCommType;
char serialCode[20];
unsigned int iLength;
};
2022-08-25 18:43:03 +08:00
#endif // MAINWIN_H