libzypp  17.3.0
zypp::ProvideFilePolicy Class Reference

Policy for provideFile. More...

#include <ProvideFilePolicy.h>

Public Types

typedef function< bool(int)> ProgressCB
 Progress callback signature. More...
typedef function< bool()> FailOnChecksumErrorCB
 Legacy to remain bincompat. More...

Public Member Functions

ProvideFilePolicyprogressCB (ProgressCB progressCB_r)
 Set callback. More...
bool progress (int value) const
 Evaluate callback. More...

Private Attributes

FailOnChecksumErrorCB _failOnChecksumErrorCB
 Legacy to remain bincompat. More...
ProgressCB _progressCB

Detailed Description

Policy for provideFile.

Provides callback hook for progress reporting.

Definition at line 27 of file ProvideFilePolicy.h.

Member Typedef Documentation

◆ ProgressCB

typedef function<bool ( int )> zypp::ProvideFilePolicy::ProgressCB

Progress callback signature.

Definition at line 31 of file ProvideFilePolicy.h.

◆ FailOnChecksumErrorCB

Legacy to remain bincompat.

Definition at line 41 of file ProvideFilePolicy.h.

Member Function Documentation

◆ progressCB()

ProvideFilePolicy& zypp::ProvideFilePolicy::progressCB ( ProgressCB  progressCB_r)

Set callback.

Definition at line 34 of file ProvideFilePolicy.h.

◆ progress()

bool zypp::ProvideFilePolicy::progress ( int  value) const

Evaluate callback.

Definition at line 28 of file

Member Data Documentation

◆ _failOnChecksumErrorCB

FailOnChecksumErrorCB zypp::ProvideFilePolicy::_failOnChecksumErrorCB

Legacy to remain bincompat.

Definition at line 43 of file ProvideFilePolicy.h.

◆ _progressCB

ProgressCB zypp::ProvideFilePolicy::_progressCB

Definition at line 44 of file ProvideFilePolicy.h.

The documentation for this class was generated from the following files: