使用soui开发的mbc,只支持windows版本
w1146869587
2022-01-24 479b1995ef435713c2cf4f0da8de3a6af6c30922
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#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:
 
};