libzypp 17.31.23
|
Bottleneck filtering all DownloadProgressReport issued from Media[Muli]Curl. More...
Public Types | |
using | TimePoint = std::chrono::steady_clock::time_point |
Public Types inherited from zypp::callback::ReceiveReport< media::DownloadProgressReport > | |
typedef media::DownloadProgressReport | ReportType |
typedef ReceiveReport< media::DownloadProgressReport > | Receiver |
typedef DistributeReport< media::DownloadProgressReport > | Distributor |
Public Types inherited from zypp::media::DownloadProgressReport | |
enum | Action { ABORT , RETRY , IGNORE } |
enum | Error { NO_ERROR , NOT_FOUND , IO , ACCESS_DENIED , ERROR } |
Public Types inherited from zypp::callback::ReportBase | |
typedef callback::UserData | UserData |
typedef UserData::ContentType | ContentType |
Public Member Functions | |
OptionalDownloadProgressReport (bool isOptional=false) | |
~OptionalDownloadProgressReport () | |
void | reportbegin () override |
void | reportend () override |
void | report (const UserData &userData_r=UserData()) override |
The most generic way of sending/receiving data. | |
void | start (const Url &file_r, Pathname localfile_r) override |
bool | progress (int value_r, const Url &file_r, double dbps_avg_r=-1, double dbps_current_r=-1) override |
Download progress. | |
Action | problem (const Url &file_r, Error error_r, const std::string &description_r) override |
void | finish (const Url &file_r, Error error_r, const std::string &reason_r) override |
Public Member Functions inherited from zypp::callback::ReceiveReport< media::DownloadProgressReport > | |
virtual | ~ReceiveReport () |
ReceiveReport * | whoIsConnected () const |
bool | connected () const |
void | connect () |
void | disconnect () |
virtual void | reportbegin () |
virtual void | reportend () |
Public Member Functions inherited from zypp::media::DownloadProgressReport | |
virtual void | start (const Url &, Pathname) |
virtual bool | progress (int, const Url &, double dbps_avg=-1, double dbps_current=-1) |
Download progress. | |
virtual Action | problem (const Url &, Error, const std::string &) |
virtual void | finish (const Url &, Error, const std::string &) |
Public Member Functions inherited from zypp::callback::ReportBase | |
virtual void | report (const UserData &userData_r=UserData()) |
The most generic way of sending/receiving data. | |
virtual | ~ReportBase () |
Private Member Functions | |
bool | notStarted () const |
void | sendStart () |
Private Attributes | |
Receiver *const | _oldRec |
bool | _isOptional |
Url | _startFile |
Pathname | _startLocalfile |
TimePoint | _lastProgressSent |
Bottleneck filtering all DownloadProgressReport issued from Media[Muli]Curl.
Definition at line 49 of file MediaCurl.cc.
using internal::OptionalDownloadProgressReport::TimePoint = std::chrono::steady_clock::time_point |
Definition at line 51 of file MediaCurl.cc.
|
inline |
Definition at line 53 of file MediaCurl.cc.
|
inline |
Definition at line 58 of file MediaCurl.cc.
|
inlineoverridevirtual |
Reimplemented from zypp::callback::ReceiveReport< media::DownloadProgressReport >.
Definition at line 61 of file MediaCurl.cc.
|
inlineoverridevirtual |
Reimplemented from zypp::callback::ReceiveReport< media::DownloadProgressReport >.
Definition at line 64 of file MediaCurl.cc.
|
inlineoverridevirtual |
The most generic way of sending/receiving data.
Reimplemented from zypp::callback::ReportBase.
Definition at line 67 of file MediaCurl.cc.
|
inlineoverride |
Definition at line 71 of file MediaCurl.cc.
|
inlineoverridevirtual |
Download progress.
value | Percentage value. |
file | File URI. |
dbps_avg | Average download rate so far. -1 if unknown. |
dbps_current | Current download (cca last 1 sec). -1 if unknown. |
Reimplemented from zypp::media::DownloadProgressReport.
Definition at line 83 of file MediaCurl.cc.
|
inlineoverridevirtual |
Reimplemented from zypp::media::DownloadProgressReport.
Definition at line 102 of file MediaCurl.cc.
|
inlineoverridevirtual |
Reimplemented from zypp::media::DownloadProgressReport.
Definition at line 108 of file MediaCurl.cc.
|
inlineprivate |
Definition at line 116 of file MediaCurl.cc.
|
inlineprivate |
Definition at line 119 of file MediaCurl.cc.
|
private |
Definition at line 129 of file MediaCurl.cc.
|
private |
Definition at line 130 of file MediaCurl.cc.
|
private |
Definition at line 131 of file MediaCurl.cc.
|
private |
Definition at line 132 of file MediaCurl.cc.
|
private |
Definition at line 133 of file MediaCurl.cc.