|
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) |
|
virtual | ~NetworkRequest () |
|
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, DigestPtr digest=nullptr, CheckSumBytes expectedChkSum=CheckSumBytes(), std::any userData=std::any(), std::optional< size_t > digestCompareLen={}, std::optional< size_t > chksumpad={}) |
|
void | addRequestRange (const Range &range) |
|
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.
|
|
Definition at line 60 of file base_p.h.