You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
2.0 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
7 years ago
​
​
​
7 years ago
​
​
​
​
​
​
7 years ago
7 years ago
​
​
​
​
​
​
​
  1. #ifndef __ONVIF_CLIENT_PTZ__
  2. #define __ONVIF_CLIENT_PTZ__
  3. #include <string>
  4. #include <map>
  5. #include <iostream>
  6. #include <list>
  7. #include "onvifclientdevice.hpp"
  8. #include "../onvifgen/soapStub.h"
  9. #include "../onvifgen/soapPTZBindingProxy.h"
  10. #include "../gsoap/wsseapi.h"
  11. //#include "soapC.h"
  12. using namespace std;
  13. class ONVIFLIB_API OnvifClientPTZ
  14. {
  15. public:
  16. OnvifClientPTZ(OnvifClientDevice &device);
  17. ~OnvifClientPTZ();
  18. bool m_bHasRelativePTMove;
  19. bool m_bHasRelativeZoomMove;
  20. bool m_bHasAbsolutePTMove;
  21. bool m_bHasAbsoluteZoomMove;
  22. bool m_bHasContinuousPTMove;
  23. bool m_bHasContinuousZoomMove;
  24. public:
  25. /* Add function to here */
  26. //Configuration functions
  27. int GetConfiguration(_tptz__GetConfigurationResponse &configurationResp); // John 7/2
  28. int GetConfigurations(_tptz__GetConfigurationsResponse &configurationsResp);
  29. int GetConfigurationOptions(_tptz__GetConfigurationOptionsResponse &configOptions, string configToken); // John 7/2
  30. int SetConfiguration(_tptz__SetConfigurationResponse &SetConfiguration, tt__PTZConfiguration &PTZConfiguration,bool ForcePersist);
  31. //Move Functions (includes Pan, Tilt, and Zoom Moves)
  32. int RelativeMove(_tptz__RelativeMoveResponse &relMoveResponse, tt__PTZVector &Translation, tt__PTZSpeed &Speed, string profileToken);
  33. int ContinuousMove(_tptz__ContinuousMoveResponse &ContMoveResponse, tt__PTZSpeed &Speed, LONG64 &Timeout, string profileToken);
  34. int AbsoluteMove(_tptz__AbsoluteMoveResponse &AbsoluteMoveResponse, tt__PTZSpeed &Speed, tt__PTZVector &position, string profileToken);
  35. int Stop(_tptz__StopResponse &StopResponse,bool PanTilt,bool Zoom,string profileToken);
  36. //Zoom Functions
  37. //TODO:
  38. //Node, status, and service capabilities
  39. int GetNodes(_tptz__GetNodesResponse &GetNodesResponse);
  40. int GetNode(_tptz__GetNodeResponse &GetNodeResponse, string nodeToken);
  41. int GetStatus(_tptz__GetStatusResponse &StatusResponse,string profileToken);
  42. int GetServiceCapabilities(_tptz__GetServiceCapabilitiesResponse &ServiceCapResponse);
  43. int Initialize();
  44. private:
  45. OnvifClientDevice &m_Device;
  46. PTZBindingProxy ptzProxy;
  47. };
  48. #endif