#ifndef MAINWINDOW_H #define MAINWINDOW_H #include "base/loqtitlebar.h" #include "basewin.h" #include "devicepanel.h" #include "main.h" #include "mguangyingpinwidget.h" #include "progpanel.h" #include #include #include class MainWindow : public BaseWin { Q_OBJECT public: explicit MainWindow(QWidget *parent = nullptr); ~MainWindow(); protected: void changeEvent(QEvent *) override; void transUi(); private: QJsonObject updates; QTranslator translator; LoQTitleBar *m_wTitle; QActionGroup *langGrp; QAction *act_lang; QAction *act_help; QAction *act_upd = 0; QAction *actFirmware; QAction *actPreferences; QAction *act_about = 0; QPushButton *bn_Setting; QButtonGroup *mBtnGrp; QWidget *wgts[MainPage_End]{0}; QPushButton *fdDetectCard{0}; DevicePanel *mDevicePanel{0}; ProgPanel *mProgPanel{0}; mGuangYingPinWidget *m_wGuangYingPinWidget{0}; bool hasNewVer{false}; }; struct RESTORE_IP { char cNewIp[20]; char cMask[20]; char cGateway[20]; char cDns[20]; }; struct STREAM_PACKET { unsigned char SyncHead[3]; unsigned char ucCommType; char ucSerialCode[20]; unsigned int iLength; char pDataBuffer[2049]; }; #endif // MAINWINDOW_H