libzypp 17.31.23
|
#include <ZYppCallbacks.h>
Public Types | |
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 | |
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 () |
Definition at line 359 of file ZYppCallbacks.h.
Enumerator | |
---|---|
ABORT | |
RETRY | |
IGNORE |
Definition at line 361 of file ZYppCallbacks.h.
Enumerator | |
---|---|
NO_ERROR | |
NOT_FOUND | |
IO | |
ACCESS_DENIED | |
ERROR |
Definition at line 367 of file ZYppCallbacks.h.
Definition at line 375 of file ZYppCallbacks.h.
|
inlinevirtual |
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 in internal::OptionalDownloadProgressReport.
Definition at line 385 of file ZYppCallbacks.h.
|
inlinevirtual |
Reimplemented in internal::OptionalDownloadProgressReport.
Definition at line 390 of file ZYppCallbacks.h.
|
inlinevirtual |
Reimplemented in internal::OptionalDownloadProgressReport.
Definition at line 396 of file ZYppCallbacks.h.