中航光电的中间件仓库

Config.h 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*************************************************************************
  2. 【文件名】 Config.h
  3. 【功能模块和目的】 ACD配置信息类头文件
  4. 【开发者及日期】 郑石诺 2015/01/20
  5. 【版本】 V1.0.0
  6. 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
  7. 【更改记录】
  8. *************************************************************************/
  9. #pragma once
  10. /*************************************************************************
  11. 【类名】 CConfig
  12. 【功能】
  13. 【接口说明】 ACD配置信息类
  14. 【开发者及日期】 郑石诺 2015/01/20
  15. 【版本】 V1.0.0
  16. 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
  17. 【更改记录】
  18. *************************************************************************/
  19. class CConfig
  20. {
  21. public:
  22. CConfig(void);
  23. virtual ~CConfig(void) = 0 {}
  24. static bool load(); // 读取所有配置
  25. static bool isMatchCallPrefix(const CString& CalleeNum);
  26. // 配置参数
  27. static const CString& logFilePath(void) { return m_LogFilePath; }
  28. static const CString& ctiIp(void) { return m_CtiIp; }
  29. static int ctiPort(void) { return m_CtiPort; }
  30. static int listenPort(void) { return m_ListenPort; }
  31. static UINT postProcessingType(void) { return m_PostProcessingType; } // 2020-03-02
  32. static UINT postProcessingTime(void) { return m_PostProcessingTime; }
  33. static int agentLockedPeriod(void) { return m_AgentLockedPeriod; }
  34. private:
  35. // SOCKET配置信息
  36. static CString m_LogFilePath; // 日志路径
  37. static CString m_CtiIp; // CTI服务器IP
  38. static int m_CtiPort; // CTI服务器PORT
  39. static int m_ListenPort; // ACD监听端口
  40. // 逻辑配置信息
  41. static UINT m_PostProcessingType; // 话后处理类型 0:自动 1手动 2020-03-02 bwj
  42. static UINT m_PostProcessingTime; // 话后处理时长
  43. static int m_AgentLockedPeriod; // 座席锁定周期
  44. static CArray<CString, LPCTSTR> m_CallPrefixList; // 呼叫字冠表
  45. };