9 #ifndef QEVERCLOUD_OAUTH_H
10 #define QEVERCLOUD_OAUTH_H
13 #if defined(_MSC_VER) && (_MSC_VER <= 1600)
14 #define QT_NO_UNICODE_LITERAL
39 class EvernoteOAuthWebViewPrivate;
74 void authenticate(QString host, QString consumerKey, QString consumerSecret);
77 bool isSucceeded()
const;
80 QString oauthError()
const;
97 void setSizeHint(QSize sizeHint);
99 virtual QSize sizeHint() const Q_DECL_OVERRIDE;
103 void authenticationFinished(
bool success);
106 void authenticationSuceeded();
109 void authenticationFailed();
112 EvernoteOAuthWebViewPrivate * const d_ptr;
117 class EvernoteOAuthDialogPrivate;
165 EvernoteOAuthDialog(QString consumerKey, QString consumerSecret, QString host = QStringLiteral(
"www.evernote.com"), QWidget * parent = Q_NULLPTR);
174 void setWebViewSizeHint(QSize sizeHint);
179 bool isSucceeded()
const;
184 QString oauthError()
const;
189 OAuthResult oauthResult()
const;
195 #if QT_VERSION < 0x050000
198 virtual int exec() Q_DECL_OVERRIDE;
203 #if QT_VERSION < 0x050000
206 virtual void open() Q_DECL_OVERRIDE;
210 EvernoteOAuthDialogPrivate *
const d_ptr;
216 #endif // QEVERCLOUD_OAUTH_H
qint64 Timestamp
Definition: types.h:250
void setNonceGenerator(quint64(*nonceGenerator)())
Sets the function to use for nonce generation for OAuth authentication.
qint32 UserID
Definition: types.h:219
EvernoteOAuthWebView::OAuthResult OAuthResult
Definition: oauth.h:150
QString authenticationToken
This is what this all was for!
Definition: oauth.h:90
#define QEVERCLOUD_EXPORT
Definition: export.h:23
Definition: AsyncResult.h:18
QString noteStoreUrl
note store url for the user; no need to question UserStore::getNoteStoreUrl for it.
Definition: oauth.h:85
QString webApiUrlPrefix
see PublicUserInfo::webApiUrlPrefix
Definition: oauth.h:89
The class is tailored specifically for OAuth authorization with Evernote.
Definition: oauth.h:52
Authorizes your app with the Evernote service by means of OAuth authentication.
Definition: oauth.h:147
Timestamp expires
authenticationToken time of expiration.
Definition: oauth.h:86
UserID userId
same as PublicUserInfo::userId
Definition: oauth.h:88
QString shardId
usually is not used
Definition: oauth.h:87