zypp::resstatus::UserLockQueryManip Struct Reference

Manipulator for ResStatus::UserLockQueryField. More...

#include <PoolImpl.h>

List of all members.

Static Public Member Functions

static void setLock (ResStatus &status_r, bool yesno_r)
 Set lock and UserLockQuery bit according to yesno_r.
static void reapplyLock (ResStatus &status_r, bool yesno_r)
 Update lock and UserLockQuery bit IFF the item gained the bit.
static int diffLock (const ResStatus &status_r)
 Test whether the lock status differs from the remembered UserLockQuery bit.


Detailed Description

Manipulator for ResStatus::UserLockQueryField.

Field is not public available. It is intended to remember the initial lock status usually derived from /etc/zypp/locks. So we are able to detect changes we have to write back on commit.

Definition at line 42 of file PoolImpl.h.


Member Function Documentation

static void zypp::resstatus::UserLockQueryManip::setLock ( ResStatus status_r,
bool  yesno_r 
) [inline, static]

Set lock and UserLockQuery bit according to yesno_r.

Definition at line 45 of file PoolImpl.h.

References zypp::ResStatus::setLock(), zypp::ResStatus::setUserLockQueryMatch(), and zypp::ResStatus::USER.

Referenced by zypp::pool::PoolImpl::setHardLockQueries().

static void zypp::resstatus::UserLockQueryManip::reapplyLock ( ResStatus status_r,
bool  yesno_r 
) [inline, static]

Update lock and UserLockQuery bit IFF the item gained the bit.

Definition at line 52 of file PoolImpl.h.

References zypp::ResStatus::isUserLockQueryMatch(), zypp::ResStatus::setLock(), zypp::ResStatus::setUserLockQueryMatch(), and zypp::ResStatus::USER.

Referenced by zypp::pool::PoolImpl::reapplyHardLocks().

static int zypp::resstatus::UserLockQueryManip::diffLock ( const ResStatus status_r  )  [inline, static]

Test whether the lock status differs from the remembered UserLockQuery bit.

Definition at line 62 of file PoolImpl.h.

References zypp::ResStatus::isUserLocked(), and zypp::ResStatus::isUserLockQueryMatch().

Referenced by zypp::pool::PoolImpl::getHardLockQueries().


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

doxygen