Imported version 0.2-1
[mstardict] / src / lib / httpmanager.h
1 #ifndef _STARDICT_HTTP_MANAGER_H_
2 #define _STARDICT_HTTP_MANAGER_H_
3
4 #include "http_client.h"
5
6 class HttpManager {
7 public:
8         HttpManager();
9         ~HttpManager();
10         void SendHttpGetRequest(const char* shost, const char* sfile, gpointer userdata);
11         void SendHttpGetRequestWithCallback(const char* shost, const char* sfile, get_http_response_func_t callback_func, gpointer userdata);
12         void Remove(HttpClient *http_client);
13 private:
14         std::list<HttpClient *> client_list;
15 };
16
17 #endif