| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- /*************************************************************************
- 【文件名】 Config.h
- 【功能模块和目的】 配置信息类头文件
- 【开发者及日期】 郑石诺 2015/02/13
- 【版本】 V1.0.0
- 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
- 【更改记录】
- *************************************************************************/
- #pragma once
- /*************************************************************************
- 【类名】 CConfig
- 【功能】
- 【接口说明】 配置信息类
- 【开发者及日期】 郑石诺 2015/02/13
- 【版本】 V1.0.0
- 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
- 【更改记录】
- *************************************************************************/
- class CConfig
- {
- public:
- CConfig(void);
- virtual ~CConfig(void) = 0 {}
- // 读取所有配置
- static bool load(void);
- static const CString& logFilePath(void) { return m_LogFilePath; }
- static LPCTSTR ttsPath(void) { return m_TtsPath; }
- static const CString& ctiIp(void) { return m_CtiIp; }
- static int ctiPort(void) { return m_CtiPort; }
- static TTS_TYPE ttsType(void) { return m_TtsType; }
- static bool recordFax(void) { return m_RecordFax; }
- static int getAssoIpoLineIdOfAudioLine(int AudioLineId);
- static int getAssoIpoLineIdOfRecordLineAna(int RecordLineId);
- static int getAssoIpoLineIdOfRecordLineDig(int RecordLineId);
- static int getAssoIpoLineIdOfRecordLineIpr(int RecordLineId);
- private:
- static CString m_LogFilePath; // 日志路径
- static CString m_TtsPath; // TTS路径
- static CString m_CtiIp; // CTI服务器IP
- static int m_CtiPort; // CTI服务器PORT
- static TTS_TYPE m_TtsType; // TTS类型
- static bool m_RecordFax; // 发送传真的时候是否启动线路的录音,进而对传真问题进行分析
- };
|