diff options
-rw-r--r-- | server/modules/downloaders/curl/curl.cbp | 6 | ||||
-rw-r--r-- | server/modules/downloaders/curl/main.cpp | 18 |
2 files changed, 16 insertions, 8 deletions
diff --git a/server/modules/downloaders/curl/curl.cbp b/server/modules/downloaders/curl/curl.cbp index f9ded9a..d61b038 100644 --- a/server/modules/downloaders/curl/curl.cbp +++ b/server/modules/downloaders/curl/curl.cbp @@ -7,7 +7,7 @@ <Option compiler="gcc" /> <Build> <Target title="Debug"> - <Option output="bin/Debug/curl" prefix_auto="1" extension_auto="1" /> + <Option output="../../../bin/Debug/modules/downloaders/curl" prefix_auto="1" extension_auto="1" /> <Option object_output="obj/Debug/" /> <Option type="3" /> <Option compiler="gcc" /> @@ -35,7 +35,11 @@ <Compiler> <Add option="-Wall" /> <Add option="-fexceptions -fPIC" /> + <Add directory="../../../include" /> </Compiler> + <Linker> + <Add library="boost_system" /> + </Linker> <Unit filename="main.cpp" /> <Unit filename="main.h" /> <Extensions> diff --git a/server/modules/downloaders/curl/main.cpp b/server/modules/downloaders/curl/main.cpp index bafd2fb..bd71104 100644 --- a/server/modules/downloaders/curl/main.cpp +++ b/server/modules/downloaders/curl/main.cpp @@ -33,6 +33,10 @@ downloader::downloader() { } +downloader::~downloader() +{ +} + void downloader::on_modules_loaded() { } @@ -58,43 +62,43 @@ void downloader::set_module_settings(const std::map<std::string, std::string> &s } -int add_download(std::map<std::string, std::string> params) +int downloader::add_download(std::map<std::string, std::string> params) { //TODO: return 0; } -bool stop_download(int download_id) +bool downloader::stop_download(int download_id) { //TODO: return true; } -bool start_download(int download_id) +bool downloader::start_download(int download_id) { //TODO: return true; } -bool delete_download(int download_id, bool delete_data) +bool downloader::delete_download(int download_id, bool delete_data) { //TODO: return true; } -bool execute_action_on_download(int download_id, std::string action_id) +bool downloader::execute_action_on_download(int download_id, std::string action_id) { //TODO: return true; } -std::list<download_s> get_downloads(std::map<std::string, std::string> params) +std::list<download_s> downloader::get_downloads(std::map<std::string, std::string> params) { //TODO: return std::list<download_s>(); } -download_s get_download_info(int download_id, std::map<std::string, std::string> params) +download_s downloader::get_download_info(int download_id, std::map<std::string, std::string> params) { //TODO: return download_s(); |