qt/LedOK/program/wprogrampublishitem.h

56 lines
1.5 KiB
C
Raw Normal View History

2022-01-04 18:11:48 +08:00
#ifndef WPROGRAMPUBLISHITEM_H
#define WPROGRAMPUBLISHITEM_H
2022-08-25 18:37:24 +08:00
#include "sendprogthread.h"
2022-01-04 18:11:48 +08:00
#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:
explicit wProgramPublishItem(LedCard *pLedCard, LoQTreeWidget *parent = nullptr,QWidget *pWnd=nullptr,QString strProgramName="",QString strProgramPath="");
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
public slots:
void onVerifyLockPassword();
private:
2022-08-25 18:37:24 +08:00
void SetPasswordItem(LedCard *p);
2022-01-04 18:11:48 +08:00
QString m_strProgramName="";
QString m_strProgramPath="";
QLabel *m_ImageOnline=nullptr;
LoQTreeWidget *m_parent = nullptr;
QWidget *m_pWnd=nullptr;
QPushButton *m_bnLock = nullptr;//
};
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