libzypp 17.31.23
|
Policy for provideFile and RepoMediaAccess. More...
#include <ProvideFilePolicy.h>
Public Types | |
typedef function< bool(int)> | ProgressCB |
Progress callback signature. | |
Public Member Functions | |
ProvideFilePolicy & | progressCB (ProgressCB progressCB_r) |
Set callback. | |
bool | progress (int value) const |
Evaluate callback. | |
ProvideFilePolicy & | fileChecker (FileChecker fileChecker_r) |
Add a FileCecker passed down to the Fetcher. | |
const FileChecker & | fileChecker () const |
The FileCecker. | |
Private Attributes | |
FileChecker | _fileChecker |
ProgressCB | _progressCB |
Policy for provideFile and RepoMediaAccess.
Provides callback hook for progress reporting and an optional FileCecker passed down to the Fetcher.
Definition at line 29 of file ProvideFilePolicy.h.
typedef function<bool ( int )> zypp::ProvideFilePolicy::ProgressCB |
Progress callback signature.
Definition at line 33 of file ProvideFilePolicy.h.
|
inline |
Set callback.
Definition at line 36 of file ProvideFilePolicy.h.
bool zypp::ProvideFilePolicy::progress | ( | int | value | ) | const |
Evaluate callback.
Definition at line 28 of file ProvideFilePolicy.cc.
|
inline |
Add a FileCecker passed down to the Fetcher.
Definition at line 44 of file ProvideFilePolicy.h.
|
inline |
The FileCecker.
Definition at line 48 of file ProvideFilePolicy.h.
|
private |
Definition at line 52 of file ProvideFilePolicy.h.
|
private |
Definition at line 53 of file ProvideFilePolicy.h.