diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-03-03 14:47:53 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-03-03 14:47:53 +0000 |
commit | 999fdaa2662a1fe8937ec110232a78e87d79bfe7 (patch) | |
tree | 1c3d7c292fa5a54986e266778979c2496bb5a420 /plugins/Dropbox/src/dropbox_utils.cpp | |
parent | 44223012ce0fa631cc5af6fc588166bccc3a66f6 (diff) |
Dropbox:
- remove menu item and srmm button for intercepted accounts
- removed limitation on single transfer window from menu item and srmm
git-svn-id: http://svn.miranda-ng.org/main/trunk@16405 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/dropbox_utils.cpp')
-rw-r--r-- | plugins/Dropbox/src/dropbox_utils.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/Dropbox/src/dropbox_utils.cpp b/plugins/Dropbox/src/dropbox_utils.cpp index ee6fc73a60..b007d88245 100644 --- a/plugins/Dropbox/src/dropbox_utils.cpp +++ b/plugins/Dropbox/src/dropbox_utils.cpp @@ -21,6 +21,14 @@ char* CDropbox::PreparePath(const TCHAR *oldPath, char *newPath) return PreparePath(ptrA(mir_utf8encodeW(oldPath)), newPath);
}
+bool CDropbox::IsAccountIntercepted(const char *module)
+{
+ const char *interceptedAccounts = db_get_sa(NULL, MODULE, "InterceptedAccounts");
+ if (interceptedAccounts == NULL)
+ interceptedAccounts = db_get_sa(NULL, MODULE, "InterceptedProtos");
+ return interceptedAccounts && strstr(interceptedAccounts, module);
+}
+
char* CDropbox::HttpStatusToText(HTTP_STATUS status)
{
switch (status) {
|