#ifndef MAINWIN_H #define MAINWIN_H #include "basewin.h" #include "gutil/qgui.h" #include 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