www.pudn.com > acdx.rar > Agent.h
/*============================================================= Function: Author: Leon Wang==============================================================*/ // Agent.h: interface for the Agent class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_AGENT_H__BE429564_9F66_4B84_A47B_8A8FBE5002E6__INCLUDED_) #define AFX_AGENT_H__BE429564_9F66_4B84_A47B_8A8FBE5002E6__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include #include "alias.h" #include "gnugkappconfig.h" #include class Alias; //##ModelId=424BB6460392 typedef std::vector groups_v_t; //##ModelId=424BB64603A1 class Agent:public Alias,GnuGkAppConfig { public: //##ModelId=424BB64603B3 Agent(); //##ModelId=424BB64603B4 Agent(CString _epid, CString _alias); //##ModelId=424BB64603C0 virtual ~Agent(); //##ModelId=424BB64603C2 void setLastCall(long lastCall); //##ModelId=424BB64603C4 long getLastCall(); // set agent last call time void setLastTime() { time_t _time; time(&_time); Time = localtime(&_time); } // get agent last call time long getLastTime() { return (long)Time; } //##ModelId=424BB64603D0 void setLastCall(); //##ModelId=424BB64603D1 BOOL isBlocked(); //##ModelId=424BB64603D2 void setBlocked(BOOL blocked); //##ModelId=424BB64603E1 BOOL isAgent(); //##ModelId=424BB64603E2 BOOL isAvailable(CString queue); protected: private: //##ModelId=424BB64603E4 long lastCall; //##ModelId=424BB6470007 BOOL blocked ; //##ModelId=424BB6470017 CString appiniPath ; //show agent work history time time_t Timet; struct tm *Time; //##ModelId=424BB6470018 void split_Groups(CString aString,groups_v_t &groups); }; #endif // !defined(AFX_AGENT_H__BE429564_9F66_4B84_A47B_8A8FBE5002E6__INCLUDED_)