diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-04-20 18:52:22 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-04-20 18:52:22 +0000 |
commit | 7478b207dea289dcddb5e1bce5b5191ac92605b1 (patch) | |
tree | 4321befdd2aedb9b1aa0cddcbc35842882b573c1 /plugins/ExternalAPI/m_dropbox.h | |
parent | f7e95fa1db54ad43dc041b812bf7fd7cfa3c4ec7 (diff) |
Dropbox: service and events reworked
git-svn-id: http://svn.miranda-ng.org/main/trunk@9005 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ExternalAPI/m_dropbox.h')
-rw-r--r-- | plugins/ExternalAPI/m_dropbox.h | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/plugins/ExternalAPI/m_dropbox.h b/plugins/ExternalAPI/m_dropbox.h index a4ff665006..98e4d4623c 100644 --- a/plugins/ExternalAPI/m_dropbox.h +++ b/plugins/ExternalAPI/m_dropbox.h @@ -1,21 +1,26 @@ #ifndef M_DROPBOX_H_
#define M_DROPBOX_H_
-//upload file on Dropbox
-//wParam = (MCONTACT)hContact
-//lParam = (LPARAM)(const wchar_t*)path - full path to file
+// upload file on Dropbox
+// wParam = (MCONTACT)hContact - NULL to send to the Dropbox contact
+// lParam = (LPARAM)(const wchar_t*)path - full path to file
// returns file htansfer handle or NULL on failure
// returns immediately, without waiting for the send
+// note, that you can track progress by using ME_PROTO_ACK
#define MS_DROPBOX_SEND_FILE "Dropbox/Send/File"
-// notifies a caller about file send end
-// wParam = (MCONTACT)hContact
-// lParam = (LPARAM)(const wchar_t*)url - "\r\n" separated download link to file
-#define ME_DROPBOX_SEND_SUCCEEDED "Dropbox/Send/Succeeded"
+// if you want to get download links of sent files
+// use ME_DROPBOX_SENT hook. you'll get:
+struct TRANSFERINFO
+{
+ HANDLE hProcess; // hProcess
+ int status; // status of transfer. 0 on success otherwise fail
+ wchar_t** data; // NULL ended array of download links
+};
-// notifies a caller about file send failure
+// notifies a caller that file has been sent
// wParam = (MCONTACT)hContact
-// lParam = (LPARAM)(HANDLE)hProcess
-#define ME_DROPBOX_SEND_FAILED "Dropbox/Send/Failed"
+// lParam = (LPARAM)(TRANSFERINFO*)info - transfer info
+#define ME_DROPBOX_SENT "Dropbox/Sent/Event"
#endif //M_DROPBOX_H_
\ No newline at end of file |