#ifndef WUPGRADEAPKITEM_H #define WUPGRADEAPKITEM_H #include "globaldefine.h" #include #include #include #include #include #include #include #include class wUpgradeApkItem : public QTreeWidgetItem { public: explicit wUpgradeApkItem(LedCard card, LoQTreeWidget *parent); void SetItemParam(LedCard p); void setResult(QString, QColor cr = Qt::blue); LedCard mCard; bool isUpdating{false}; bool m_lockFlag=true; QLabel *m_ImageOnline=nullptr; LoQTreeWidget *m_parent = nullptr; QProgressBar *mProgress=nullptr; QPushButton *btnUnlock = nullptr; void OnCheckSoftVersions(); void OnCheckFpgaVersions(); private: void postFileTask(const QString& strUrl, const QString& strFilePath);//需要的数据 }; enum ENUM_DEVICE_PUBLISH_HEADERITEM { Upgrade_Check=0, Upgrade_SCREEN_ID, Upgrade_ONLINE, Upgrade_SCREEN_IP, Upgrade_ENCRYPT, Upgrade_REMARK_NAME, Upgrade_PROGRESS, Upgrade_Remark, Upgrade_XIXUNPLAYER_VERSION, Upgrade_CARDSYSTEM_VERSION, Upgrade_STARTER_VERSION, Upgrade_TAXIAPP_VERSION, Upgrade_DISPLAYER_VERSION, Upgrade_FPAG_VERSION, Upgrade_CONNECTION_VERSION, Upgrade_UPDATE_VERSION, Upgrade_END, }; #endif // WPROGRAMPUBLISHITEM_H