libzypp  13.10.6
zypp::CleanEmptyLocksReport Struct Reference

Callback for cleaning locks which doesn't lock anything in pool. More...

#include <ZYppCallbacks.h>

Inheritance diagram for zypp::CleanEmptyLocksReport:
zypp::callback::ReportBase

Public Types

enum  Action { ABORT, DELETE, IGNORE }
 action performed by cleaning api to specific lock More...
 
enum  Error { NO_ERROR, ABORTED }
 result of cleaning More...
 

Public Member Functions

virtual void start ()
 cleaning is started More...
 
virtual bool progress (int)
 progress of cleaning specifies in percents More...
 
virtual Action execute (const PoolQuery &)
 When find empty lock ask what to do with it. More...
 
virtual void finish (Error)
 cleaning is done More...
 
- Public Member Functions inherited from zypp::callback::ReportBase
virtual ~ReportBase ()
 

Detailed Description

Callback for cleaning locks which doesn't lock anything in pool.

Definition at line 612 of file ZYppCallbacks.h.

Member Enumeration Documentation

action performed by cleaning api to specific lock

Enumerator
ABORT 

abort and return error

DELETE 

delete empty lock

IGNORE 

skip empty lock

Definition at line 617 of file ZYppCallbacks.h.

result of cleaning

Enumerator
NO_ERROR 

no problem

ABORTED 

cleaning aborted by user

Definition at line 626 of file ZYppCallbacks.h.

Member Function Documentation

virtual void zypp::CleanEmptyLocksReport::start ( )
inlinevirtual

cleaning is started

Definition at line 634 of file ZYppCallbacks.h.

virtual bool zypp::CleanEmptyLocksReport::progress ( int  )
inlinevirtual

progress of cleaning specifies in percents

Returns
if continue

Definition at line 641 of file ZYppCallbacks.h.

virtual Action zypp::CleanEmptyLocksReport::execute ( const PoolQuery )
inlinevirtual

When find empty lock ask what to do with it.

Returns
action

Definition at line 648 of file ZYppCallbacks.h.

virtual void zypp::CleanEmptyLocksReport::finish ( Error  )
inlinevirtual

cleaning is done

Definition at line 655 of file ZYppCallbacks.h.


The documentation for this struct was generated from the following file: