PassphraseNeeded Event
Requests a data protection password from the application.
Syntax
class PGPReaderPassphraseNeededEventParams { public: const QString &Passphrase(); void SetPassphrase(const QString &qsPassphrase); bool Skip(); void SetSkip(bool bSkip); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void PassphraseNeeded(PGPReaderPassphraseNeededEventParams *e);
// Or, subclass PGPReader and override this emitter function. virtual int FirePassphraseNeeded(PGPReaderPassphraseNeededEventParams *e) {...}
Remarks
The class fires this event to request a decryption password. It is only fired if the data can be decrypted without a key.
The event is fired in a loop until the correct password is passed or the number of password attempts is exceeded.