From 6f7054d8f6c14e032a45a42555d4ab097fc82863 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 11 May 2015 16:39:06 +0000 Subject: - STL removed; - code optimization and restructuring; - warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@13549 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dropbox/src/dropbox.h | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'plugins/Dropbox/src/dropbox.h') 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 -#include #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 dcftp; - std::map 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); -- cgit v1.2.3