libzypp 17.37.17
|
Bottleneck filtering all DownloadProgressReport issued from Media[Muli]Curl. More...
#include <zypp/media/detail/OptionalDownloadProgressReport.h>
Public Types | |
using | TimePoint = std::chrono::steady_clock::time_point |
Public Types inherited from zypp::callback::ReceiveReport< zypp::media::DownloadProgressReport > | |
typedef zypp::media::DownloadProgressReport | ReportType |
typedef ReceiveReport< zypp::media::DownloadProgressReport > | Receiver |
typedef DistributeReport< zypp::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 (const OptionalDownloadProgressReport &)=delete | |
OptionalDownloadProgressReport (OptionalDownloadProgressReport &&)=delete | |
OptionalDownloadProgressReport & | operator= (const OptionalDownloadProgressReport &)=delete |
OptionalDownloadProgressReport & | operator= (OptionalDownloadProgressReport &&)=delete |
~OptionalDownloadProgressReport () override | |
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 zypp::Url &file_r, zypp::Pathname localfile_r) override |
bool | progress (int value_r, const zypp::Url &file_r, double dbps_avg_r=-1, double dbps_current_r=-1) override |
Download progress. | |
Action | problem (const zypp::Url &file_r, Error error_r, const std::string &description_r) override |
void | finish (const zypp::Url &file_r, Error error_r, const std::string &reason_r) override |
Public Member Functions inherited from zypp::callback::ReceiveReport< zypp::media::DownloadProgressReport > | |
virtual | ~ReceiveReport () |
ReceiveReport * | whoIsConnected () const |
bool | connected () const |
void | connect () |
void | disconnect () |
Public Member Functions inherited from zypp::callback::ReportBase | |
virtual | ~ReportBase () |
Private Member Functions | |
bool | notStarted () const |
void | sendStart () |
Private Attributes | |
Receiver *const | _oldRec |
bool | _isOptional |
zypp::Url | _startFile |
zypp::Pathname | _startLocalfile |
TimePoint | _lastProgressSent |
Bottleneck filtering all DownloadProgressReport issued from Media[Muli]Curl.
Definition at line 21 of file OptionalDownloadProgressReport.h.
using internal::OptionalDownloadProgressReport::TimePoint = std::chrono::steady_clock::time_point |
Definition at line 23 of file OptionalDownloadProgressReport.h.
internal::OptionalDownloadProgressReport::OptionalDownloadProgressReport | ( | bool | isOptional = false | ) |
Definition at line 16 of file OptionalDownloadProgressReport.cc.
|
delete |
|
delete |
|
override |
Definition at line 21 of file OptionalDownloadProgressReport.cc.
|
delete |
|
delete |
|
overridevirtual |
Reimplemented from zypp::callback::ReceiveReport< zypp::media::DownloadProgressReport >.
Definition at line 28 of file OptionalDownloadProgressReport.cc.
|
overridevirtual |
Reimplemented from zypp::callback::ReceiveReport< zypp::media::DownloadProgressReport >.
Definition at line 31 of file OptionalDownloadProgressReport.cc.
|
overridevirtual |
The most generic way of sending/receiving data.
Reimplemented from zypp::callback::ReportBase.
Definition at line 34 of file OptionalDownloadProgressReport.cc.
|
overridevirtual |
Reimplemented from zypp::media::DownloadProgressReport.
Definition at line 37 of file OptionalDownloadProgressReport.cc.
|
overridevirtual |
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 49 of file OptionalDownloadProgressReport.cc.
|
overridevirtual |
Reimplemented from zypp::media::DownloadProgressReport.
Definition at line 68 of file OptionalDownloadProgressReport.cc.
|
overridevirtual |
Reimplemented from zypp::media::DownloadProgressReport.
Definition at line 74 of file OptionalDownloadProgressReport.cc.
|
private |
Definition at line 80 of file OptionalDownloadProgressReport.cc.
|
private |
Definition at line 83 of file OptionalDownloadProgressReport.cc.
|
private |
Definition at line 55 of file OptionalDownloadProgressReport.h.
|
private |
Definition at line 56 of file OptionalDownloadProgressReport.h.
|
private |
Definition at line 57 of file OptionalDownloadProgressReport.h.
|
private |
Definition at line 58 of file OptionalDownloadProgressReport.h.
|
private |
Definition at line 59 of file OptionalDownloadProgressReport.h.