|
template<typename Receiver > |
void | connectSignals (Receiver &dl) |
|
void | disconnectSignals () |
|
| NetworkRequest (Url url, zypp::Pathname targetFile, FileMode fMode=WriteExclusive) |
|
| ZYPP_DECLARE_FLAGS (Options, OptionBits) |
|
| NetworkRequest (Url url, zypp::Pathname targetFile, FileMode fMode=WriteExclusive) |
|
| ~NetworkRequest () override |
|
void | setExpectedFileSize (zypp::ByteCount expectedFileSize) |
|
void | setPriority (Priority prio, bool triggerReschedule=true) |
|
Priority | priority () const |
|
void | setOptions (Options opt) |
|
Options | options () const |
|
void | addRequestRange (size_t start, size_t len=0, std::optional< zypp::Digest > &&digest={}, CheckSumBytes expectedChkSum=CheckSumBytes(), std::any userData=std::any(), std::optional< size_t > digestCompareLen={}, std::optional< size_t > chksumpad={}) |
|
void | addRequestRange (Range &&range) |
|
bool | setExpectedFileChecksum (const zypp::CheckSum &expected) |
|
void | resetRequestRanges () |
|
std::vector< Range > | failedRanges () const |
|
const std::vector< Range > & | requestedRanges () const |
|
const std::string & | lastRedirectInfo () const |
|
void * | nativeHandle () const |
|
std::optional< Timings > | timings () const |
| After the request is finished query the timings that were collected during download.
|
|
std::vector< char > | peekData (off_t offset, size_t count) const |
|
Url | url () const |
|
void | setUrl (const Url &url) |
| This will change the URL of the request.
|
|
const zypp::Pathname & | targetFilePath () const |
| Returns the target filename path.
|
|
void | setTargetFilePath (const zypp::Pathname &path) |
| Changes the target file path of the download.
|
|
FileMode | fileOpenMode () const |
| Returns the currently configured file open mode.
|
|
void | setFileOpenMode (FileMode mode) |
| Sets the file open mode to mode.
|
|
std::string | contentType () const |
| Returns the content type as reported from the server.
|
|
zypp::ByteCount | reportedByteCount () const |
| Returns the number of bytes that are reported from the backend as the full download size, those can be 0 even when the download is already running.
|
|
zypp::ByteCount | downloadedByteCount () const |
| Returns the number of already downloaded bytes as reported by the backend.
|
|
TransferSettings & | transferSettings () |
|
State | state () const |
| Returns the current state the HttpDownloadRequest is in.
|
|
NetworkRequestError | error () const |
| Returns the last set Error.
|
|
std::string | extendedErrorString () const |
| In some cases, curl can provide extended error information collected at runtime.
|
|
bool | hasError () const |
| Checks if there was a error with the request.
|
|
bool | addRequestHeader (const std::string &header) |
|
SignalProxy< void(NetworkRequest &req)> | sigStarted () |
| Signals that the dispatcher dequeued the request and actually starts downloading data.
|
|
SignalProxy< void(NetworkRequest &req, zypp::ByteCount count)> | sigBytesDownloaded () |
| Signals that new data has been downloaded, this is only the payload and does not include control data bytes.
|
|
SignalProxy< void(NetworkRequest &req, off_t dltotal, off_t dlnow, off_t ultotal, off_t ulnow)> | sigProgress () |
| Signals if there was data read from the download.
|
|
SignalProxy< void(NetworkRequest &req, const NetworkRequestError &err)> | sigFinished () |
| Signals that the download finished.
|
|
| 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) |
|
|
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) |
|
| Base (BasePrivate &dd) |
|
std::unique_ptr< BasePrivate > | d_ptr |
|
Definition at line 60 of file base_p.h.