DecryptionPasswordNeeded Event
Fires when the class needs a password to decrypt the archive.
Syntax
class ArchiveWriterDecryptionPasswordNeededEventParams { public: const QString &PasswordTarget(); bool Cancel(); void SetCancel(bool bCancel); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void DecryptionPasswordNeeded(ArchiveWriterDecryptionPasswordNeededEventParams *e);
// Or, subclass ArchiveWriter and override this emitter function. virtual int FireDecryptionPasswordNeeded(ArchiveWriterDecryptionPasswordNeededEventParams *e) {...}
Remarks
Class fires this event to request a decryption password from the application when it comes across an encrypted archive or entry.
Please assign the password to DecryptionPassword property inside the event handler, or set Cancel to true to cancel the operation.