|
libzypp
17.22.0
|
The Downloader class. More...
#include <downloader.h>

Public Types | |
| using | Ptr = std::shared_ptr< Downloader > |
| using | WeakPtr = std::shared_ptr< Downloader > |
Public Types inherited from zyppng::Base | |
| using | Ptr = std::shared_ptr< Base > |
| using | WeakPtr = std::weak_ptr< Base > |
Public Member Functions | |
| Downloader () | |
| std::shared_ptr< Download > | downloadFile (Url file, zypp::filesystem::Pathname targetPath, zypp::ByteCount expectedFileSize=zypp::ByteCount()) |
| 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 () |
Public Member Functions inherited from zyppng::Base | |
| Base () | |
| virtual | ~Base () |
| WeakPtr | parent () const |
| void | addChild (Base::Ptr child) |
| void | removeChild (Ptr child) |
| const std::unordered_set< Ptr > & | children () const |
| template<typename T > | |
| std::vector< std::weak_ptr< T > > | findChildren () const |
| template<typename T > | |
| std::shared_ptr< T > | shared_this () const |
| template<typename T > | |
| std::shared_ptr< T > | shared_this () |
| template<typename T > | |
| std::weak_ptr< T > | weak_this () const |
| template<typename T > | |
| std::weak_ptr< T > | weak_this () |
Additional Inherited Members | |
Protected Member Functions inherited from zyppng::Base | |
| Base (BasePrivate &dd) | |
Protected Attributes inherited from zyppng::Base | |
| std::unique_ptr< BasePrivate > | d_ptr |
The Downloader class.
Provides a high level interface to the
Definition at line 34 of file downloader.h.
| using zyppng::Downloader::Ptr = std::shared_ptr<Downloader> |
Definition at line 39 of file downloader.h.
| using zyppng::Downloader::WeakPtr = std::shared_ptr<Downloader> |
Definition at line 40 of file downloader.h.
| zyppng::Downloader::Downloader | ( | ) |
Definition at line 805 of file downloader.cc.
| std::shared_ptr< Download > zyppng::Downloader::downloadFile | ( | zyppng::Url | file, |
| zypp::filesystem::Pathname | targetPath, | ||
| zypp::ByteCount | expectedFileSize = zypp::ByteCount() |
||
| ) |
Generates a new Download object in waiting state
| file | the |
| targetPath | the local file path where the downloaded file needs to be stored |
| expectedFileSize | The expected file size of the source file, can be empty |
Definition at line 811 of file downloader.cc.
| std::shared_ptr< NetworkRequestDispatcher > zyppng::Downloader::requestDispatcher | ( | ) | const |
Returns the internally used
Definition at line 824 of file downloader.cc.
| SignalProxy< void(Downloader &parent, Download &download)> zyppng::Downloader::sigStarted | ( | ) |
Emitted when a
Definition at line 829 of file downloader.cc.
| SignalProxy< void(Downloader &parent, Download &download)> zyppng::Downloader::sigFinished | ( | ) |
Signal that is emitted when a
Definition at line 834 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 839 of file downloader.cc.