X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=libkqoauth%2Fno_desktopservice.patch;fp=libkqoauth%2Fno_desktopservice.patch;h=0000000000000000000000000000000000000000;hb=ca759b3fd3b64ad976c4917e93513b3d05999f13;hp=0f78b2702aadfbca5272b3896c7529ccbd3ce805;hpb=0274061406db78bb79ef433c5c438178103aaa58;p=googlelatitude diff --git a/libkqoauth/no_desktopservice.patch b/libkqoauth/no_desktopservice.patch deleted file mode 100644 index 0f78b27..0000000 --- a/libkqoauth/no_desktopservice.patch +++ /dev/null @@ -1,59 +0,0 @@ -diff -up ../../kqoauth/src//kqoauthmanager.cpp ./kqoauthmanager.cpp ---- ../../kqoauth/src//kqoauthmanager.cpp 2011-10-22 22:23:12.391025442 +0200 -+++ ./kqoauthmanager.cpp 2011-10-22 22:44:06.897246201 +0200 -@@ -18,7 +18,6 @@ - * along with KQOAuth. If not, see . - */ - #include --#include - - #include "kqoauthmanager.h" - #include "kqoauthmanager_p.h" -@@ -401,19 +400,19 @@ QNetworkAccessManager * KQOAuthManager:: - - //////////// Public convenience API ///////////// - --void KQOAuthManager::getUserAuthorization(QUrl authorizationEndpoint) { -+QUrl KQOAuthManager::getUserAuthorization(QUrl authorizationEndpoint) { - Q_D(KQOAuthManager); - - if (!d->hasTemporaryToken) { - qWarning() << "No temporary tokens retreieved. Cannot get user authorization."; - d->error = KQOAuthManager::RequestUnauthorized; -- return; -+ return QString(); - } - - if (!authorizationEndpoint.isValid()) { - qWarning() << "Authorization endpoint not valid. Cannot proceed."; - d->error = KQOAuthManager::RequestEndpointError; -- return; -+ return QString(); - } - - d->error = KQOAuthManager::NoError; -@@ -422,9 +421,9 @@ void KQOAuthManager::getUserAuthorizatio - QUrl openWebPageUrl(authorizationEndpoint.toString(), QUrl::StrictMode); - openWebPageUrl.addQueryItem(tokenParam.first, tokenParam.second); - -- // Open the user's default browser to the resource authorization page provided -- // by the service. -- QDesktopServices::openUrl(openWebPageUrl); -+ // Return the resource authorization page provided by the service. -+ qDebug() << "KQOAuthManager::getUserAuthorization " << openWebPageUrl; -+ return openWebPageUrl; - } - - void KQOAuthManager::getUserAccessTokens(QUrl accessTokenEndpoint) { -diff -up ../../kqoauth/src//kqoauthmanager.h ./kqoauthmanager.h ---- ../../kqoauth/src//kqoauthmanager.h 2011-10-22 22:23:12.391025442 +0200 -+++ ./kqoauthmanager.h 2011-10-22 22:39:48.715965943 +0200 -@@ -103,7 +103,7 @@ public: - * us to access protected resources, the verifier token is stored in KQOAuthManager for further use. - * In order to use this method, you must set setHandleUserAuthorization() to true. - */ -- void getUserAuthorization(QUrl authorizationEndpoint); -+ QUrl getUserAuthorization(QUrl authorizationEndpoint); - /** - * This is a convenience API for retrieving the access token in exchange for the temporary token and the - * verifier.