qt/LedOK/program/wprogrampublishitem.h
2023-05-15 16:06:10 +08:00

46 lines
1.3 KiB
C++

#ifndef WPROGRAMPUBLISHITEM_H
#define WPROGRAMPUBLISHITEM_H
#include <QDateTime>
#include <QDir>
#include <QJsonDocument>
#include <QJsonObject>
#include <QLabel>
#include <QProgressBar>
#include <QPushButton>
#include "base/loqtreewidget.h"
#include "globaldefine.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;
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