summaryrefslogtreecommitdiff
path: root/server/modules/downloaders/curl/include/curl_download.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/modules/downloaders/curl/include/curl_download.h')
-rw-r--r--server/modules/downloaders/curl/include/curl_download.h24
1 files changed, 21 insertions, 3 deletions
diff --git a/server/modules/downloaders/curl/include/curl_download.h b/server/modules/downloaders/curl/include/curl_download.h
index 6956ce4..514d4f2 100644
--- a/server/modules/downloaders/curl/include/curl_download.h
+++ b/server/modules/downloaders/curl/include/curl_download.h
@@ -1,11 +1,29 @@
+/*
+ Copyright © 2015-2016 Gluzskiy Alexandr (sss)
+
+ This file is part of Unknown Download Manager (UDM).
+
+ UDM is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 2 of the License, or
+ (at your option) any later version.
+
+ UDM is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with UDM. If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
#ifndef CURL_DOWNLOAD_H
#define CURL_DOWNLOAD_H
#include <api_module_downloader.h>
#include <curl/curl.h>
-enum download_state {download_running, download_stopped};
-
class curl_download : public download_s
{
public:
@@ -27,7 +45,7 @@ class curl_download : public download_s
void perform_internal();
CURL *easy_handle = nullptr;
bool cancel_transfer = false;
- download_state state = download_stopped;
+ core_events::download_state state = core_events::download_stopped;
std::string download_path;
};