summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/http_request.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-05-11 20:12:46 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-05-11 20:12:46 +0000
commit488f93815d3c247376f038377e7bc3731b074231 (patch)
tree284f30d88e1b183792592c4066d9a7abe0bf6d81 /plugins/Dropbox/src/http_request.h
parentdb8cf4c1b0a624fd469c462e41a1e499ae808b70 (diff)
Dropbox: work commit
git-svn-id: http://svn.miranda-ng.org/main/trunk@13556 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/http_request.h')
-rw-r--r--plugins/Dropbox/src/http_request.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/Dropbox/src/http_request.h b/plugins/Dropbox/src/http_request.h
index 108b244c6f..3b41344776 100644
--- a/plugins/Dropbox/src/http_request.h
+++ b/plugins/Dropbox/src/http_request.h
@@ -3,6 +3,7 @@
enum HTTP_STATUS
{
+ HTTP_STATUS_ERROR = 0,
HTTP_STATUS_OK = 200,
HTTP_STATUS_BAD_REQUEST = 400,
HTTP_STATUS_UNAUTHORIZED = 401,
@@ -17,13 +18,13 @@ enum HTTP_STATUS
class HttpRequest : public NETLIBHTTPREQUEST, public MZeroedObject
{
public:
- HttpRequest(HANDLE hNetlibUser, int requestType, LPCSTR url)
+ HttpRequest(HANDLE hNetlibConnection, int requestType, LPCSTR url)
{
cbSize = sizeof(NETLIBHTTPREQUEST);
flags = NLHRF_HTTP11;
this->requestType = requestType;
- m_hNetlibUser = hNetlibUser;
+ m_hNetlibConnection = hNetlibConnection;
m_szUrl = mir_strdup(url);
}
@@ -91,12 +92,12 @@ public:
NETLIBHTTPREQUEST *Send()
{
szUrl = m_szUrl.GetBuffer();
- return (NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION, (WPARAM)m_hNetlibUser, (LPARAM)this);
+ return (NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION, (WPARAM)m_hNetlibConnection, (LPARAM)this);
}
private:
CMStringA m_szUrl;
- HANDLE m_hNetlibUser;
+ HANDLE m_hNetlibConnection;
};
#endif //_HTTP_REQUEST_H_ \ No newline at end of file