FtpTransmitFile.h
资源名称:FTP总集.rar [点击查看]
上传用户:tjfeida
上传日期:2013-03-10
资源大小:1917k
文件大小:2k
源码类别:
Ftp客户端
开发平台:
Visual C++
- // FtpTransmitFile.h: interface for the CFtpTransmitFile class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_FTPTRANSMITFILE_H__A23882B5_715F_4C0C_9ED8_D94C63B1F7C5__INCLUDED_)
- #define AFX_FTPTRANSMITFILE_H__A23882B5_715F_4C0C_9ED8_D94C63B1F7C5__INCLUDED_
- /*********************************************
- **该文件是属于WolfFTP工程中的。如果有什么问题
- **请联系
- ** tablejiang@21cn.com
- **或者访问
- ** http://wolfftp.51.net
- **以得到最新的支持。
- *********************************************/
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "FtpFunction.h"
- /***********************************************************
- ** @Description:
- ** this class manages your ftp connect to a ftp server .
- ** you can use this class communication with ftp
- ** server. but this class only transmit file with
- ** ftp server , if you want get complete control
- ** with ftp server ,please use CFtpObject class.
- **
- ** @Note:
- **
- **
- ** @Author: JHM
- ** e-mail: tablejiang@21cn.com
- ** Date: 2001 3 26
- ***********************************************************/
- class CFtpTransmitFile :public CFtpFunction
- {
- public:
- CFtpTransmitFile();
- virtual ~CFtpTransmitFile();
- //self define
- public:
- void StopNowCommand( );
- void SetParentWnd( HWND hWnd );
- void SetFileQueue( CFileQueue* pFileQueue );
- BOOL StartTransmitFunction( );
- BOOL StartTransmit( HWND hWnd );
- //data
- protected:
- BOOL TransmitFileFunction( FTPFILEINFO* pFile );
- void SetFileState( FTPFILEINFO* pInfo , int iState );
- BOOL SetTransmitFileSiteInfo( );
- BOOL LoginAndCheckServer( );
- THREADINFO m_TransmitThread ;
- FTPFILEINFO* m_pCurFile ;
- CFileQueue* m_pFileQueue ;
- HWND m_hRefWnd ;
- };
- #endif // !defined(AFX_FTPTRANSMITFILE_H__A23882B5_715F_4C0C_9ED8_D94C63B1F7C5__INCLUDED_)