libzypp
17.32.4
|
The Downloader class. More...
#include <zypp-curl/ng/network/downloader.h>
Public Types | |
using | Ptr = DownloaderRef |
using | WeakPtr = DownloaderWeakRef |
Public Member Functions | |
Downloader () | |
Downloader (std::shared_ptr< MirrorControl > mc) | |
~Downloader () override | |
std::shared_ptr< Download > | downloadFile (const DownloadSpec &spec) |
std::shared_ptr< NetworkRequestDispatcher > | requestDispatcher () const |
SignalProxy< void(Downloader &parent, Download &download)> | sigStarted () |
SignalProxy< void(Downloader &parent, Download &download)> | sigFinished () |
SignalProxy< void(Downloader &parent)> | queueEmpty () |
The Downloader class.
Provides a high level interface to the
Definition at line 38 of file downloader.h.
using zyppng::Downloader::Ptr = DownloaderRef |
Definition at line 43 of file downloader.h.
using zyppng::Downloader::WeakPtr = DownloaderWeakRef |
Definition at line 44 of file downloader.h.
zyppng::Downloader::Downloader | ( | ) |
Definition at line 370 of file downloader.cc.
zyppng::Downloader::Downloader | ( | std::shared_ptr< MirrorControl > | mc | ) |
Definition at line 376 of file downloader.cc.
|
override |
Definition at line 380 of file downloader.cc.
std::shared_ptr< Download > zyppng::Downloader::downloadFile | ( | const DownloadSpec & | spec | ) |
Generates a new Download object in waiting state
Definition at line 389 of file downloader.cc.
std::shared_ptr< NetworkRequestDispatcher > zyppng::Downloader::requestDispatcher | ( | ) | const |
Returns the internally used
Definition at line 401 of file downloader.cc.
SignalProxy< void(Downloader &parent, Download &download)> zyppng::Downloader::sigStarted | ( | ) |
Emitted when a
Definition at line 406 of file downloader.cc.
SignalProxy< void(Downloader &parent, Download &download)> zyppng::Downloader::sigFinished | ( | ) |
Signal that is emitted when a
Definition at line 411 of file downloader.cc.
SignalProxy< void(Downloader &parent)> zyppng::Downloader::queueEmpty | ( | ) |
Signal is always emitted when there are not Downloads anymore waiting in the queue
Definition at line 416 of file downloader.cc.