/************************************************************************* 【文件名】 d:\DATA\project\HY\Middleware\FsLink\Config.h 【功能模块和目的】 【开发者及日期】 郑石诺 2016/06/20 【版本】 V1.0.0 【版权信息】 Copyright (C)2016 河南华谊网络科技有限公司 【更改记录】 *************************************************************************/ #pragma once #include "CfgSipAccount.h" #include "CfgTrunkMatch.h" /************************************************************************* 【类名】 【功能】 【接口说明】 【开发者及日期】 郑石诺 2016/06/20 【版本】 V1.0.0 【版权信息】 Copyright (C)2016 河南华谊网络科技有限公司 【更改记录】 *************************************************************************/ class CConfig { public: CConfig(void); virtual ~CConfig(void) = 0 {} static bool load(void); static void unload(void); static int trunkCount(void) { return m_TrunkCount; } static int ivrPort(void) { return m_IvrPort; } static int fsPort(void) { return m_FsPort; } static TTS_TYPE ttsType(void) { return m_TtsType; } static LPCTSTR ttsPath(void) { return m_TtsPath; } static LPCTSTR fsAddr(void) { return m_FsAddr; } static LPCTSTR fsPwd(void) { return m_FsPwd; } static LPCTSTR extContext(void) { return m_ExtenContext; } static LPCTSTR meetingContext(void) { return m_MeetingContext; } static LPCTSTR pCallContext(void) { return m_PCallContext; } static CCfgSipAccount& sipAccount(void) { return m_SipAccount; } static CCfgTrunkMatch& trunkMatch(void) { return m_TrunkMatch; } private: static int m_TrunkCount; static int m_IvrPort; static int m_FsPort; static TTS_TYPE m_TtsType; static CString m_TtsPath; static CString m_FsPwd; static CString m_FsAddr; static CString m_ExtenContext; static CString m_MeetingContext; static CString m_PCallContext; // 中继匹配、SIP账号配置信息 static CCfgSipAccount m_SipAccount; static CCfgTrunkMatch m_TrunkMatch; };