summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/http_request.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-02-19 19:07:45 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-02-19 19:07:45 +0000
commitfc46c19a61d26fb610d173bb8fc5420eea966caa (patch)
tree0d388af6d8a53eb4ef56dcdb96fe44d56bccb63d /plugins/Dropbox/src/http_request.h
parent3ced66e7eac9a8a0867073553db2b2bd74729b09 (diff)
Dropbox:
- global object replaced by singleton - added ability to upload folders git-svn-id: http://svn.miranda-ng.org/main/trunk@8183 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/http_request.h')
-rw-r--r--plugins/Dropbox/src/http_request.h25
1 files changed, 2 insertions, 23 deletions
diff --git a/plugins/Dropbox/src/http_request.h b/plugins/Dropbox/src/http_request.h
index b17ef16b58..43b1b311ec 100644
--- a/plugins/Dropbox/src/http_request.h
+++ b/plugins/Dropbox/src/http_request.h
@@ -43,7 +43,7 @@ public:
void AddParameter(LPCSTR szName, LPCSTR szValue)
{
- if(m_szUrl.Find('?') == -1)
+ if (m_szUrl.Find('?') == -1)
m_szUrl.AppendFormat("?%s=%s", szName, szValue);
else
m_szUrl.AppendFormat("&%s=%s", szName, szValue);
@@ -51,7 +51,7 @@ public:
void AddParameter(LPCSTR szName, int value)
{
- if(m_szUrl.Find('?') == -1)
+ if (m_szUrl.Find('?') == -1)
m_szUrl.AppendFormat("?%s=%i", szName, value);
else
m_szUrl.AppendFormat("&%s=%i", szName, value);
@@ -63,30 +63,9 @@ public:
return (NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION, (WPARAM)m_hNetlibUser, (LPARAM)this);
}
- //void SendAsync(typename CBaseProto<T>::AsyncHttpRequest callback)
- //{
- // szUrl = m_szUrl.GetBuffer();
- // AsyncParam param = { this, proto, callback };
- // /*HANDLE hThread = */mir_forkthread(SendAsync, &param);
- // //WaitForSingleObject(hThread, INFINITE);
- //}
-
private:
-
CMStringA m_szUrl;
HANDLE m_hNetlibUser;
-
- /*static void SendAsync(void *arg)
- {
- AsyncParam *param = (AsyncParam*)arg;
- NETLIBHTTPREQUEST* response = (NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION, (WPARAM)param->m_proto->m_hNetlibUser, (LPARAM)param->m_request);
-
- CBaseProto<T> *proto = param->m_proto;
- AsyncRequestCallback callback = param->m_callback;
- proto->*callback(response);
-
- delete response;
- }*/
};
#endif //_HTTP_REQUEST_H_ \ No newline at end of file