libzypp 17.37.17
|
#include <zypp/ZYppCallbacks.h>
Public Types | |
enum | Error { NO_ERROR , NOT_FOUND , IO , ACCESS_DENIED , ERROR } |
enum | Result { SUCCESS , MISS } |
Public Types inherited from zypp::callback::ReportBase | |
typedef callback::UserData | UserData |
typedef UserData::ContentType | ContentType |
Public Member Functions | |
virtual void | start (const UserData &userData=UserData()) |
virtual bool | progress (int value, const UserData &userData=UserData()) |
Overall Download progress. | |
virtual void | fileStart (const Pathname &localfile, const UserData &userData=UserData()) |
File just started to download. | |
virtual void | fileDone (const Pathname &localfile, Error error, const UserData &userData=UserData()) |
File finished to download, Error indicated if it was successful for not. | |
virtual void | finish (Result res, const UserData &userData=UserData()) |
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 407 of file ZYppCallbacks.h.
Enumerator | |
---|---|
NO_ERROR | |
NOT_FOUND | |
IO | |
ACCESS_DENIED | |
ERROR |
Definition at line 409 of file ZYppCallbacks.h.
Enumerator | |
---|---|
SUCCESS | |
MISS |
Definition at line 462 of file ZYppCallbacks.h.
|
inlinevirtual |
Prefetch of all files has started
Definition at line 420 of file ZYppCallbacks.h.
|
inlinevirtual |
Overall Download progress.
value | Percentage value. |
Userdata sent:
dbps_avg | Average download rate so far. (type: double) (optional) |
dbps_current | Current download (cca last 1 sec). (type: double) (optional) |
bytesReceived | Already received bytes (type: double) (optional) |
bytesRequired | Bytes we need to download (type: double) (optional) |
Definition at line 433 of file ZYppCallbacks.h.
|
inlinevirtual |
|
inlinevirtual |
Prefetch finished
Definition at line 470 of file ZYppCallbacks.h.