使用soui开发的mbc,只支持windows版本
w1146869587
2022-01-24 0408576e9da10015ffa9da0079b8c985113ce4b3
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
#pragma once
 
typedef struct _stSTKUploadInfo
{
    CString        strReceiver;
    CString        strFilePath;
    DWORD        dwData;
    __int64        nFileSize;
    bool        bIsImg;
    CString        strFileMD5;
    CString        strCompressPath;
    CString        strSendFlag;
    _stSTKUploadInfo(): strReceiver(_T("")),strFilePath(_T("")),nFileSize(0),bIsImg(false), dwData(0),strFileMD5(_T("")),strCompressPath(_T("")){};
}stSTKUploadInfo;
 
typedef CArray<stSTKUploadInfo, stSTKUploadInfo&> CArraySTKUploadMgr;
 
typedef CMap<CString ,LPCTSTR, stSTKUploadInfo, stSTKUploadInfo&> CMapSTKUploadFile;
 
typedef struct _stSendMsgInfo
{
    CString        strReceiver;
    CString        strSendFlag;
    _stSendMsgInfo(): strReceiver(_T("")),strSendFlag(_T("")){};
}stSendMsgInfo;
 
typedef CMap<long ,long&, stSendMsgInfo, stSendMsgInfo&> CMapSendMsgInfo;
 
class CMBAMDownloadFile : public CObject
{
public:
    CString                        m_strFilesFlag;
    CArray<stAttachInfo, stAttachInfo&> m_arFileList;
    int                            m_nGetSCount;
    CMBAMDownloadFile()
    {
        m_nGetSCount = 0;
        m_strFilesFlag = _T("");
        m_arFileList.RemoveAll();
    }
};
typedef CMap<CString ,LPCTSTR, CMBAMDownloadFile*, CMBAMDownloadFile*&> CMapMBAMDownloadFile;
 
class CSTKFileMsg : public CObject
{
public:
    CString                m_strSendFlag;
    CString                m_strReceiver;
    CString                m_strReceiverName;
    CString                m_strSubject;
    CString                m_strOldSTKMsg;
    CString                m_strSTKMsg;
    CString                m_strMsgFont;
    CString                m_strSendDate;
    CMapStringToString    m_mapRemainUploadFile;
    CMapLongToLong        m_mapRemainFileTrID;
    CMapAttachInfo        m_mapStkAttach;
    CMapSTKImageInfo    m_mapStkImage;
    BOOL                m_bNeedConfirm;
    int                    m_nMsgPerformType;
    UINT                m_nParam;
    BOOL                m_bReady;
    BOOL                m_bIsMobileRemind;
    int                    m_nSendFileCount;
    int                    m_nSendFailedCount;
    CSTKFileMsg()
    {
        m_strSendFlag = _T("");
        m_strReceiver = _T("");
        m_strReceiverName= _T("");
        m_strSubject = _T("");
        m_strOldSTKMsg = _T("");
        m_strSTKMsg = _T("");
        m_strSendDate = _T("");
        
        m_strMsgFont = _T("");
        m_bNeedConfirm = FALSE;
        m_bReady = FALSE;
        m_bIsMobileRemind = FALSE;
        m_nMsgPerformType = MSGPERFORM_TYPE_DEFAULT;
        m_nParam = 0;
        m_nSendFileCount = 0;
        m_nSendFailedCount = 0;
        m_mapRemainFileTrID.RemoveAll();
        m_mapStkImage.RemoveAll();
        m_mapRemainUploadFile.RemoveAll();
        m_mapStkAttach.RemoveAll();
    }
};
 
 
 
class CMBCrowdMsg : public CObject
{
public:
    CString                m_strSendFlag;
    CString                m_strCrowdID;
    CString                m_strCrowdName;
    CString                m_strMsgContent;
    CString                m_strSendDate;
    CMapStringToString    m_mapRemainUploadFile;
    CMapLongToLong        m_mapRemainFileTrID;
    CMapSTKImageInfo    m_mapStkImage;
    BOOL                m_bReady;
    CMBCrowdMsg()
    {
        m_strSendFlag = _T("");
        m_strCrowdID = _T("");
        m_strCrowdName= _T("");
        m_strMsgContent = _T("");
        m_strSendDate = _T("");
        
        m_bReady = FALSE;
        m_mapRemainFileTrID.RemoveAll();
        m_mapStkImage.RemoveAll();
        m_mapRemainUploadFile.RemoveAll();
    }
};
 
enum                                                                
{                                                                
    emTransferType_Send=0,                                        //·¢ËÍ        
    emTransferType_Receive=1,                                    //½ÓÊÕ    
    emTransferType_Scan=2,                                    //²é¿´        
};
 
enum{
    emTransfer_Status_None = 0,
    emTransfer_Status_MD5Calcing = 1, // 3 ¨C ÕýÔÚ¼ÆËãMD5
    emTransfer_Status_Ing = 2,  // 3 ¨C ÕýÔÚ´«Êä
    emTransfer_Status_Finish = 3,  // 3 ¨C ÒÑÍê³É       
    emTransfer_Status_Err  = 4, // 4 - ´íÎó       
    emTransfer_Status_Cancel = 5 // 5 - È¡Ïû    
};