notifier.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #pragma once
  2. class CIOBuffer;
  3. /*
  4. class SensorSocket;
  5. class ISensorNotify
  6. {
  7. public:
  8. virtual void Notify(int8_t * buffer,int32_t size) =0;
  9. virtual void SetSensorSocket(SensorSocket* can) =0;
  10. #ifndef WIN32
  11. virtual void Start() = 0;
  12. virtual void Stop() = 0;
  13. #endif
  14. virtual ~ISensorNotify()=default;
  15. };
  16. */
  17. struct PointXYZI;
  18. class INativeNotify {
  19. public:
  20. #ifdef WIN32
  21. virtual void OnSigin(bool bRet) = 0;
  22. virtual void OnRobot(const RemoNet::Robot& robot) = 0;
  23. #else
  24. //virtual void OnAdd(bool bRet) = 0;
  25. virtual void OnAdd(bool bRet) = 0;
  26. #endif
  27. virtual void OnConnected(bool bRet) = 0;
  28. #ifdef WIN32
  29. virtual void OnVideoRep(int32_t index, int32_t peer) = 0;
  30. virtual void OnNotifyDel(int32_t peer, EgoType type) = 0;
  31. virtual void OnNotifyKick() = 0;
  32. #ifdef LIDAR_SENSOR
  33. virtual void OnLidarData(bool isLeft, bool isDense, int32_t seq, PointXYZI* data, int32_t length) = 0;
  34. #endif
  35. #else
  36. virtual void OnVideoReq(int32_t index, int32_t peer) = 0;
  37. #endif
  38. virtual void OnVideoOffer(int32_t index, const char* type, const char* sdp) = 0;
  39. virtual void OnVideoAnswer(int32_t index, const char* type, const char* sdp) = 0;
  40. virtual void OnVideoCandidate(int32_t index, const char* candidate,
  41. int32_t sdp_mline_index,
  42. const char* sdp_mid) = 0;
  43. /*virtual void OnVideoAddTrack(RemoteVideoTrackWrapper* ptr) = 0;*/
  44. // virtual void OnCancelReq(int32_t index) = 0;
  45. virtual void OnVideoLeave(int32_t peer, EgoType type) = 0;
  46. virtual void OnMessageFrameNotify(ChannelType type,int16_t cmd,int16_t length,const void * data) = 0;
  47. };
  48. /*
  49. #ifdef WIN32
  50. class IPeerNotify
  51. {
  52. public:
  53. virtual void Start() = 0;
  54. virtual void Stop() = 0;
  55. virtual void OnPeerMessage(int16_t cmd, int16_t length, const void* data) = 0;
  56. };
  57. #endif
  58. */