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.

43 lines
1.2 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __PROTOCOL_PTZ_BRCP_HEADER__
  2. #define __PROTOCOL_PTZ_BRCP_HEADER__
  3. #include "protocolPTZ.h"
  4. #include "../bosch_rcp/bosch_rcp.h"
  5. class protocolPTZ_BRCP : public protocolPTZ
  6. {
  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. uint8_t m_bAuthMode;
  13. boschRCP * m_pBRCP;
  14. videoSourceProfile * m_pProfile;
  15. config_setting_t * m_pSettings;
  16. basicMutex m_mInquiryMutex;
  17. public:
  18. explicit protocolPTZ_BRCP(config_setting_t * Settings = NULL);
  19. protocolPTZ_BRCP(CSTR ip, uint16_t port, CSTR username, CSTR password, uint8_t AuthMode = 0);
  20. protocolPTZ_BRCP(CSTR ctl_url, CSTR username, CSTR password, uint8_t AuthMode = 0);
  21. virtual ~protocolPTZ_BRCP();
  22. virtual bool create(void);
  23. virtual bool move(uint32_t MoveMatrix);
  24. virtual bool goAbsolute(float dPan, float dTilt, float dZoom);
  25. virtual bool goPreset(char * PresetToken);
  26. virtual bool getCameraPresets(void);
  27. bool setIPAddress(CSTR ip);
  28. bool setUsername(CSTR username);
  29. bool setPassword(CSTR password);
  30. bool setAuthMode(uint8_t Mode);
  31. virtual bool waitMoveIsDone(void);
  32. virtual bool validate();
  33. };
  34. #endif