📄 dbuserinfo.h
字号:
#ifndef DBUSERINFO_H_HEADER_INCLUDED_C287F88E
#define DBUSERINFO_H_HEADER_INCLUDED_C287F88E
#include "DBOpersBase.h"
class UserContent;
class SysTime;
//##ModelId=3D572E610285
//##Documentation
//## 封装对用户信息表操作的类
class DBUserInfo : public DBOpersBase
{
protected:
virtual CHAR* GetTableName();
virtual UWORD GetFieldCnt();
private:
//static member to record the number.
static SHORT m_iNewNum;
static SHORT m_iTotalNum;
public:
//##ModelId=3D65E7100137
//##Documentation
//## 表中记录是否已达最大条数
virtual BOOLEAN IsFull();
enum
{
IS_NEW = 0,
RECV_TIME = 1,
CONTENT = 2,
SEND_TIME = 3,
FIELD_COUNT = 4,
RECV_TIME_LEN = 20,
MAX_REC_COUNT = 30,
};
SHORT GetRecCnt();
//overland DelRec, only for count the number of recorder.
Err DelRec(
//##Documentation
//## 记录ID号
SHORT iRecID);
SHORT AddUserInfoRec(UserContent *pUserContent, SysTime *SendTime);
SHORT GetNewCnt();
Err SetIsNewFlag(SHORT iRecID, BOOLEAN isNew = TRUE);
Err GetIsNewFlag(SHORT iRecID, BOOLEAN *isNew);
Err GetRecvTime(SHORT iRecID, CHAR* pszTime);
Err GetContent(SHORT iRecID, UserContent *pUserInfoContent);
};
#endif /* DBUSERINFO_H_HEADER_INCLUDED_C287F88E */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -