From cb18df1d148ff5b67e1d6b4834d8cd3a619b615a Mon Sep 17 00:00:00 2001 From: Alexey Shmalko Date: Mon, 26 Nov 2012 01:21:35 +0200 Subject: [PATCH] Change Scope names --- src/oauth/oauthconnection.cpp | 36 +++++++++++++++++------------------ src/oauth/oauthconnection.h | 36 +++++++++++++++++------------------ 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/src/oauth/oauthconnection.cpp b/src/oauth/oauthconnection.cpp index 6b71462..c8dee29 100644 --- a/src/oauth/oauthconnection.cpp +++ b/src/oauth/oauthconnection.cpp @@ -57,24 +57,24 @@ class OAuthConnectionPrivate : public ConnectionPrivate OAuthConnectionPrivate(OAuthConnection *q, int appId) : ConnectionPrivate(q), connectionState(Client::StateOffline), clientId(appId), - scope(OAuthConnection::notify| - OAuthConnection::friends| - OAuthConnection::photos| - OAuthConnection::audio| - OAuthConnection::video| - OAuthConnection::docs| - OAuthConnection::notes| - OAuthConnection::pages| - OAuthConnection::status| - OAuthConnection::offers| - OAuthConnection::questions| - OAuthConnection::wall| - OAuthConnection::groups| - OAuthConnection::messages| - OAuthConnection::notifications| - OAuthConnection::stats| - OAuthConnection::ads| - OAuthConnection::offline), + scope(OAuthConnection::Notify| + OAuthConnection::Friends| + OAuthConnection::Photos| + OAuthConnection::Audio| + OAuthConnection::Video| + OAuthConnection::Docs| + OAuthConnection::Notes| + OAuthConnection::Pages| + OAuthConnection::Status| + OAuthConnection::Offers| + OAuthConnection::Questions| + OAuthConnection::Wall| + OAuthConnection::Groups| + OAuthConnection::Messages| + OAuthConnection::Notifications| + OAuthConnection::Stats| + OAuthConnection::Ads| + OAuthConnection::Offline), redirectUri(QLatin1String("http://oauth.vk.com/blank.html")), displayType(OAuthConnection::Touch), responseType(QLatin1String("token")), diff --git a/src/oauth/oauthconnection.h b/src/oauth/oauthconnection.h index 1935917..bcda2ab 100644 --- a/src/oauth/oauthconnection.h +++ b/src/oauth/oauthconnection.h @@ -51,24 +51,24 @@ class OAuthConnection : public Connection Wap }; enum Scope { - notify = 0x1, - friends = 0x2, - photos = 0x4, - audio = 0x8, - video = 0x10, - docs = 0x20, - notes = 0x40, - pages = 0x80, - status = 0x100, - offers = 0x200, - questions = 0x400, - wall = 0x800, - groups = 0x1000, - messages = 0x2000, - notifications = 0x4000, - stats = 0x8000, - ads = 0x10000, - offline = 0x20000 + Notify = 0x1, + Friends = 0x2, + Photos = 0x4, + Audio = 0x8, + Video = 0x10, + Docs = 0x20, + Notes = 0x40, + Pages = 0x80, + Status = 0x100, + Offers = 0x200, + Questions = 0x400, + Wall = 0x800, + Groups = 0x1000, + Messages = 0x2000, + Notifications = 0x4000, + Stats = 0x8000, + Ads = 0x10000, + Offline = 0x20000 }; Q_DECLARE_FLAGS(Scopes, Scope)