多数据源中间件标准版1.0

MeetingPool.h 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*************************************************************************
  2. 【文件名】 MeetingPool.h
  3. 【功能模块和目的】 会议池类头文件
  4. 【开发者及日期】 郑石诺 2015/05/17
  5. 【版本】 V1.0.0
  6. 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
  7. 【更改记录】
  8. *************************************************************************/
  9. #pragma once
  10. class CDevDsp;
  11. class CDspChannel;
  12. class CMeeting;
  13. class COneLeg;
  14. /*************************************************************************
  15. 【类名】 CMeetingPool
  16. 【功能】 会议管理接口
  17. 【接口说明】 会议池类
  18. 【开发者及日期】 郑石诺 2015/05/17
  19. 【版本】 V1.0.0
  20. 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
  21. 【更改记录】
  22. *************************************************************************/
  23. class CMeetingPool
  24. {
  25. public:
  26. CMeetingPool(CDevDsp* pParent);
  27. ~CMeetingPool(void);
  28. int handle(void) const { return m_Handle; }
  29. CDspChannel* allocDspChan(void);
  30. bool open(void);
  31. void close(void);
  32. bool createMeeting(MeetingInfo& MeetInfo);
  33. void deleteMeeting(int MeetingId);
  34. bool accept(int MeetingId, COneLeg* pAttendee, bool IsOneWay);
  35. bool remove(int MeetingId, COneLeg* pAttendee);
  36. bool record(int MeetingId, COneLeg* pAttendee, RecordContent* pContent, bool IsStop);
  37. bool mute(int MeetingId, COneLeg* pAttendee, bool IsOff);
  38. private:
  39. void __release(void);
  40. CMeeting* __getMeeting(int MeetingId);
  41. private:
  42. CDevDsp* m_pParent;
  43. int m_Handle;
  44. CMap<int, int, CMeeting*, CMeeting*> m_MeetingMap;
  45. };