#include <ZipCallback.h>
Public Member Functions | |
virtual bool | Callback (ZIP_SIZE_TYPE uProgress)=0 |
Public Attributes | |
CZipString | m_szExternalFile |
A base class for callback objects that are notified when various actions take place. You need to derive your own class and overload the Callback method to use it. Do not derive from CZipCallback directly but derive from:
Definition at line 58 of file ZipCallback.h.
|
pure virtual |
The method called as a callback.
Return false
from inside of this method to abort the current operation. If it is a segmented archive callback object, a CZipException with CZipException::aborted code will be thrown, otherwise the code will be CZipException::abortedAction or CZipException::abortedSafely. The following actions can be safely aborted (without corrupting the archive):
If the archive is segmented and if saving is aborted, the archive will not be damaged, but saved part of the central directory will be not removed and the new central directory will have to be saved after it.
uProgress | The value depends on the type of the operation. |
false
to abort the current operation; true
to continue it.CZipString CZipCallback::m_szExternalFile |
The filename of an external file, if an action (adding, extracting or segmentation) uses such a file. You can set its value, to change the currently used path.
Definition at line 96 of file ZipCallback.h.