DeleteFileQueue.h
资源名称:FTP总集.rar [点击查看]
上传用户:tjfeida
上传日期:2013-03-10
资源大小:1917k
文件大小:2k
源码类别:
Ftp客户端
开发平台:
Visual C++
- // DeleteFileQueue.h: interface for the CDeleteFileQueue class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_DELETEFILEQUEUE_H__48984F3B_B009_4F5D_9F7D_5EE2BE520F7B__INCLUDED_)
- #define AFX_DELETEFILEQUEUE_H__48984F3B_B009_4F5D_9F7D_5EE2BE520F7B__INCLUDED_
- /*********************************************
- **该文件是属于WolfFTP工程中的。如果有什么问题
- **请联系
- ** tablejiang@21cn.com
- **或者访问
- ** http://wolfftp.51.net
- **以得到最新的支持。
- *********************************************/
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- /***********************************************************
- ** @Description:
- ** this class is used for store the delete file info.
- ** Because this file queue will be readed by multithread ,
- ** so the critical section technique is used in this class .
- ** And the file queue is a single chain .
- **
- ** @Note:
- ** Interface function :
- **
- ** addItem() : add a delete file to queue
- ** DeleteItem( ) : delete a file from queue .
- ** DeleteAllItem( ) : delete all files of queue .
- ** IsInFileQueue( ) : is specify file in this file queue .
- ** IsEmpty( ) : file queue is empty .
- ** GetNextItem( ) : Get next useful item .
- **
- **
- ** @Author: Table.JHM.太子
- ** e-mail: tablejiang@21cn.com
- ** Date: 2001 4 10
- *************************************************************/
- class CDeleteFileQueue
- {
- public:
- CDeleteFileQueue();
- virtual ~CDeleteFileQueue();
- public:
- FTPFILEINFO* GetNextItem( );
- BOOL IsEmpty( );
- BOOL DeleteAllFileQueue( );
- BOOL IsInFileQueue( FTPFILEINFO* pFileInfo );
- BOOL DeleteItem( FTPFILEINFO* pFileInfo );
- BOOL AddItem( FTPFILEINFO* pFileInfo );
- FTPFILEINFO* m_pFileTransmitQueue ;
- protected:
- CRITICAL_SECTION m_cs ;
- };
- #endif // !defined(AFX_DELETEFILEQUEUE_H__48984F3B_B009_4F5D_9F7D_5EE2BE520F7B__INCLUDED_)