Skip to content

Commit

Permalink
Change Scope names
Browse files Browse the repository at this point in the history
  • Loading branch information
rasendubi committed Nov 25, 2012
1 parent 1ba9cca commit cb18df1
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
36 changes: 18 additions & 18 deletions src/oauth/oauthconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
Expand Down
36 changes: 18 additions & 18 deletions src/oauth/oauthconnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit cb18df1

Please sign in to comment.