libzypp 17.37.10

zypp::ProvideFilePolicy Class Reference

Policy for provideFile and RepoMediaAccess. More...

`#include <zypp/ProvideFilePolicy.h>`

## Public Types
using | ProgressCB = function<bool (int)>
| 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

## Detailed Description

Policy for provideFile and RepoMediaAccess.

Provides callback hook for progress reporting and an optional FileCecker passed down to the Fetcher.

Definition at line 30 of file ProvideFilePolicy.h.

## Member Typedef Documentation

## ◆ ProgressCB

using zypp::ProvideFilePolicy::ProgressCB = function<bool (int)>

Progress callback signature.

Definition at line 34 of file ProvideFilePolicy.h.

## Member Function Documentation

## ◆ progressCB()

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

Set callback.

Definition at line 37 of file ProvideFilePolicy.h.

## ◆ progress()

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

Evaluate callback.

Definition at line 28 of file ProvideFilePolicy.cc.

## ◆ fileChecker() [1/2]

ProvideFilePolicy & zypp::ProvideFilePolicy::fileChecker | ( | FileChecker | fileChecker_r | ) |
| inline

Add a FileCecker passed down to the Fetcher.

Definition at line 45 of file ProvideFilePolicy.h.

## ◆ fileChecker() [2/2]

const FileChecker & zypp::ProvideFilePolicy::fileChecker | ( |  | ) | const
| inline

The FileCecker.

Definition at line 49 of file ProvideFilePolicy.h.

## Member Data Documentation

## ◆ _fileChecker

FileChecker zypp::ProvideFilePolicy::_fileChecker
| private

Definition at line 53 of file ProvideFilePolicy.h.

## ◆ _progressCB

ProgressCB zypp::ProvideFilePolicy::_progressCB
| private

Definition at line 54 of file ProvideFilePolicy.h.

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

- zypp/ProvideFilePolicy.h
- zypp/ProvideFilePolicy.cc