中航光电的中间件仓库

AgentList.h 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*************************************************************************
  2. 【文件名】 AgentList.h
  3. 【功能模块和目的】 通道显示列表类头文件
  4. 【开发者及日期】 郑石诺 2015/03/11
  5. 【版本】 V1.0.0
  6. 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
  7. 【更改记录】
  8. *************************************************************************/
  9. #pragma once
  10. class CAgent;
  11. /*************************************************************************
  12. 【类名】 CAgentList
  13. 【功能】
  14. 【接口说明】 通道显示列表类
  15. 【开发者及日期】 郑石诺 2015/03/11
  16. 【版本】 V1.0.0
  17. 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
  18. 【更改记录】
  19. *************************************************************************/
  20. class CAgentlList : public CListCtrl
  21. {
  22. DECLARE_DYNAMIC(CAgentlList)
  23. public:
  24. CAgentlList();
  25. virtual ~CAgentlList();
  26. void format(void);
  27. void onAgentStateUpdated(UINT AgentNo);
  28. void onAgentLogout(UINT AgentNo);
  29. protected:
  30. DECLARE_MESSAGE_MAP()
  31. private:
  32. int __indexItem(UINT _itemNum);
  33. void __showAgent(Agent2Show& Info);
  34. void __updateAgentlState(int Item, Agent2Show& Info);
  35. void __transStateAgentState(AGENT_STATE _state, CString& Data);
  36. void __transStateAgentType(AGENT_TYPE _type, CString& Data);
  37. };