PasswordChangeRequest Event
This event is fired when a password change is requested.
Syntax
class SSHClientPasswordChangeRequestEventParams { public: const QString &Prompt(); const QString &NewPassword(); void SetNewPassword(const QString &qsNewPassword); bool Cancel(); void SetCancel(bool bCancel); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void PasswordChangeRequest(SSHClientPasswordChangeRequestEventParams *e);
// Or, subclass SSHClient and override this emitter function. virtual int FirePasswordChangeRequest(SSHClientPasswordChangeRequestEventParams *e) {...}
Remarks
This event is fired by the class when a password change is requested by the server. Prompt contains the password prompt message. Handler should either provide the new password via NewPassword, or deny the request by setting Cancel to true.