1#ifndef ZYPP_NG_MEDIA_CURL_DOWNLOADER_H_INCLUDED
2#define ZYPP_NG_MEDIA_CURL_DOWNLOADER_H_INCLUDED
4#include <zypp-core/zyppng/base/zyppglobal.h>
5#include <zypp-core/zyppng/base/Base>
6#include <zypp-core/zyppng/base/signals.h>
7#include <zypp-core/zyppng/core/Url>
9#include <zypp-curl/ng/network/AuthData>
11#include <zypp-core/ByteCount.h>
19 class NetworkRequestDispatcher;
20 class DownloaderPrivate;
43 using Ptr = DownloaderRef;
47 Downloader( std::shared_ptr<MirrorControl> mc );
53 std::shared_ptr<Download> downloadFile (
const DownloadSpec &spec );
59 std::shared_ptr<NetworkRequestDispatcher> requestDispatcher ()
const;
75 SignalProxy<void (
Downloader &parent )> queueEmpty ( );
157 State state ()
const;
170 bool hasError ()
const;
176 std::string errorString ()
const;
202 void setStopOnMetalink (
const bool set =
true );
208 bool stoppedOnMetalink ()
const;
222 uint64_t lastAuthTimestamp ()
const;
227 NetworkRequestDispatcher &dispatcher ()
const;
232 SignalProxy<void (
Download &req )> sigStarted ();
237 SignalProxy<void (
Download &req, State state )> sigStateChanged ();
242 SignalProxy<void (
Download &req, off_t dlnow )> sigAlive ();
247 SignalProxy<void (
Download &req, off_t dltotal, off_t dlnow )> sigProgress ();
252 SignalProxy<void (
Download &req )> sigFinished ( );
269 Download (
Downloader &parent, std::shared_ptr<NetworkRequestDispatcher> requestDispatcher, std::shared_ptr<MirrorControl> mirrors,
DownloadSpec &&spec );
DownloaderWeakRef WeakPtr
The NetworkRequestError class Represents a error that occured in.
zypp::media::TransferSettings TransferSettings
ZYPP_FWD_DECL_TYPE_WITH_REFS(SuseMediaDataVerifier)