1 Star 0 Fork 0

qinxude/rk3568ui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
onvifptz.h 2.25 KB
一键复制 编辑 原始数据 按行查看 历史
qinxude 提交于 2024-09-03 09:38 . 3568ui base
#ifndef ONVIFPTZ_H
#define ONVIFPTZ_H
#include <QObject>
#include <QDebug>
#include <QThread>
//extern "C" {
//#include "soapH.h"
//#include "soapStub.h"
//#include "wsseapi.h"
//}
class OnvifPTZ : public QThread
{
typedef enum {
PTZ_NULL = 0,
PTZ_GETCAPABILITIES,
PTZ_GETSERVICES,
PTZ_GETPROFILES,
PTZ_MOVETO,
}PtzStep_t;
Q_OBJECT
public:
OnvifPTZ(QString Ip = QString(""),QString Port = QString(""),QString UserName = QString(""),QString PassWord = QString(""));
~OnvifPTZ();
void SetInfo(QString Ip,QString Port,QString UserName,QString PassWord);
bool GetCapabilities();
bool GetServices();
bool GetProfiles();
bool MoveTo(double x, double y, double z);
signals:
void GetCapabilitiesRes(bool);
void GetServicesRes(bool);
void GetProfilesRes(bool);
void MoveToRes(bool);
private:
bool _ContinuousMove();
bool _AbsoluteMoveP();
// bool _RelativeMoveP();
bool _GetCapabilities();
bool _GetServices();
bool _GetProfiles();
// bool _GetCurrentPos();
bool _Up();
bool _Down();
bool _Left();
bool _Right();
bool _Enlarge();
bool _Narrow();
bool _Stop();
bool _MoveTo(double x, double y, double z);
// bool _MoveStep(double x, double y, double z);
void run();
private:
QString m_Ip;
QString m_Port;
QString m_UserName;
QString m_PassWord;
// struct soap soap;
PtzStep_t m_Step;
char * ip;
int retval;
int result;
char Mediaddr[256];
char Ptzaddr[256];
char profile[256];
char endpoint[255];
int speed_x;
int speed_y;
int speed_z;
double PlaceX;
double PlaceY;
double PlaceZ;
double StepX;
double StepY;
double StepZ;
// struct _tds__GetCapabilities req;
// struct _tds__GetCapabilitiesResponse rep;
// struct _tds__GetServices tds__GetServices;
// struct _tds__GetServicesResponse tds__GetServicesResponse;
// struct _trt__GetProfiles getProfiles;
// struct _trt__GetProfilesResponse response;
// struct _tptz__ContinuousMove continuousMove;
// struct _tptz__ContinuousMoveResponse continuousMoveresponse;
};
#endif // ONVIFPTZ_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/qinxude/rk3568ui.git
[email protected]:qinxude/rk3568ui.git
qinxude
rk3568ui
rk3568ui
master

搜索帮助