libzypp
10.5.0
|
#include <ZYppCallbacks.h>
Public Types | |
enum | Action { ABORT, RETRY, IGNORE } |
enum | Error { NO_ERROR, NOT_FOUND, IO, ACCESS_DENIED, ERROR } |
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 &) |
Definition at line 325 of file ZYppCallbacks.h.
Definition at line 327 of file ZYppCallbacks.h.
Definition at line 333 of file ZYppCallbacks.h.
virtual void zypp::media::DownloadProgressReport::start | ( | const Url & | , |
Pathname | |||
) | [inline, virtual] |
Definition at line 341 of file ZYppCallbacks.h.
virtual bool zypp::media::DownloadProgressReport::progress | ( | int | , |
const Url & | , | ||
double | dbps_avg = -1 , |
||
double | dbps_current = -1 |
||
) | [inline, virtual] |
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. |
Definition at line 351 of file ZYppCallbacks.h.
virtual Action zypp::media::DownloadProgressReport::problem | ( | const Url & | , |
Error | , | ||
const std::string & | |||
) | [inline, virtual] |
Definition at line 356 of file ZYppCallbacks.h.
virtual void zypp::media::DownloadProgressReport::finish | ( | const Url & | , |
Error | , | ||
const std::string & | |||
) | [inline, virtual] |
Definition at line 362 of file ZYppCallbacks.h.