libzypp 17.31.1
zypp::ProvideFilePolicy Class Reference

Policy for provideFile and RepoMediaAccess. More...

#include <ProvideFilePolicy.h>

Public Types

typedef function< bool(int)> ProgressCB
 Progress callback signature. More...

Public Member Functions

ProvideFilePolicyprogressCB (ProgressCB progressCB_r)
 Set callback. More...
bool progress (int value) const
 Evaluate callback. More...
ProvideFilePolicyfileChecker (FileChecker fileChecker_r)
 Add a FileCecker passed down to the Fetcher. More...
const FileCheckerfileChecker () const
 The FileCecker. More...

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 29 of file ProvideFilePolicy.h.

Member Typedef Documentation

◆ ProgressCB

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

Progress callback signature.

Definition at line 33 of file ProvideFilePolicy.h.

Member Function Documentation

◆ progressCB()

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

Set callback.

Definition at line 36 of file ProvideFilePolicy.h.

◆ progress()

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

Evaluate callback.

Definition at line 28 of file

◆ fileChecker() [1/2]

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

Add a FileCecker passed down to the Fetcher.

Definition at line 44 of file ProvideFilePolicy.h.

◆ fileChecker() [2/2]

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

The FileCecker.

Definition at line 48 of file ProvideFilePolicy.h.

Member Data Documentation

◆ _fileChecker

FileChecker zypp::ProvideFilePolicy::_fileChecker

Definition at line 52 of file ProvideFilePolicy.h.

◆ _progressCB

ProgressCB zypp::ProvideFilePolicy::_progressCB

Definition at line 53 of file ProvideFilePolicy.h.

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