summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/dropbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dropbox/src/dropbox.cpp')
-rw-r--r--plugins/Dropbox/src/dropbox.cpp13
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