1 Star 0 Fork 0

qinxude/rk3568ui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
onvifinterface.h 3.60 KB
一键复制 编辑 原始数据 按行查看 历史
qinxude 提交于 2024-09-03 09:38 . 3568ui base
#ifndef ONVIFINTERFACE_H
#define ONVIFINTERFACE_H
#include <QDebug>
#include <QObject>
#include "datadictionary.h"
//extern "C" {
//#include "soapH.h"
//#include "soapStub.h"
//#include "wsseapi.h"
//}
#define SOAP_ASSERT(x) do{x;}while(0)
#define SOAP_DBGLOG printf
#define SOAP_DBGERR printf
#define SOAP_TO "urn:schemas-xmlsoap-org:ws:2005:04:discovery"
#define SOAP_ACTION "http://schemas.xmlsoap.org/ws/2005/04/discovery/Probe"
#define SOAP_MCAST_ADDR "soap.udp://239.255.255.250:3702" // onvif规定的组播地址
#define SOAP_ITEM "" // 寻找的设备范围
#define SOAP_TYPES "dn:NetworkVideoTransmitter" // 寻找的设备类型
#define SOAP_SOCK_TIMEOUT (10) // socket超时时间(单秒秒)
#define SOAP_CHECK_ERROR(result, soap, str) \
do { \
if (SOAP_OK != (result) || SOAP_OK != (soap)->error) { \
soap_perror((soap), (str)); \
if (SOAP_OK == (result)) { \
(result) = (soap)->error; \
} \
goto EXIT; \
} \
} while (0)
class OnvifInterface : public QObject
{
Q_OBJECT
public:
OnvifInterface();
int ONVIF_ClientDiscovery(QList<struct CameraInfo> &List);
// struct soap* ONVIF_Initsoap(struct SOAP_ENV__Header *header, const char *was_To, const char *was_Action, int timeout);
private slots:
void CameraCtlDataChange(CameraCtlIndex_t);
private:
// void soap_perror(struct soap *soap, const char *str);
// void* ONVIF_soap_malloc(struct soap *soap, unsigned int n);
// struct soap *ONVIF_soap_new(int timeout);
// void ONVIF_soap_delete(struct soap *soap);
// void ONVIF_init_header(struct soap *soap);
// void ONVIF_init_ProbeType(struct soap *soap, struct wsdd__ProbeType *probe);
void ONVIF_DetectDevice(QList<CameraInfo_t> &List);
int ONVIF_GetDeviceInformation(const char *DeviceXAddr);
// int ONVIF_GetDpAddr(const char *DeviceXAddr, const char *UsrName, const char *Pw, QList<CameraNetworkInfo_t> &list);
int ONVIF_GetDNS(const char *DeviceXAddr,const char *UsrName,const char *Pw,QList<CameraNetworkInfo_t> &list);
int ONVIF_SetDNS(const char *DeviceXAddr, const char *UsrName, const char *Pw, QList<CameraNetworkInfo_t> &list);
int ONVIF_GetNTP(const char *DeviceXAddr,const char *UsrName,const char *Pw,QList<CameraNetworkInfo_t> &list);
int ONVIF_GetGateway(const char *DeviceXAddr,const char *UsrName,const char *Pw,QList<CameraNetworkInfo_t> &list);
int ONVIF_SetGateway(const char *DeviceXAddr, const char *UsrName, const char *Pw, QList<CameraNetworkInfo_t> &list);
int ONVIF_GetNetworkInterfaces(const char *DeviceXAddr, const char *UsrName, const char *Pw, QList<CameraNetworkInfo_t> &list);
int ONVIF_SetNetworkInterfaces(const char *DeviceXAddr,const char *UsrName,const char *Pw,QList<CameraNetworkInfo_t> &list);
int ONVIF_GetZeroConfiguration(const char *DeviceXAddr,const char *UsrName,const char *Pw,QList<CameraNetworkInfo_t> &list);
int ONVIF_GetVideoSourceConfigurations(const char *DeviceXAddr,const char *UsrName,const char *Pw,QList<CameraConfigInfo_t> &list);
int ONVIF_GetVideoEncoderConfigurations(const char *DeviceXAddr, const char *UsrName, const char *Pw, QList<CameraConfigInfo_t> &list);
int ONVIF_SetVideoEncoderConfigurations(const char *DeviceXAddr,const char *UsrName,const char *Pw,QList<CameraConfigInfo_t> &list);
int ONVIF_SystemReboot(const char *DeviceXAddr,const char *UsrName,const char *Pw);
private:
DataDictionary *m_DataDictionary;
};
#endif // ONVIFINTERFACE_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/qinxude/rk3568ui.git
[email protected]:qinxude/rk3568ui.git
qinxude
rk3568ui
rk3568ui
master

搜索帮助