?? agent.h
字號:
?
+
/*=============================================================
Function:
Author: Leon Wang <wlywly@sina.com giga2@tom.com>
==============================================================*/
// 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 <VECTOR>
#include "alias.h"
#include "gnugkappconfig.h"
#include <time.h>
class Alias;
//##ModelId=424BB6460392
typedef std::vector<CString> 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_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -