ckzipprogress.h

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

H
69
字号
// CkZipProgress.h: interface for the CkZipProgress class.
//
//////////////////////////////////////////////////////////////////////

#ifndef _CKZIPPROGRESS_H
#define _CKZIPPROGRESS_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 Zip progress object
  to CkZip methods such as WriteZip, Extract, etc.

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

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

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

	virtual void ToBeAdded(const char *fileName, 
	    unsigned long fileSize, 
	    bool *excludeFlag) { }

	virtual void DirToBeAdded(const char *fileName, 
	    bool *excludeFlag) { }

	virtual void FileAdded(const char *fileName, 
	    unsigned long fileSize, 
	    bool *abort) { }

	virtual void ToBeZipped(const char *fileName, 
	    unsigned long fileSize, 
	    bool *abort) { }

	virtual void FileZipped(const char *fileName, 
	    unsigned long fileSize, 
	    unsigned long compressedSize, 
	    bool *abort) { }

	virtual void ToBeUnzipped(const char *fileName, 
	    unsigned long compressedSize,
	    unsigned long fileSize, 
	    bool *abort) { }

	virtual void FileUnzipped(const char *fileName, 
	    unsigned long compressedSize,
	    unsigned long fileSize, 
	    bool *abort) { }

	virtual void AddFilesBegin(void) { }
	virtual void AddFilesEnd(void) { }
	virtual void WriteZipBegin(void) { }
	virtual void WriteZipEnd(void) { }
	virtual void UnzipBegin(void) { }
	virtual void UnzipEnd(void) { }
};

#endif

⌨️ 快捷键说明

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