DecryptionPasswordNeeded Event
Requests a decryption password, when needed.
Syntax
class ArchiveReaderDecryptionPasswordNeededEventParams { 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(ArchiveReaderDecryptionPasswordNeededEventParams *e);
// Or, subclass ArchiveReader and override this emitter function. virtual int FireDecryptionPasswordNeeded(ArchiveReaderDecryptionPasswordNeededEventParams *e) {...}
Remarks
Class fires this event when it needs a password to decrypt the archive. Subscribe to this event if you expect to process encrypted archives.
Inside the event handler, please assign the correct password to DecryptionPassword property, or set Cancel parameter to true to terminate the processing.