summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/dropbox.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-05-11 16:39:06 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-05-11 16:39:06 +0000
commit6f7054d8f6c14e032a45a42555d4ab097fc82863 (patch)
tree1cc7d5ae2c4b77743982fa55578612ce27ce150e /plugins/Dropbox/src/dropbox.h
parentac73a9c3d9b5f72f4ee7c0d635daf47db3ef1d50 (diff)
- STL removed;
- code optimization and restructuring; - warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@13549 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/dropbox.h')
-rw-r--r--plugins/Dropbox/src/dropbox.h27
1 files changed, 13 insertions, 14 deletions
diff --git a/plugins/Dropbox/src/dropbox.h b/plugins/Dropbox/src/dropbox.h
index bb07d1f921..ab4d72697c 100644
--- a/plugins/Dropbox/src/dropbox.h
+++ b/plugins/Dropbox/src/dropbox.h
@@ -1,8 +1,6 @@
#ifndef _DROPBOX_PROTO_H_
#define _DROPBOX_PROTO_H_
-#include <map>
-#include <string>
#include "http_request.h"
#include "file_transfer.h"
@@ -25,16 +23,16 @@ enum
CMI_MAX // this item shall be the last one
};
-struct CommandParam
-{
- CDropbox *instance;
- HANDLE hProcess;
- MCONTACT hContact;
- void *data;
-};
-
class CDropbox
{
+ struct CommandParam
+ {
+ CDropbox *instance;
+ HANDLE hProcess;
+ MCONTACT hContact;
+ void *data;
+ };
+
public:
CDropbox();
virtual ~CDropbox();
@@ -48,9 +46,7 @@ private:
MCONTACT hDefaultContact;
MCONTACT hTransferContact;
-
- std::map<HWND, MCONTACT> dcftp;
- std::map<std::string, pThreadFunc> commands;
+ HWND hTransferWindow;
HGENMENU contactMenuItems[CMI_MAX];
@@ -97,7 +93,7 @@ private:
// account info
void RequestAccountInfo();
- // transrers
+ // transfers
int SendFile(const char *fileName, const char *data, int length);
int SendFileChunkedFirst(const char *data, int length, char *uploadId, size_t &offset);
int SendFileChunkedNext(const char *data, int length, const char *uploadId, size_t &offset);
@@ -127,6 +123,9 @@ private:
// dialogs
static INT_PTR CALLBACK MainOptionsProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
+ // SRMM
+ static void DisableSrmmButton(MCONTACT hContact);
+
// utils
static wchar_t *HttpStatusToText(HTTP_STATUS status);
static int HandleHttpResponseError(HANDLE hNetlibUser, NETLIBHTTPREQUEST *response);