Skip to content

Commit

Permalink
Add OAuthConnection::scopesChanged signal
Browse files Browse the repository at this point in the history
  • Loading branch information
rasendubi committed Nov 24, 2012
1 parent 99df4c9 commit 55a3a36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/oauth/oauthconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ void OAuthConnection::setScopes(OAuthConnection::Scopes scopes)
Q_D(OAuthConnection);
if( d->scope != scopes ) {
d->scope = scopes;
emit scopesChanged(scopes);
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/oauth/oauthconnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class OAuthConnection : public Connection
Q_FLAGS(Scopes)
Q_PROPERTY(int clientId READ clientId WRITE setClientId NOTIFY clientIdChanged)
Q_PROPERTY(DisplayType displayType READ displayType WRITE setDisplayType)
Q_PROPERTY(Scopes scopes READ scopes WRITE setScopes)
Q_PROPERTY(Scopes scopes READ scopes WRITE setScopes NOTIFY scopesChanged)
public:
enum DisplayType {
Page,
Expand Down Expand Up @@ -97,6 +97,7 @@ class OAuthConnection : public Connection
void authConfirmRequested(QWebPage *page);
void accessTokenChanged(const QByteArray &token, time_t expiresIn);
void clientIdChanged(int clientId);
void scopesChanged(Vreen::OAuthConnection::Scopes scopes);
protected:
QNetworkRequest makeRequest(const QString &method, const QVariantMap &args = QVariantMap());
void decorateRequest(QNetworkRequest &);
Expand Down

0 comments on commit 55a3a36

Please sign in to comment.