代码拉取完成,页面将自动刷新
#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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。