qt/LedOK/program/wprogrampublishitem.h
2023-05-11 11:47:00 +08:00

49 lines
1.4 KiB
C++

#ifndef WPROGRAMPUBLISHITEM_H
#define WPROGRAMPUBLISHITEM_H
#include <QDateTime>
#include <QDir>
#include <QJsonDocument>
#include <QJsonObject>
#include <QLabel>
#include <QProgressBar>
#include <QPushButton>
#include <QTreeWidget>
#include <QTreeWidgetItem>
#include <base/loqtreewidget.h>
#include <communication/hpptclient.h>
#include <device/ledcard.h>
class wProgramPublishItem : public QObject, public QTreeWidgetItem {
Q_OBJECT
public:
explicit wProgramPublishItem(LedCard *pLedCard, LoQTreeWidget *parent = nullptr, QString strProgramName="",QString strProgramPath="");
void SetItemParam(LedCard *p);
LedCard *mLedCard{nullptr};
QProgressBar *fdProgress{nullptr};
bool mIsSending{false};
private:
QString m_strProgramName="";
QString m_strProgramPath="";
QLabel *m_ImageOnline=nullptr;
LoQTreeWidget *m_parent = nullptr;
QPushButton *btnUnlock = nullptr;//
};
enum ENUM_DEVICE_PUBLISH_HEADERITEM {
ENUM_DEVICE_PUBLISH_HEADE_CHECK=0,
ENUM_DEVICE_PUBLISH_HEADE_SCREEN_ID,
ENUM_DEVICE_PUBLISH_HEADE_ONLINE,
ENUM_DEVICE_PUBLISH_HEADE_SCREEN_IP,
ENUM_DEVICE_PUBLISH_HEADE_SCREEN_SIZE,
ENUM_DEVICE_PUBLISH_HEADE_ENCRYPT,
ENUM_DEVICE_PUBLISH_HEADE_REMARK_NAME,
ENUM_DEVICE_PUBLISH_HEADE_PROGRESS,
ENUM_DEVICE_PUBLISH_HEADE_REMARKS,
ENUM_DEVICE_PUBLISH_HEADE_END,
};
#endif // WPROGRAMPUBLISHITEM_H