summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus/src/CSend.h
diff options
context:
space:
mode:
authorRené Schümann <white06tiger@gmail.com>2014-04-11 17:22:27 +0000
committerRené Schümann <white06tiger@gmail.com>2014-04-11 17:22:27 +0000
commit2e96c3880c010e34363be9300ebbc7935de4a67a (patch)
tree83b12021e0e020d52d30b51b0d300f4ba432745b /plugins/SendScreenshotPlus/src/CSend.h
parent99e1f60a6570c12fd02a9a2ebe8915680d2bfcec (diff)
SendSS:
+ CSend now handles image upload via HTTP, at least provides helper functions for POST requests (CSend) - CSendImageShack simplified and removed custom HTTP form stuff as it's now integrated and easier to use in CSend (CSendImageShack) * version bump and User-Agent fix (version.h) git-svn-id: http://svn.miranda-ng.org/main/trunk@8958 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SendScreenshotPlus/src/CSend.h')
-rw-r--r--plugins/SendScreenshotPlus/src/CSend.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/SendScreenshotPlus/src/CSend.h b/plugins/SendScreenshotPlus/src/CSend.h
index 77b0d677e9..fdf84d712b 100644
--- a/plugins/SendScreenshotPlus/src/CSend.h
+++ b/plugins/SendScreenshotPlus/src/CSend.h
@@ -99,6 +99,21 @@ class CSend {
void DB_EventAdd(WORD EventType);
static INT_PTR CALLBACK ResultDialogProc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam);
+
+ /// HTTP upload helper stuff
+ enum HTTPFormFlags{
+ HTTPFORM_TEXT=0x00,
+ HTTPFORM_8BIT=0x01,
+ HTTPFORM_FILE=0x02,
+ };
+ struct HTTPFormData{
+ const char* name;
+ const char* value;
+ int flags;
+ };
+ static const char* GetHTMLContent(char* str, const char* startTag, const char* endTag); /// changes "str", can be successfully used only once
+ void HTTPFormDestroy(NETLIBHTTPREQUEST* nlhr); /// use to free data inside "nlhr" created by HTTPFormCreate
+ int HTTPFormCreate(NETLIBHTTPREQUEST* nlhr,int requestType,char* url,HTTPFormData* frm,size_t frmNum); /// returns "0" on success, Exit() will be called on failure (stop processing)
};
#endif