| 1234567891011121314151617181920212223242526272829303132333435363738 |
- /*************************************************************************
- 【文件名】 AgentGroup.h
- 【功能模块和目的】 座席组类头文件
- 【开发者及日期】 郑石诺 2015/07/27
- 【版本】 V1.0.0
- 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
- 【更改记录】
- *************************************************************************/
- #pragma once
- class CAgent;
- class CStrategyAD;
- /*************************************************************************
- 【类名】 CAgentGroup
- 【功能】
- 【接口说明】 座席组类
- 【开发者及日期】 郑石诺 2015/07/27
- 【版本】 V1.0.0
- 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
- 【更改记录】
- *************************************************************************/
- class CAgentGroup : public CArray<CAgent*, CAgent*>
- {
- public:
- CAgentGroup(void);
- virtual ~CAgentGroup(void);
- void add(CAgent* a_pAgent);
- bool remove(CAgent* a_pAgent);
- void clear(void);
- bool isNoFreeAgent(void); // 是否座席全忙
- QUEUE_AGENT_RESULT distributeAgent(CStrategyAD* pStrategy, const CString& InfoEx, UINT& Agent, UINT& Exten);
- private:
- CCriticalSection m_CsLock4Distribute;
- };
|