#if !defined(AFX_FILECLIENTASYNMGR_H__94838D13_71C8_4435_813F_3A9C37A3DB3B__INCLUDED_)
|
#define AFX_FILECLIENTASYNMGR_H__94838D13_71C8_4435_813F_3A9C37A3DB3B__INCLUDED_
|
|
#if _MSC_VER > 1000
|
#pragma once
|
#endif // _MSC_VER > 1000
|
// FileClientAsynMgr.h : header file
|
//
|
|
#include "FileClientMgrBase.h"
|
|
/////////////////////////////////////////////////////////////////////////////
|
// CFileClientAsynMgr window
|
|
class AFX_EXT_CLASS CFileClientAsynMgr : public CFileClientMgrBase
|
{
|
// Construction
|
public:
|
CFileClientAsynMgr();
|
virtual ~CFileClientAsynMgr();
|
|
// Attributes
|
public:
|
|
protected:
|
|
// Operations
|
public:
|
// ÍâÃæÃüÁî
|
int UploadFile( CString strFileName, CString strPathName = _T( "" ), DWORD dwOption = 0, CString strFileMD5 = _T( "" ) );
|
int DownloadFile( CString strFileID, CString strSavePathName, CString strFileName, DWORD dwOption = 0 );
|
int CopyFile( CString strFileID, CString strPathName = _T( "" ), DWORD dwOption = 0 );
|
int DeleteFile( CString strFileID );
|
int GetFileInfo( CString strFileID );
|
|
protected:
|
void OnResponseUploadFile( COISysMsg *pSMsg );
|
void OnResponseDownloadFile( COISysMsg *pSMsg );
|
void OnResponseCopyFile( COISysMsg *pSMsg );
|
void OnResponseDeleteFile( COISysMsg *pSMsg );
|
void OnResponseGetFileInfo( COISysMsg *pSMsg );
|
|
// Overrides
|
public:
|
virtual bool Init( CString &strError, BOOL bInitSocket = true );
|
|
// ÃüÁî·´À¡
|
virtual void OnConnectError( long nErrCode );
|
virtual void OnResponseError( long nErrCode, long nTrID, CString strParam );
|
virtual void OnResponseReceive( COISysMsg *pSMsg );
|
|
};
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//{{AFX_INSERT_LOCATION}}
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
#endif // !defined(AFX_FILECLIENTASYNMGR_H__94838D13_71C8_4435_813F_3A9C37A3DB3B__INCLUDED_)
|