From 9168d631d5c266ee79c3112840423d4fca0c96dd Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Wed, 5 Sep 2012 15:28:18 +0200 Subject: Add support for X-OAUTH2 authentication for Google Talk. --- src/client/QXmppConfiguration.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/client/QXmppConfiguration.cpp') diff --git a/src/client/QXmppConfiguration.cpp b/src/client/QXmppConfiguration.cpp index d8a4b82e..31ebcd29 100644 --- a/src/client/QXmppConfiguration.cpp +++ b/src/client/QXmppConfiguration.cpp @@ -43,6 +43,9 @@ public: QString facebookAccessToken; QString facebookAppId; + // Google + QString googleAccessToken; + // Windows Live QString windowsLiveAccessToken; @@ -331,6 +334,25 @@ void QXmppConfiguration::setFacebookAppId(const QString& appId) d->facebookAppId = appId; } +/// Returns the access token used for X-OAUTH2 authentication. + +QString QXmppConfiguration::googleAccessToken() const +{ + return d->googleAccessToken; +} + +/// Sets the access token used for X-OAUTH2 authentication. +/// +/// This token is returned by Google at the end of the OAuth authentication +/// process. +/// +/// \param accessToken + +void QXmppConfiguration::setGoogleAccessToken(const QString& accessToken) +{ + d->googleAccessToken = accessToken; +} + /// Returns the access token used for X-MESSENGER-OAUTH2 authentication. QString QXmppConfiguration::windowsLiveAccessToken() const -- cgit v1.2.3