PasswordNeeded Event
Requests a password from the application.
Syntax
class DCAuthPasswordNeededEventParams { public: const QString &NeededFor(); const QString &Id(); const QString &Password(); void SetPassword(const QString &qsPassword); bool Cancel(); void SetCancel(bool bCancel); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void PasswordNeeded(DCAuthPasswordNeededEventParams *e);
// Or, subclass DCAuth and override this emitter function. virtual int FirePasswordNeeded(DCAuthPasswordNeededEventParams *e) {...}
Remarks
Subscribe to this event to pass a password to the server component. The NeededFor parameter specifies the entity a password for which is being requested (which is typically a certificate). The Id parameter provides the entity's identifier, such as a path to the certificate being loaded. When handling this event, assign the Password to the valid password if you have it; otherwise, set Cancel to true to abort the operation.