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_services.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_services.cpp')
-rw-r--r-- | plugins/Dropbox/src/dropbox_services.cpp | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/plugins/Dropbox/src/dropbox_services.cpp b/plugins/Dropbox/src/dropbox_services.cpp index e18a6e9953..c298974166 100644 --- a/plugins/Dropbox/src/dropbox_services.cpp +++ b/plugins/Dropbox/src/dropbox_services.cpp @@ -1,15 +1,13 @@ #include "common.h"
-INT_PTR CDropbox::ProtoGetCaps(WPARAM wParam, LPARAM lParam)
+INT_PTR CDropbox::ProtoGetCaps(WPARAM wParam, LPARAM)
{
switch(wParam)
{
case PFLAGNUM_1:
- return PF1_IM | PF1_FILESEND | PF1_AUTHREQ;
+ return PF1_IM | PF1_FILESEND;
case PFLAGNUM_2:
return PF2_ONLINE;
- case PFLAGNUM_4:
- return PF4_FORCEAUTH;
case PFLAG_UNIQUEIDTEXT:
return (INT_PTR)MODULE " ID";
case PFLAG_UNIQUEIDSETTING:
@@ -93,15 +91,6 @@ INT_PTR CDropbox::ProtoSendMessage(WPARAM wParam, LPARAM lParam) //char *message = (char*)pccsd->lParam;
- //DBEVENTINFO dbei = { sizeof(dbei) };
- //dbei.szModule = MODULE;
- //dbei.timestamp = time(NULL);
- //dbei.eventType = EVENTTYPE_MESSAGE;
- //dbei.cbBlob = strlen(message);
- //dbei.pBlob = (PBYTE)message;
- //dbei.flags = DBEF_SENT | DBEF_UTF;
- //db_event_add(pccsd->hContact, &dbei);
-
//if (message[0] && message[0] == '/')
//{
// // parse commands
@@ -110,16 +99,21 @@ INT_PTR CDropbox::ProtoSendMessage(WPARAM wParam, LPARAM lParam) return 0;
}
-INT_PTR CDropbox::RequestApiAuthorization(WPARAM wParam, LPARAM lParam)
+INT_PTR CDropbox::RequestApiAuthorization(WPARAM, LPARAM)
{
mir_forkthread(CDropbox::RequestApiAuthorizationAsync, 0);
return 0;
}
-std::map<HWND, MCONTACT> CDropbox::dcftp;
+INT_PTR CDropbox::RevokeApiAuthorization(WPARAM, LPARAM)
+{
+ mir_forkthread(CDropbox::RevokeApiAuthorizationAsync, 0);
+
+ return 0;
+}
-INT_PTR CDropbox::SendFilesToDropbox(WPARAM hContact, LPARAM lParam)
+INT_PTR CDropbox::SendFilesToDropbox(WPARAM hContact, LPARAM)
{
INSTANCE->hContactTransfer = hContact;
|