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.

44 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_pIP[MAX_CRED_LEN];
  11. char m_pPassword[MAX_CRED_LEN];
  12. char m_pDeviceURI[MAX_PATH_LEN];
  13. uint16_t m_nPort;
  14. uint8_t m_bAuthMode;
  15. boschRCP * m_pBRCP;
  16. config_setting_t * m_pSettings;
  17. basicMutex m_mInquiryMutex;
  18. public:
  19. explicit protocolPTZ_BRCP(config_setting_t * Settings = NULL);
  20. protocolPTZ_BRCP(CSTR ip, uint16_t port, CSTR username, CSTR password, uint8_t AuthMode = 0);
  21. protocolPTZ_BRCP(CSTR ctl_url, CSTR username, CSTR password, uint8_t AuthMode = 0);
  22. virtual ~protocolPTZ_BRCP();
  23. virtual bool create(void);
  24. virtual bool move(uint32_t MoveMatrix);
  25. virtual bool goAbsolute(float dPan, float dTilt, float dZoom);
  26. virtual bool goPreset(char * PresetToken);
  27. virtual bool getCameraPresets(void);
  28. bool setIPAddress(CSTR ip);
  29. bool setUsername(CSTR username);
  30. bool setPassword(CSTR password);
  31. bool setAuthMode(uint8_t Mode);
  32. virtual bool waitMoveIsDone(void);
  33. virtual bool validate();
  34. };
  35. #endif