代码拉取完成,页面将自动刷新
#ifndef ONVIFCAMCONFSCREEN_H
#define ONVIFCAMCONFSCREEN_H
#include <QWidget>
#include <QList>
#include <QPushButton>
#include "datadictionary.h"
#define CheckNameAndPw() do{\
if(ui->Name->text().isEmpty() ||\
ui->Pw->text().isEmpty())\
return ;\
ButtonEnable(ui->CameraReboot,true);\
ButtonEnable(ui->GetNetworkInfo,true);\
ButtonEnable(ui->GetCamerInfo,true);\
}while(0)
namespace Ui {
class OnvifCamConfScreen;
}
class OnvifCamConfScreen : public QWidget
{
Q_OBJECT
public:
explicit OnvifCamConfScreen(QWidget *parent = nullptr);
~OnvifCamConfScreen();
void SetIp(QString Ip) { m_Ip = Ip;}
protected:
void showEvent(QShowEvent *event);
void hideEvent(QHideEvent *event);
private slots:
void on_QuiteButton_clicked();
void CameraCtlDataChange(CameraCtlIndex_t Index);
void on_GetNetworkInfo_clicked();
void on_GetCamerInfo_clicked();
void AddCameraNetworkInfo(QList<CameraNetworkInfo_t> &list);
void AddCameraConfigInfo(QList<CameraConfigInfo_t> &list);
void on_CameraReboot_clicked();
void on_Name_returnPressed();
void on_Pw_returnPressed();
void on_SetCamerInfo_clicked();
void on_SetNetworkInfo_clicked();
void on_Dhcp_stateChanged(int arg1);
private:
QString GetServer();
void EnableDhcp(bool s);
void Init();
void NetworkInputEnable(bool e);
void ConfigInputEnable(bool e);
void ButtonEnable(QPushButton *b,bool e);
private:
Ui::OnvifCamConfScreen *ui;
QString m_Ip;
DataDictionary *m_DataDictionary;
QList<CameraInfo_t> m_CamList;
QList<CameraNetworkInfo_t> m_CamNetworkList;
};
#endif // ONVIFCAMCONFSCREEN_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。