1 Star 0 Fork 0

qinxude/rk3568ui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
onvifcamconfscreen.h 1.66 KB
一键复制 编辑 原始数据 按行查看 历史
qinxude 提交于 2024-09-03 09:38 . 3568ui base
#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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/qinxude/rk3568ui.git
[email protected]:qinxude/rk3568ui.git
qinxude
rk3568ui
rk3568ui
master

搜索帮助