qt/LedOK/program/wprogrampublishitem.h

46 lines
1.3 KiB
C
Raw Normal View History

2022-01-04 18:11:48 +08:00
#ifndef WPROGRAMPUBLISHITEM_H
#define WPROGRAMPUBLISHITEM_H
#include <QDateTime>
2022-08-25 18:37:24 +08:00
#include <QDir>
2022-01-04 18:11:48 +08:00
#include <QJsonDocument>
2022-08-25 18:37:24 +08:00
#include <QJsonObject>
#include <QLabel>
#include <QProgressBar>
2022-01-04 18:11:48 +08:00
#include <QPushButton>
2023-05-15 16:06:10 +08:00
#include "base/loqtreewidget.h"
#include "globaldefine.h"
2022-08-25 18:37:24 +08:00
class wProgramPublishItem : public QObject, public QTreeWidgetItem {
2022-01-04 18:11:48 +08:00
Q_OBJECT
public:
2023-05-15 16:06:10 +08:00
explicit wProgramPublishItem(LedCard pLedCard, LoQTreeWidget *parent = nullptr, QString strProgramName="",QString strProgramPath="");
void SetItemParam(LedCard p);
2022-01-04 18:11:48 +08:00
2023-05-15 16:06:10 +08:00
LedCard mLedCard;
2022-08-25 18:37:24 +08:00
QProgressBar *fdProgress{nullptr};
bool mIsSending{false};
2022-01-04 18:11:48 +08:00
private:
QString m_strProgramName="";
QString m_strProgramPath="";
QLabel *m_ImageOnline=nullptr;
LoQTreeWidget *m_parent = nullptr;
2023-05-11 11:47:00 +08:00
QPushButton *btnUnlock = nullptr;//
2022-01-04 18:11:48 +08:00
};
2022-08-25 18:37:24 +08:00
enum ENUM_DEVICE_PUBLISH_HEADERITEM {
2022-01-04 18:11:48 +08:00
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,
2022-08-25 18:37:24 +08:00
ENUM_DEVICE_PUBLISH_HEADE_PROGRESS,
2022-01-04 18:11:48 +08:00
ENUM_DEVICE_PUBLISH_HEADE_REMARKS,
ENUM_DEVICE_PUBLISH_HEADE_END,
};
#endif // WPROGRAMPUBLISHITEM_H