#pragma once
|
#include "stdafx.h"
|
#include "MBOrgMember.h"
|
#define LIMIT_COUNT ( 50 )
|
// CMBRecentContact command target
|
class AFX_EXT_CLASS CMBContactItem : public CMBOrgMember
|
{
|
public:
|
CMBContactItem( );
|
virtual ~CMBContactItem( );
|
void operator = ( const CMBContactItem &Item );
|
// Attributes
|
public:
|
CString m_strMsgDate; // ÏûÏ¢µÄ·¢ËÍʱ¼ä
|
CString m_strSubject; //ÁªÏµÈË×îºóÒ»ÌõÁÄÌìÏûÏ¢
|
int m_nUnreadCount; //δ¶ÁÏûÏ¢Êý
|
};
|
typedef CMap<CString, LPCTSTR,CMBContactItem, CMBContactItem&> CMapStringContact;
|
|
|
class AFX_EXT_CLASS CMBRecentContact : public CObject
|
{
|
public:
|
CMBRecentContact();
|
virtual ~CMBRecentContact();
|
|
// Attributes
|
public:
|
CObList m_listContact; //
|
long m_nLimitCount; // ×î½üÁªÏµÈË×î¶àÈ¡¶àÉÙÌõ
|
private:
|
CString m_strLogin; // AMµÇ¼Õß
|
BOOL m_bIsLoaded;
|
// Operations
|
public:
|
void SetAMLogin( CString strLogin );
|
|
CString GetLastErrorInfo( );
|
|
void AddContactItem( CString strID, CString strName,
|
int nType, CString strDate, CString strSubject );
|
POSITION FindContactItem( CString strID, int nType );
|
void ProcessContact( );
|
|
void CleanContact( );
|
void DeleteContactItem( CString strID, int nType);
|
void SetLoaded(BOOL bIsLoaded);
|
BOOL IsLoaded();
|
BOOL GetOldContactDate( CString &strDate);
|
private:
|
|
};
|