summaryrefslogtreecommitdiff
path: root/plugins/ExternalAPI/m_dropbox.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ExternalAPI/m_dropbox.h')
-rw-r--r--plugins/ExternalAPI/m_dropbox.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/plugins/ExternalAPI/m_dropbox.h b/plugins/ExternalAPI/m_dropbox.h
index 5077f488af..a4ff665006 100644
--- a/plugins/ExternalAPI/m_dropbox.h
+++ b/plugins/ExternalAPI/m_dropbox.h
@@ -3,16 +3,19 @@
//upload file on Dropbox
//wParam = (MCONTACT)hContact
-//lParam = (LPARAM)(const char*)szPath
-//returns 0 on success or nonzero on failure
-//returns immediately, before the file or folder is uploaded
+//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
#define MS_DROPBOX_SEND_FILE "Dropbox/Send/File"
-//upload file on Dropbox
-//wParam = (MCONTACT)hContact
-//lParam = (LPARAM)(const wchar_t*)wszPath
-//returns 0 on success or nonzero on failure
-//returns immediately, before the file or folder is uploaded
-#define MS_DROPBOX_SEND_FILEW "Dropbox/Send/FileW"
+// 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"
+
+// notifies a caller about file send failure
+// wParam = (MCONTACT)hContact
+// lParam = (LPARAM)(HANDLE)hProcess
+#define ME_DROPBOX_SEND_FAILED "Dropbox/Send/Failed"
#endif //M_DROPBOX_H_ \ No newline at end of file