|
libzypp
17.35.12
|
The Downloader class. More...
#include <zypp-curl/ng/network/downloader.h>

Public Types | |
| using | Ptr = DownloaderRef |
| using | WeakPtr = DownloaderWeakRef |
Public Types inherited from zyppng::Base | |
| using | Ptr = std::shared_ptr< Base > |
| using | WeakPtr = std::weak_ptr< Base > |
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 () |
Public Member Functions inherited from zyppng::Base | |
| Base () | |
| virtual | ~Base () |
| WeakPtr | parent () const |
| void | addChild (const Base::Ptr &child) |
| void | removeChild (const Ptr &child) |
| const std::unordered_set< Ptr > & | children () const |
| std::thread::id | threadId () 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 () |
| template<typename SenderFunc , typename ReceiverFunc > | |
| auto | connect (SenderFunc &&sFun, typename internal::MemberFunction< ReceiverFunc >::ClassType &recv, ReceiverFunc &&rFunc) |
| template<typename SenderFunc , typename ReceiverFunc , typename ... Tracker> | |
| std::enable_if_t< std::is_member_function_pointer_v< SenderFunc >, connection > | connectFunc (SenderFunc &&sFun, ReceiverFunc &&rFunc, const Tracker &...trackers) |
Additional Inherited Members | |
Static Public Member Functions inherited from zyppng::Base | |
| template<typename Obj , typename Functor > | |
| static decltype(auto) | make_base_slot (Obj *o, Functor &&f) |
| template<typename SenderFunc , typename ReceiverFunc > | |
| static auto | connect (typename internal::MemberFunction< SenderFunc >::ClassType &s, SenderFunc &&sFun, typename internal::MemberFunction< ReceiverFunc >::ClassType &recv, ReceiverFunc &&rFunc) |
| template<typename SenderFunc , typename ReceiverFunc , typename ... Tracker> | |
| static auto | connectFunc (typename internal::MemberFunction< SenderFunc >::ClassType &s, SenderFunc &&sFun, ReceiverFunc &&rFunc, const Tracker &...trackers) |
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 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.