diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-03-11 14:19:01 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-03-11 14:19:01 +0000 |
commit | a0a667fd07e912b1dc425748e58a72fa9a50512f (patch) | |
tree | 027b0ed27a5c3d697dd1aa51a13ca0d3e1375582 /plugins/Dropbox/src/dropbox.h | |
parent | f8f38839dba925d30c09d9b1527258973c24e591 (diff) |
Dropbox:
- fixed TabSrmm button behavior
- added ME_DROPBOX_SEND_SUCCEEDED and ME_DROPBOX_SEND_FAILED events
- remained only unicode version of MS_DROPBOX_SEND_FILE
- minor fixes
- version bumped
git-svn-id: http://svn.miranda-ng.org/main/trunk@8557 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/dropbox.h')
-rw-r--r-- | plugins/Dropbox/src/dropbox.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/plugins/Dropbox/src/dropbox.h b/plugins/Dropbox/src/dropbox.h index afe501c0f0..2b2418e669 100644 --- a/plugins/Dropbox/src/dropbox.h +++ b/plugins/Dropbox/src/dropbox.h @@ -37,12 +37,15 @@ class CDropbox {
public:
CDropbox();
- virtual ~CDropbox() { }
+ virtual ~CDropbox();
private:
HANDLE hNetlibUser;
ULONG hFileProcess;
ULONG hMessageProcess;
+
+ HANDLE hFileSendFailedHook;
+ HANDLE hFileSendSuccessedHook;
MCONTACT hDefaultContact;
MCONTACT hTransferContact;
@@ -53,25 +56,28 @@ private: HGENMENU contactMenuItems[CMI_MAX];
// hooks
- static int OnModulesLoaded(void *obj, WPARAM wParam, LPARAM lParam);
+ static int OnProtoAck(void *obj, WPARAM wParam, LPARAM lParam);
static int OnPreShutdown(void *obj, WPARAM wParam, LPARAM lParam);
+ static int OnModulesLoaded(void *obj, WPARAM wParam, LPARAM lParam);
static int OnContactDeleted(void *obj, WPARAM wParam, LPARAM lParam);
static int OnOptionsInitialized(void *obj, WPARAM wParam, LPARAM lParam);
static int OnPrebuildContactMenu(void *obj, WPARAM wParam, LPARAM lParam);
static int OnSrmmWindowOpened(void *obj, WPARAM wParam, LPARAM lParam);
static int OnTabSrmmButtonPressed(void *obj, WPARAM wParam, LPARAM lParam);
- static int OnFileDoalogCancelled(void *obj, WPARAM wParam, LPARAM lParam);
- static int OnFileDoalogSuccessed(void *obj, WPARAM wParam, LPARAM lParam);
+ static int OnFileDialogCancelled(void *obj, WPARAM wParam, LPARAM lParam);
+ static int OnFileDialogSuccessed(void *obj, WPARAM wParam, LPARAM lParam);
+
+ static int OnSendSuccessed(void *obj, WPARAM wParam, LPARAM lParam);
// services
+ static HANDLE CreateProtoServiceFunctionObj(const char *szService, MIRANDASERVICEOBJ serviceProc, void *obj);
+
static INT_PTR ProtoGetCaps(WPARAM wParam, LPARAM lParam);
static INT_PTR ProtoSendFile(void *obj, WPARAM wParam, LPARAM lParam);
static INT_PTR ProtoSendMessage(void *obj, WPARAM wParam, LPARAM lParam);
static INT_PTR ProtoReceiveMessage(void *obj, WPARAM wParam, LPARAM lParam);
static INT_PTR SendFileToDropbox(void *obj, WPARAM wParam, LPARAM lParam);
- static INT_PTR SendFileWToDropbox(void *obj, WPARAM wParam, LPARAM lParam);
-
static INT_PTR SendFilesToDropbox(void *obj, WPARAM wParam, LPARAM lParam);
// commands
@@ -92,8 +98,6 @@ private: void RequestAccountInfo();
// transrers
- static int HandleFileTransferError(HANDLE hNetlibUser, NETLIBHTTPREQUEST *response);
-
int SendFile(const char *fileName, const char *data, int length);
int SendFileChunkedFirst(const char *data, int length, char *uploadId, int &offset);
int SendFileChunkedNext(const char *data, int length, const char *uploadId, int &offset);
@@ -101,9 +105,9 @@ private: int CreateFolder(const char *folderName);
- int CreateDownloadUrl(const char *path, char *url);
+ int CreateDownloadUrl(const char *path, wchar_t *url);
- static void _cdecl SendFileAsync(void *arg);
+ static UINT SendFilesAsync(void *owner, void *arg);
// contacts
MCONTACT GetDefaultContact();
@@ -119,12 +123,8 @@ private: static INT_PTR CALLBACK MainOptionsProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
// utils
- static HANDLE CreateProtoServiceFunctionObj(const char *szService, MIRANDASERVICEOBJ serviceProc, void *obj);
-
static wchar_t *HttpStatusToText(HTTP_STATUS status);
-
- static void ShowNotification(const wchar_t *caption, const wchar_t *message, int flags = 0, MCONTACT hContact = NULL);
- static void ShowNotification(const wchar_t *message, int flags = 0, MCONTACT hContact = NULL);
+ static int HandleHttpResponseError(HANDLE hNetlibUser, NETLIBHTTPREQUEST *response);
};
#endif //_DROPBOX_PROTO_H_
\ No newline at end of file |