hd

Config.h 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*************************************************************************
  2. 【文件名】 d:\DATA\project\HY\Middleware\FsLink\Config.h
  3. 【功能模块和目的】
  4. 【开发者及日期】 郑石诺 2016/06/20
  5. 【版本】 V1.0.0
  6. 【版权信息】 Copyright (C)2016 河南华谊网络科技有限公司
  7. 【更改记录】
  8. *************************************************************************/
  9. #pragma once
  10. #include "CfgSipAccount.h"
  11. #include "CfgTrunkMatch.h"
  12. /*************************************************************************
  13. 【类名】
  14. 【功能】
  15. 【接口说明】
  16. 【开发者及日期】 郑石诺 2016/06/20
  17. 【版本】 V1.0.0
  18. 【版权信息】 Copyright (C)2016 河南华谊网络科技有限公司
  19. 【更改记录】
  20. *************************************************************************/
  21. class CConfig
  22. {
  23. public:
  24. CConfig(void);
  25. virtual ~CConfig(void) = 0 {}
  26. static bool load(void);
  27. static void unload(void);
  28. static int trunkCount(void) { return m_TrunkCount; }
  29. static int ivrPort(void) { return m_IvrPort; }
  30. static int fsPort(void) { return m_FsPort; }
  31. static TTS_TYPE ttsType(void) { return m_TtsType; }
  32. static LPCTSTR ttsPath(void) { return m_TtsPath; }
  33. static LPCTSTR fsAddr(void) { return m_FsAddr; }
  34. static LPCTSTR fsPwd(void) { return m_FsPwd; }
  35. static LPCTSTR extContext(void) { return m_ExtenContext; }
  36. static LPCTSTR meetingContext(void) { return m_MeetingContext; }
  37. static LPCTSTR pCallContext(void) { return m_PCallContext; }
  38. static CCfgSipAccount& sipAccount(void) { return m_SipAccount; }
  39. static CCfgTrunkMatch& trunkMatch(void) { return m_TrunkMatch; }
  40. private:
  41. static int m_TrunkCount;
  42. static int m_IvrPort;
  43. static int m_FsPort;
  44. static TTS_TYPE m_TtsType;
  45. static CString m_TtsPath;
  46. static CString m_FsPwd;
  47. static CString m_FsAddr;
  48. static CString m_ExtenContext;
  49. static CString m_MeetingContext;
  50. static CString m_PCallContext;
  51. // 中继匹配、SIP账号配置信息
  52. static CCfgSipAccount m_SipAccount;
  53. static CCfgTrunkMatch m_TrunkMatch;
  54. };