#ifndef MAINWINDOW_H #define MAINWINDOW_H #include "base/loqtitlebar.h" #include "basewin.h" #include "devicepanel.h" #include "globaldefine.h" #include "mguangyingpinwidget.h" #include "progpanel.h" #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; QTranslator transQt; LoQTitleBar *m_wTitle; QActionGroup *langGrp; QAction *act_lang; QAction *act_help, *actInfo; QAction *act_update; QAction *act_updatefirmware; QAction *act_softconfiguration; QAction *act_about; QPushButton *bn_Setting; QButtonGroup *mBtnGrp; QWidget *wgts[MainPage_End]{}; QPushButton *m_pOneKeyCheckCard; DevicePanel *mDevicePanel; ProgPanel *mProgPanel; mGuangYingPinWidget *m_wGuangYingPinWidget; QTimer *m_pTimerSendResoreIpOneKey=nullptr; bool hasNewVer{false}; void test(); }; 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