QEverCloud
3.0.0
Unofficial Evernote Cloud API for Qt
|
Authorizes your app with the Evernote service by means of OAuth authentication. More...
#include <oauth.h>
Public Types | |
typedef EvernoteOAuthWebView::OAuthResult | OAuthResult |
Public Member Functions | |
EvernoteOAuthDialog (QString consumerKey, QString consumerSecret, QString host=QStringLiteral("www.evernote.com"), QWidget *parent=Q_NULLPTR) | |
~EvernoteOAuthDialog () | |
void | setWebViewSizeHint (QSize sizeHint) |
bool | isSucceeded () const |
QString | oauthError () const |
OAuthResult | oauthResult () const |
int | exec () |
void | open () |
Authorizes your app with the Evernote service by means of OAuth authentication.
Intended usage:
Note that you have to include QEverCloudOAuth.h header.
By default EvernoteOAuthDialog uses qrand() for generating nonce so do not forget to call qsrand() in your application. See setNonceGenerator If you want more control over nonce generation.
qevercloud::EvernoteOAuthDialog::EvernoteOAuthDialog | ( | QString | consumerKey, |
QString | consumerSecret, | ||
QString | host = QStringLiteral("www.evernote.com") , |
||
QWidget * | parent = Q_NULLPTR |
||
) |
Constructs the dialog.
host | Evernote host to authorize with. You need one of this:
|
consumerKey | get it from the Evernote |
consumerSecret | along with this |
qevercloud::EvernoteOAuthDialog::~EvernoteOAuthDialog | ( | ) |
int qevercloud::EvernoteOAuthDialog::exec | ( | ) |
bool qevercloud::EvernoteOAuthDialog::isSucceeded | ( | ) | const |
QString qevercloud::EvernoteOAuthDialog::oauthError | ( | ) | const |
OAuthResult qevercloud::EvernoteOAuthDialog::oauthResult | ( | ) | const |
void qevercloud::EvernoteOAuthDialog::open | ( | ) |
Shows the dialog as a window modal dialog, returning immediately.
void qevercloud::EvernoteOAuthDialog::setWebViewSizeHint | ( | QSize | sizeHint | ) |
The dialog adjusts its initial size automatically based on the conatined QWebView preffered size. Use this method to set the size.
sizeHint | will be used as the preffered size of the contained QWebView. |