#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 - È¡Ïû
|
};
|