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.cpp | |
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.cpp')
-rw-r--r-- | plugins/Dropbox/src/dropbox.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/Dropbox/src/dropbox.cpp b/plugins/Dropbox/src/dropbox.cpp index 2cd459759f..53c8cb0356 100644 --- a/plugins/Dropbox/src/dropbox.cpp +++ b/plugins/Dropbox/src/dropbox.cpp @@ -1,5 +1,8 @@ #include "common.h"
+std::map<HWND, MCONTACT> CDropbox::dcftp;
+HGENMENU CDropbox::ContactMenuItems[CMI_MAX];
+
void CDropbox::Init()
{
PROTOCOLDESCRIPTOR pd = { PROTOCOLDESCRIPTOR_V3_SIZE };
@@ -132,4 +135,14 @@ void CDropbox::RequestApiAuthorizationAsync(void *arg) }
else
INSTANCE->RequestAcceessToken();
+}
+
+void CDropbox::RevokeApiAuthorizationAsync(void *arg)
+{
+ if (HasAccessToken() && MessageBox(
+ NULL,
+ TranslateT("Are you sure you want to revoke athorization?"),
+ TranslateT("Revoke authorization"),
+ MB_YESNO | MB_ICONQUESTION) == IDYES)
+ INSTANCE->DestroyAcceessToken();
}
\ No newline at end of file |