Password Event
Fired when a file is encrypted, and the file's password is incorrect.
Syntax
class ZipPasswordEventParams { public: int Index(); const QString &Password(); void SetPassword(const QString &qsPassword); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void Password(ZipPasswordEventParams *e);
// Or, subclass Zip and override this emitter function. virtual int FirePassword(ZipPasswordEventParams *e) {...}
Remarks
This event is fired when the class attempts to uncompress an encrypted file and the decryption fails due to an invalid password. The file may be identified in the collection by the Index parameter.
Setting the Password parameter in this event will cause the class to attempt to decrypt and decompress the file again with the specified password.
If the Password parameter is an empty string when this event completes, an error will occur.