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.

32 lines
1.1 KiB

7 years ago
​
​
​
​
7 years ago
​
​
​
​
​
​
​
​
​
7 years ago
​
​
​
​
7 years ago
​
​
7 years ago
​
​
​
  1. #ifndef __PROTOCOL_PTZ_ONVIF_HEADER__
  2. #define __PROTOCOL_PTZ_ONVIF_HEADER__
  3. #include "protocolPTZ.h"
  4. //#include "../onvif/include/onvifclient.hpp"
  5. #include "../data/ponvif/ponvif.h"
  6. class protocolPTZ_ONVIF: public protocolPTZ{
  7. private:
  8. basicLogCollection * m_pLog;
  9. char m_pUser[MAX_CRED_LEN];
  10. char m_pPassword[MAX_CRED_LEN];
  11. char m_pDeviceURI[MAX_PATH_LEN];
  12. pOnvif * m_pOnVif;
  13. videoSourceProfile * m_pProfile;
  14. config_setting_t * m_pSettings;
  15. basicMutex m_mInquiryMutex;
  16. public:
  17. explicit protocolPTZ_ONVIF( config_setting_t *Settings = NULL );
  18. protocolPTZ_ONVIF( CSTR ip, CSTR username, CSTR password );
  19. virtual ~protocolPTZ_ONVIF();
  20. virtual bool create( void );
  21. virtual bool move( uint32_t MoveMatrix );
  22. virtual bool goAbsolute( float dPan, float dTilt, float dZoom );
  23. bool setIPAddress( CSTR ip );
  24. bool setUsername( CSTR username );
  25. bool setPassword( CSTR password );
  26. };
  27. #endif