libzypp  17.1.1
zypp::SavingLocksReport Struct Reference

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

#include <ZYppCallbacks.h>

Inheritance diagram for zypp::SavingLocksReport:

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 Types inherited from zypp::callback::ReportBase
typedef callback::UserData UserData
 
typedef UserData::ContentType ContentType
 

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 void report (const UserData &userData_r=UserData())
 The most generic way of sending/receiving data. More...
 
virtual ~ReportBase ()
 

Detailed Description

this callback handles merging old locks with newly added or removed

Definition at line 733 of file ZYppCallbacks.h.

Member Enumeration Documentation

◆ Action

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 739 of file ZYppCallbacks.h.

◆ Error

result of merging

Enumerator
NO_ERROR 

no problem

ABORTED 

cleaning aborted by user

Definition at line 748 of file ZYppCallbacks.h.

◆ ConflictState

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 756 of file ZYppCallbacks.h.

Member Function Documentation

◆ start()

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

Definition at line 762 of file ZYppCallbacks.h.

◆ progress()

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

merging still live

Returns
if continue

Definition at line 768 of file ZYppCallbacks.h.

◆ conflict()

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

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

Definition at line 774 of file ZYppCallbacks.h.

◆ finish()

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

Definition at line 779 of file ZYppCallbacks.h.


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