CClient.h
资源名称:QQ示例源码.rar [点击查看]
上传用户:power_led
上传日期:2013-04-11
资源大小:373k
文件大小:1k
源码类别:
ICQ/即时通讯
开发平台:
Visual C++
- #ifndef _CLIENT_H
- #define _CLIENT_H
- class Client : public CObject
- {
- public:
- Client()
- {
- iTimes = 0;
- iFlag = 0;
- }
- ~Client()
- {}
- private:
- Client(const Client &);
- Client & operator = (const Client &);
- private:
- int iTimerId;
- CString strClientName;
- int iTimes;
- int iFlag;
- public:
- void SetTimerId(const int id)
- {
- iTimerId = id;
- }
- int GetTimerId()
- {
- return iTimerId;
- }
- int GetTimes()
- {
- return iTimes;
- }
- void AddTimes()
- {
- iTimes ++;
- }
- void SetUserName(const CString &name)
- {
- strClientName = name;
- }
- CString GetUserName()
- {
- return strClientName;
- }
- int GetFlag()
- {
- return iFlag;
- }
- void SetFlag()
- {
- iFlag = 1;
- }
- };
- #endif