ckftpprogress.h

来自「DES加密解密算法,西望大家共享.参考学习」· C头文件 代码 · 共 49 行

H
49
字号
// CkFtpProgress.h: interface for the CkFtpProgress class.
//
//////////////////////////////////////////////////////////////////////

#ifndef _CKFTPPROGRESS_H
#define _CKFTPPROGRESS_H

#pragma once

/*

  To receive progress events (callbacks), create a C++ class that 
  inherits this one and provides one or more overriding implementations 
  for the events you wish to receive.  Then pass your progress object
  to CkFtp2 methods such as PutFileWithProgress, GetFileWithProgress, etc.

  */
class CkFtpProgress  
{
    public:
	CkFtpProgress();
	virtual ~CkFtpProgress();

	virtual void FtpPercentDone(long pctDone, bool *abort) { }

	// Called periodically to check to see if the transfer should be aborted.
	virtual void AbortCheck(bool *abort) { }

	// Called to notify the application of the port number of the data connection
	// being used for Active connections (as opposed to Passive connections).
	// For Active data transfers, the client creates a data socket and chooses
	// a random port number between 1024 and 5000.
	virtual void DataPort(int portNumber) { }

	virtual void BeginDownloadFile(const char *pathUtf8, bool *skip) { }
	virtual void EndDownloadFile(const char *pathUtf8, unsigned long numBytes) { }
	virtual void VerifyDownloadDir(const char *pathUtf8, bool *skip) { }

	virtual void BeginUploadFile(const char *pathUtf8, bool *skip) { }
	virtual void EndUploadFile(const char *pathUtf8, unsigned long numBytes) { }
	virtual void VerifyUploadDir(const char *pathUtf8, bool *skip) { }

	virtual void VerifyDeleteDir(const char *pathUtf8, bool *skip) { }
	virtual void VerifyDeleteFile(const char *pathUtf8, bool *skip) { }

};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?