From 61e1d6d2882b1582498e412dc94ed4b35de2ed77 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Thu, 27 Feb 2014 16:56:39 +0000 Subject: 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 --- plugins/Dropbox/src/dropbox.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins/Dropbox/src/dropbox.h') 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); -- cgit v1.2.3