qt/LedOK/program/wprogrampublishitem.h

49 lines
1.4 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>
2022-08-25 18:37:24 +08:00
#include <QTreeWidget>
#include <QTreeWidgetItem>
#include <base/loqtreewidget.h>
2022-01-04 18:11:48 +08:00
#include <communication/hpptclient.h>
2023-04-18 14:14:46 +08:00
#include <device/ledcard.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-11 11:47:00 +08:00
explicit wProgramPublishItem(LedCard *pLedCard, LoQTreeWidget *parent = nullptr, QString strProgramName="",QString strProgramPath="");
2022-01-04 18:11:48 +08:00
void SetItemParam(LedCard *p);
2022-08-25 18:37:24 +08:00
LedCard *mLedCard{nullptr};
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