Redirect Event

Fired when a redirection is received from the server.

Syntax

class OAuthRedirectEventParams {
public:
  const QString &Location();
  bool Accept();
  void SetAccept(bool bAccept);
  int EventRetVal();
  void SetEventRetVal(int iRetVal);
};
// To handle, connect one or more slots to this signal. void Redirect(OAuthRedirectEventParams *e);
// Or, subclass OAuth and override this emitter function. virtual int FireRedirect(OAuthRedirectEventParams *e) {...}

Remarks

This event is where the client can decide whether to continue with the redirection process or not. The Accept parameter is always true by default, but if you do not want to follow the redirection, Accept may be set to false, in which case the class fails with an error. Location is the location to which the client is being redirected. Further control over redirection is provided in the FollowRedirects property.

 
 
Copyright (c) 2021 /n software inc. - All rights reserved.
Cloud Mail 2020 Qt Edition - Version 20.0 [Build 7718]