Imported version 0.2-1
[mstardict] / src / lib / httpmanager.h
diff --git a/src/lib/httpmanager.h b/src/lib/httpmanager.h
new file mode 100644 (file)
index 0000000..1fac6f4
--- /dev/null
@@ -0,0 +1,17 @@
+#ifndef _STARDICT_HTTP_MANAGER_H_
+#define _STARDICT_HTTP_MANAGER_H_
+
+#include "http_client.h"
+
+class HttpManager {
+public:
+       HttpManager();
+       ~HttpManager();
+       void SendHttpGetRequest(const char* shost, const char* sfile, gpointer userdata);
+       void SendHttpGetRequestWithCallback(const char* shost, const char* sfile, get_http_response_func_t callback_func, gpointer userdata);
+       void Remove(HttpClient *http_client);
+private:
+       std::list<HttpClient *> client_list;
+};
+
+#endif