| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- /*************************************************************************
- 【文件名】 DeviceMgr.h
- 【功能模块和目的】 设备管理类头文件
- 【开发者及日期】 郑石诺 2015/02/12
- 【版本】 V1.0.0
- 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
- 【更改记录】
- *************************************************************************/
- #pragma once
- class CDevFax;
- class CLine;
- /*************************************************************************
- 【类名】 CDeviceMgr
- 【功能】
- 【接口说明】 设备管理类
- 【开发者及日期】 郑石诺 2015/02/12
- 【版本】 V1.0.0
- 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
- 【更改记录】
- *************************************************************************/
- class CDeviceMgr
- {
- SINGLETON_DECLARE(CDeviceMgr)
- public:
- ~CDeviceMgr(void);
- bool initDev(void); // 设备初始化
- void closeDev(void); // 退出系统
- void procCmd(CPduEntity* a_pPduEntity); // 处理SOCKET命令
- void hangupAllLine(void); // 对所有线路进行挂机操作
- int getDevType(void); // 获取设备类型所有基本类型的设备
- CDevFax* getFreeDevFax(void); // 查找一空闲传真资源
- CDevFax* getFaxByID(int DevID); // 通过资源ID获取传真资源
- CLine* findLineByID(int LineID); // 根据逻辑线号查找线路基类
- private:
- CDeviceMgr(void);
- void __release(void);
- void __initLineObject(void); // 初始化线路对象
- CLine* __findLineByCicID(int CicId); // 根据数字线路的逻辑编号查找指定数字中继线路
- CLine* __findLineByIPOLineID(int IpoLineID); // 根据IPO-号查找线路基类
- void __callBackProc(PSSM_EVENT pEvent); // 事件回调
- static int CALLBACK __eventCallBackProc(PSSM_EVENT pEvent); // 事件回调
- private:
- CArray<CLine*, CLine*> m_LineArray; // 线路对象索引表
- CList<CDevFax*, CDevFax*> m_FaxList; // 传真资源列表
- };
|