summaryrefslogtreecommitdiff
path: root/SampleDownloader/RemoteFile.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'SampleDownloader/RemoteFile.hpp')
-rw-r--r--SampleDownloader/RemoteFile.hpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/SampleDownloader/RemoteFile.hpp b/SampleDownloader/RemoteFile.hpp
index 3e6cb851..273c6887 100644
--- a/SampleDownloader/RemoteFile.hpp
+++ b/SampleDownloader/RemoteFile.hpp
@@ -39,8 +39,7 @@ public:
};
explicit RemoteFile (ListenerInterface * listener, QNetworkAccessManager * network_manager
- , QString const& local_file_path, bool http_only = false
- , QObject * parent = nullptr);
+ , QString const& local_file_path, QObject * parent = nullptr);
// true if local file exists or will do very soon
bool local () const;
@@ -57,9 +56,6 @@ public:
QString local_file_path () const {return local_file_.absoluteFilePath ();}
QUrl url () const {return url_;}
- // always use an http scheme for remote URLs
- void http_only (bool flag = true) {http_only_ = flag;}
-
private:
void download (QUrl url);
void reply_finished ();
@@ -73,7 +69,6 @@ private:
ListenerInterface * listener_;
QNetworkAccessManager * network_manager_;
QFileInfo local_file_;
- bool http_only_;
QUrl url_;
QPointer<QNetworkReply> reply_;
bool is_valid_;