libzypp  13.10.6
zypp::SavingLocksReport Struct Reference

this callback handles merging old locks with newly added or removed More...

#include <ZYppCallbacks.h>

Inheritance diagram for zypp::SavingLocksReport:
zypp::callback::ReportBase

Public Types

enum  Action { ABORT, DELETE, IGNORE }
 action for old lock which is in conflict More...
 
enum  Error { NO_ERROR, ABORTED }
 result of merging More...
 
enum  ConflictState { SAME_RESULTS, INTERSECT }
 type of conflict of old and new lock More...
 

Public Member Functions

virtual void start ()
 
virtual bool progress ()
 merging still live More...
 
virtual Action conflict (const PoolQuery &, ConflictState)
 When user unlock something which is locked by non-identical query. More...
 
virtual void finish (Error)
 
- Public Member Functions inherited from zypp::callback::ReportBase
virtual ~ReportBase ()
 

Detailed Description

this callback handles merging old locks with newly added or removed

Definition at line 664 of file ZYppCallbacks.h.

Member Enumeration Documentation

action for old lock which is in conflict

See Also
ConflictState
Enumerator
ABORT 

abort and return error

DELETE 

delete conflicted lock

IGNORE 

skip conflict lock

Definition at line 670 of file ZYppCallbacks.h.

result of merging

Enumerator
NO_ERROR 

no problem

ABORTED 

cleaning aborted by user

Definition at line 679 of file ZYppCallbacks.h.

type of conflict of old and new lock

Enumerator
SAME_RESULTS 

locks lock same item in pool but his parameters is different

INTERSECT 

locks lock some file and unlocking lock unlock only part of iti, so removing old lock can unlock more items in pool

Definition at line 687 of file ZYppCallbacks.h.

Member Function Documentation

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

Definition at line 693 of file ZYppCallbacks.h.

virtual bool zypp::SavingLocksReport::progress ( )
inlinevirtual

merging still live

Returns
if continue

Definition at line 699 of file ZYppCallbacks.h.

virtual Action zypp::SavingLocksReport::conflict ( const PoolQuery ,
ConflictState   
)
inlinevirtual

When user unlock something which is locked by non-identical query.

Definition at line 705 of file ZYppCallbacks.h.

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

Definition at line 710 of file ZYppCallbacks.h.


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