diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-02-26 11:29:17 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-02-26 11:29:17 +0000 |
commit | 987ceba57a977c691977a0f5aa8005678fcbc7e7 (patch) | |
tree | 1e52b2b0aafc60d0365034f28394cfb2dee0e587 /plugins/Dropbox/src/dropbox_services.cpp | |
parent | a16909cbcbf6d18ab622ac5bbb05a8d743a93db3 (diff) |
Dropbox:
- added ability to intercept transfers from other protocols
- version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@16344 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/dropbox_services.cpp')
-rw-r--r-- | plugins/Dropbox/src/dropbox_services.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/Dropbox/src/dropbox_services.cpp b/plugins/Dropbox/src/dropbox_services.cpp index d679059c43..92f7a5abae 100644 --- a/plugins/Dropbox/src/dropbox_services.cpp +++ b/plugins/Dropbox/src/dropbox_services.cpp @@ -74,6 +74,18 @@ INT_PTR CDropbox::ProtoSendFile(WPARAM, LPARAM lParam) return fileId;
}
+INT_PTR CDropbox::ProtoSendFileInterceptor(WPARAM wParam, LPARAM lParam)
+{
+ CCSDATA *pccsd = (CCSDATA*)lParam;
+
+ const char *proto = GetContactProto(pccsd->hContact);
+ const char *interceptedProtos = db_get_sa(NULL, MODULE, "InterceptedProtos");
+ if (interceptedProtos == NULL || strstr(interceptedProtos, proto) == NULL)
+ return CALLSERVICE_NOTFOUND;
+
+ return ProtoSendFile(wParam, lParam);
+}
+
INT_PTR CDropbox::ProtoCancelFile(WPARAM, LPARAM lParam)
{
CCSDATA *pccsd = (CCSDATA*)lParam;
|