123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- #ifndef OAMUPGRADE_H
- #define OAMUPGRADE_H
- #include <QDialog>
- #include "pspublic.h"
- #define OAM_UPGRADE_SWITCH_SOFT_WORK_MODE 0x0601
- #define OAM_UPGRADE_NOTICE_UPGRADE_FILE_INFO 0x0602
- #define OAM_UPGRADE_SEND_UPGRADE_FILE 0x0603
- #define OAM_UPGRADE_NOTICE_UPGRADE_OVER 0x0604
- typedef struct{
- quint8 upgradeStatus;
- quint32 fileSize;
- quint32 totalTimes;
- quint32 sendingTimes;
- quint16 remainderLen;
- quint8 *pData;
- }OAM_UPGRADE_T;
- typedef struct{
- quint32 fileSize;
- quint32 totalTimes;
- }OAM_UPGRAD_NOTICE_FILE_INFO_T;
- typedef struct{
- quint32 sendTimes;
- quint8 abyData[PS_MCP_B_DATA_LEN];
- }OAM_UPGRADE_DATA_PAYLOAD_T;
- class MainDlg;
- namespace Ui {
- class OamUpgrade;
- }
- class OamUpgrade : public QDialog
- {
- Q_OBJECT
- public:
- explicit OamUpgrade(QWidget *parent = nullptr);
- ~OamUpgrade();
- private:
- Ui::OamUpgrade *ui;
- MainDlg *m_pMainDlg;
- QString m_strFilePaht;
- OAM_UPGRADE_T m_stUpgrade;
- LTV_B_T m_stLtvB;
- void configSignalSlot();
- void selectUpgradeFile();
- void startUpgrade();
- void switchSoftWorkMode();
- void noticeUpgradeFileInfo();
- void sendUpgradeFile();
- void noticeUpgradeOver();
- void deinitUpgrade();
- void slotNoticeUpgradeOk(quint16 wTag);
- void slotNoticeUpgradeFail();
- void slotNoticeUpgradeTimeout();
- void upgradeSuccess();
- signals:
- void SignalSendUpgradeMsg(quint8 *pbyData,quint8 byCmdType, quint16 dataLen);
- void SignalSendRestartMsg();
- };
- #endif
|