aboutsummaryrefslogtreecommitdiff
path: root/src/client/QXmppConfiguration.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2012-09-05 15:28:18 +0200
committerJeremy Lainé <jeremy.laine@m4x.org>2012-09-05 15:28:18 +0200
commit9168d631d5c266ee79c3112840423d4fca0c96dd (patch)
treed5e9d67627ca46cb04eb63e06a50ffa7dc38aa7d /src/client/QXmppConfiguration.cpp
parent49d30871e8a605bea9679353afd9a6fb6a877664 (diff)
downloadqxmpp-9168d631d5c266ee79c3112840423d4fca0c96dd.tar.gz
Add support for X-OAUTH2 authentication for Google Talk.
Diffstat (limited to 'src/client/QXmppConfiguration.cpp')
-rw-r--r--src/client/QXmppConfiguration.cpp22
1 files changed, 22 insertions, 0 deletions
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