1 #ifndef __libquark_oauth2_OAuth2Authenticator_hxx 2 #define __libquark_oauth2_OAuth2Authenticator_hxx 5 #include <QNetworkAccessManager> 6 #include <QNetworkReply> 54 const QString &clientID,
55 const QString &clientSecret,
56 QObject *parent = NULL);
70 QUrl buildAuthUrl(
const QStringList &authScopes);
79 bool requestAccessToken(
const QString &authorizationCode);
90 bool renewAccessToken(
const QString &refreshToken);
96 {
return(_accessToken); }
104 void accessTokenError(
const QString &error);
109 void accessTokenReceived();
113 void processPostReply();
114 void processPostError(QNetworkReply::NetworkError);
118 void performPost(
const QUrl &url,
const QByteArray &postData);
120 QNetworkAccessManager *_networkAccess;
122 QString _clientSecret;
123 QString _codeVerifier;
125 QString _refreshToken;
126 bool _requestInProgress;
132 #endif // __libquark_oauth2_OAuth2Authenticator_hxx Definition: BarChartView.h++:6
A representation of an OAuth2 access token.
Definition: OAuth2AccessToken.h++:17
An object for performing OAuth2 authorizations for accessing Google APIs.
Definition: OAuth2Authenticator.h++:38
#define LIBQUARK_API
Definition: Quark.h++:18
OAuth2AccessToken accessToken() const
Returns the OAuth2AccessToken.
Definition: OAuth2Authenticator.h++:95