diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-02-27 16:56:39 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-02-27 16:56:39 +0000 |
commit | 61e1d6d2882b1582498e412dc94ed4b35de2ed77 (patch) | |
tree | 9f5a321b17d455af6dc07b408eec415369be260f /plugins/Dropbox/src/dropbox.h | |
parent | 3b2b36ee8addccacc150e9600f83d1d09fb2251a (diff) |
Dropbox:
- added "Revoke authorization" in contact menu item
- added authorization request on first start
git-svn-id: http://svn.miranda-ng.org/main/trunk@8302 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/dropbox.h')
-rw-r--r-- | plugins/Dropbox/src/dropbox.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Dropbox/src/dropbox.h b/plugins/Dropbox/src/dropbox.h index 89afb8635d..8ffd4082f8 100644 --- a/plugins/Dropbox/src/dropbox.h +++ b/plugins/Dropbox/src/dropbox.h @@ -23,7 +23,8 @@ enum
{
- CMI_API_REQUEST_AUTH,
+ CMI_AUTH_REQUEST,
+ CMI_AUTH_REVOKE,
CMI_SEND_FILES,
CMI_MAX // this item shall be the last one
};
@@ -60,6 +61,7 @@ private: static INT_PTR ProtoSendMessage(WPARAM wParam, LPARAM lParam);
static INT_PTR RequestApiAuthorization(WPARAM wParam, LPARAM lParam);
+ static INT_PTR RevokeApiAuthorization(WPARAM wParam, LPARAM lParam);
static INT_PTR SendFilesToDropbox(WPARAM wParam, LPARAM lParam);
@@ -70,6 +72,7 @@ private: void DestroyAcceessToken();
static void RequestApiAuthorizationAsync(void *arg);
+ static void RevokeApiAuthorizationAsync(void *arg);
// transrers
int HandleFileTransferError(NETLIBHTTPREQUEST *response, MCONTACT hContact);
|