2022-01-04 18:11:48 +08:00
|
|
|
#ifndef CONTROLENCRYPTWIDGET_H
|
|
|
|
#define CONTROLENCRYPTWIDGET_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include <wDevicesManager/ledcard.h>
|
|
|
|
#include <communication/hpptclient.h>
|
2022-10-27 15:07:45 +08:00
|
|
|
#include <base/loemptydialog.h>
|
2022-01-04 18:11:48 +08:00
|
|
|
namespace Ui {
|
|
|
|
class ControlEncryptWidget;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ControlEncryptWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit ControlEncryptWidget(QWidget *parent = nullptr,QList<LedCard *> *m_pLedlist=nullptr);
|
|
|
|
~ControlEncryptWidget();
|
|
|
|
private:
|
|
|
|
Ui::ControlEncryptWidget *ui;
|
|
|
|
protected slots:
|
|
|
|
void DeletePostingDlg();
|
|
|
|
void OnSetPassword();
|
|
|
|
void OnCancelPassword();
|
|
|
|
void refreshLable();
|
|
|
|
//类似的控制操作信号和槽函数和变量定义
|
|
|
|
signals:
|
|
|
|
void sigSend(QJsonObject &,QString);
|
|
|
|
protected slots:
|
|
|
|
void OnProHttpResponse(QString url, QString postMD5, QByteArray data);
|
|
|
|
void OnProHttpResponseAll(QString url, QString postMD5, QByteArray data);
|
|
|
|
void onSelectedDeviceList(QList<LedCard*> *);
|
|
|
|
void onReadbackAllThisPage();
|
|
|
|
void OnControlTypeSwitchIndexChanged(int index);
|
|
|
|
private:
|
|
|
|
QList<LedCard *> *m_pLedlist=nullptr;
|
|
|
|
LedCard *m_pLedCard = nullptr;
|
|
|
|
LedCard *m_oldLedlist = nullptr;
|
|
|
|
HpptClient *pHpptClient = nullptr;
|
|
|
|
HpptClient *pHpptClientAll = nullptr;
|
|
|
|
QString m_strUrl="";
|
|
|
|
LoEmptyDialog * m_PostingDlg=nullptr;
|
|
|
|
QTimer *m_pGetAskTimer=nullptr;
|
|
|
|
bool m_bSelected=false;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONTROLENCRYPTWIDGET_H
|