libzypp  17.5.0
zypp::ResStatus Class Reference

Status bitfield. More...

#include <ResStatus.h>

Public Types

Status values.

Each enum corresponds to a BitField range.

Note
Take care that enumerator values actually fit into the corresponding field. It's not yet checked by the compiler.
enum  StateValue { UNINSTALLED = bit::RangeValue<StateField,0>::value, INSTALLED = bit::RangeValue<StateField,1>::value }
 
enum  ValidateValue { UNDETERMINED = bit::RangeValue<ValidateField,0>::value, BROKEN = bit::RangeValue<ValidateField,1>::value, SATISFIED = bit::RangeValue<ValidateField,2>::value, NONRELEVANT = bit::RangeValue<ValidateField,3>::value }
 
enum  TransactValue { KEEP_STATE = bit::RangeValue<TransactField,0>::value, LOCKED = bit::RangeValue<TransactField,1>::value, TRANSACT = bit::RangeValue<TransactField,2>::value }
 
enum  TransactByValue { SOLVER = bit::RangeValue<TransactByField,0>::value, APPL_LOW = bit::RangeValue<TransactByField,1>::value, APPL_HIGH = bit::RangeValue<TransactByField,2>::value, USER = bit::RangeValue<TransactByField,3>::value }
 
enum  DetailValue { NO_DETAIL = bit::RangeValue<TransactDetailField,0>::value }
 
enum  InstallDetailValue { EXPLICIT_INSTALL = bit::RangeValue<TransactDetailField,0>::value, SOFT_INSTALL = bit::RangeValue<TransactDetailField,1>::value }
 
enum  RemoveDetailValue { EXPLICIT_REMOVE = bit::RangeValue<TransactDetailField,0>::value, SOFT_REMOVE = bit::RangeValue<TransactDetailField,1>::value, DUE_TO_OBSOLETE = bit::RangeValue<TransactDetailField,2>::value, DUE_TO_UPGRADE = bit::RangeValue<TransactDetailField,3>::value }
 
enum  LicenceConfirmedValue { LICENCE_UNCONFIRMED = bit::RangeValue<LicenceConfirmedField,0>::value, LICENCE_CONFIRMED = bit::RangeValue<LicenceConfirmedField,1>::value }
 
enum  WeakValue {
  NO_WEAK = bit::RangeValue<WeakField,0>::value, SUGGESTED = bit::RangeValue<WeakField,1<<0>::value, RECOMMENDED = bit::RangeValue<WeakField,1<<1>::value, ORPHANED = bit::RangeValue<WeakField,1<<2>::value,
  UNNEEDED = bit::RangeValue<WeakField,1<<3>::value
}
 
enum  UserLockQuery { USERLOCK_NOMATCH = bit::RangeValue<UserLockQueryField,0>::value, USERLOCK_MATCH = bit::RangeValue<UserLockQueryField,1>::value }
 
BitField range definitions.
Note
Enlarge FieldType if more bit's needed. It's not yet checked by the compiler.
typedef uint16_t FieldType
 
typedef bit::BitField< FieldTypeBitFieldType
 
typedef bit::Range< FieldType, 0, 1 > StateField
 
typedef bit::Range< FieldType, StateField::end, 2 > ValidateField
 
typedef bit::Range< FieldType, ValidateField::end, 2 > TransactField
 
typedef bit::Range< FieldType, TransactField::end, 2 > TransactByField
 
typedef bit::Range< FieldType, TransactByField::end, 2 > TransactDetailField
 
typedef bit::Range< FieldType, TransactDetailField::end, 1 > LicenceConfirmedField
 
typedef bit::Range< FieldType, LicenceConfirmedField::end, 4 > WeakField
 
typedef bit::Range< FieldType, WeakField::end, 1 > UserLockQueryField
 

Public Member Functions

 ResStatus ()
 Default ctor. More...
 
 ResStatus (bool isInstalled_r)
 Ctor setting the initial . More...
 
 ~ResStatus ()
 Dtor. More...
 
BitFieldType bitfield () const
 Debug helper returning the bitfield. More...
 
bool isLicenceConfirmed () const
 
void setLicenceConfirmed (bool toVal_r=true)
 
bool isRecommended () const
 
bool isSuggested () const
 
bool isOrphaned () const
 
bool isUnneeded () const
 
bool hasWeak () const
 
void resetWeak ()
 
void setRecommended (bool toVal_r=true)
 
void setSuggested (bool toVal_r=true)
 
void setOrphaned (bool toVal_r=true)
 
void setUnneeded (bool toVal_r=true)
 
ValidateValue validate () const
 
bool isUndetermined () const
 
bool isSatisfied () const
 
bool isBroken () const
 
bool isNonRelevant () const
 
bool isInstalled () const
 
bool isUninstalled () const
 
bool staysInstalled () const
 
bool wasInstalled () const
 
bool isToBeInstalled () const
 
bool staysUninstalled () const
 
bool wasUninstalled () const
 
bool isToBeUninstalled () const
 
bool isLocked () const
 
bool isUserLocked () const
 
bool isSoftLocked () const
 
bool isKept () const
 
bool transacts () const
 
TransactValue getTransactValue () const
 
bool onSystem () const
 True if would be on system after commit. More...
 
bool offSystem () const
 True if would be off system after commit. More...
 
bool isBySolver () const
 
bool isByApplLow () const
 
bool isByApplHigh () const
 
bool isByUser () const
 
TransactByValue getTransactByValue () const
 
bool setTransactByValue (TransactByValue causer)
 
bool isToBeUninstalledDueToObsolete () const
 
bool isToBeUninstalledDueToUpgrade () const
 
bool isToBeInstalledSoft () const
 
bool isToBeInstalledNotSoft () const
 
bool isToBeUninstalledSoft () const
 
bool setTransactValue (TransactValue newVal_r, TransactByValue causer_r)
 Set TransactValue. More...
 
bool maySetTransactValue (TransactValue newVal_r, TransactByValue causer_r)
 
bool setLock (bool toLock_r, TransactByValue causer_r)
 Apply a lock (prevent transaction). More...
 
bool maySetLock (bool to_r, TransactByValue causer_r)
 
bool setTransact (bool toTansact_r, TransactByValue causer_r)
 Toggle between TRANSACT and KEEP_STATE. More...
 
bool maySetTransact (bool val_r, TransactByValue causer)
 
bool setSoftLock (TransactByValue causer_r)
 
bool resetTransact (TransactByValue causer_r)
 Not the same as setTransact( false ). More...
 
bool setSoftTransact (bool toTansact_r, TransactByValue causer_r, TransactByValue causerLimit_r)
 Soft toggle between TRANSACT and KEEP_STATE. More...
 
bool setSoftTransact (bool toTansact_r, TransactByValue causer_r)
 
bool maySetSoftTransact (bool val_r, TransactByValue causer, TransactByValue causerLimit_r)
 
bool maySetSoftTransact (bool val_r, TransactByValue causer)
 
bool setToBeInstalled (TransactByValue causer)
 
bool maySetToBeInstalled (TransactByValue causer)
 
bool setToBeUninstalled (TransactByValue causer)
 
bool maySetToBeUninstalled (TransactByValue causer)
 
bool setToBeUninstalledDueToObsolete ()
 
bool setToBeUninstalledDueToUpgrade (TransactByValue causer)
 
bool setToBeInstalledSoft ()
 
bool setToBeUninstalledSoft ()
 
bool maySetToBeUninstalledSoft ()
 
bool isSoftInstall ()
 
bool isSoftUninstall ()
 
bool setSoftInstall (bool flag)
 
bool setSoftUninstall (bool flag)
 
bool setUndetermined ()
 
bool setSatisfied ()
 
bool setBroken ()
 
bool setNonRelevant ()
 
bool setStatus (ResStatus newStatus_r)
 

Static Public Attributes

Builtin ResStatus constants.
static const ResStatus toBeInstalled
 
static const ResStatus toBeUninstalled
 
static const ResStatus toBeUninstalledDueToUpgrade
 
static const ResStatus toBeUninstalledDueToObsolete
 

Private Member Functions

 ResStatus (StateValue s, ValidateValue v=UNDETERMINED, TransactValue t=KEEP_STATE, InstallDetailValue i=EXPLICIT_INSTALL, RemoveDetailValue r=EXPLICIT_REMOVE)
 Ctor for intialization of builtin constants. More...
 
template<class TField >
bool fieldValueIs (FieldType val_r) const
 Return whether the corresponding Field has value val_r. More...
 
template<class TField >
void fieldValueAssign (FieldType val_r)
 Set the corresponding Field to value val_r. More...
 
template<class TField >
bool isGreaterThan (FieldType val_r)
 compare two values. More...
 
template<class TField >
bool isLessThan (FieldType val_r)
 

Private Attributes

BitFieldType _bitfield
 

Friends

class resstatus::StatusBackup
 
std::ostream & operator<< (std::ostream &str, const ResStatus &obj)
 
bool operator== (const ResStatus &lhs, const ResStatus &rhs)
 

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &str, const ResStatus &obj)
 
std::ostream & operator<< (std::ostream &str, ResStatus::TransactValue obj)
 
std::ostream & operator<< (std::ostream &str, ResStatus::TransactByValue obj)
 
bool operator== (const ResStatus &lhs, const ResStatus &rhs)
 
bool operator!= (const ResStatus &lhs, const ResStatus &rhs)
 

Internal hard lock maintainance

class resstatus::UserLockQueryManip
 
bool isUserLockQueryMatch () const
 
void setUserLockQueryMatch (bool match_r)
 

Detailed Description

Status bitfield.

  • StateField Whether the resolvable is or uninstalled (available).
  • ValidateField Validate status computed by the solver as nonrelevant: it is unimportant for the user satisfied: it important nothing has to be done broken: it is incomplete. So e.g. an update is needed
  • TransactField Whether to transact this resolvable (delete if installed install if uninstalled). In case the resolvable is locked, only USER may modify the transact bit.
  • TransactByField Who triggered the transaction. Transaction bit may be reset by higer levels only.
  • TransactDetailField Reason why the Resolvable transacts. Splitted into InstallDetailValue and RemoveDetailValue dependent on the kind of transaction.
  • WeakField The solvable will be recommended/suggested by a to be installed/deleted solvable.

Definition at line 53 of file ResStatus.h.

Member Typedef Documentation

◆ FieldType

typedef uint16_t zypp::ResStatus::FieldType

Definition at line 65 of file ResStatus.h.

◆ BitFieldType

Definition at line 66 of file ResStatus.h.

◆ StateField

Definition at line 68 of file ResStatus.h.

◆ ValidateField

◆ TransactField

◆ TransactByField

◆ TransactDetailField

◆ LicenceConfirmedField

◆ WeakField

◆ UserLockQueryField

Member Enumeration Documentation

◆ StateValue

Enumerator
UNINSTALLED 
INSTALLED 

Definition at line 88 of file ResStatus.h.

◆ ValidateValue

Enumerator
UNDETERMINED 
BROKEN 
SATISFIED 
NONRELEVANT 

Definition at line 93 of file ResStatus.h.

◆ TransactValue

Enumerator
KEEP_STATE 
LOCKED 
TRANSACT 

Definition at line 100 of file ResStatus.h.

◆ TransactByValue

Enumerator
SOLVER 
APPL_LOW 
APPL_HIGH 
USER 

Definition at line 106 of file ResStatus.h.

◆ DetailValue

Enumerator
NO_DETAIL 

Detail for no transact, i.e.

reset any Install/RemoveDetailValue.

Definition at line 114 of file ResStatus.h.

◆ InstallDetailValue

Enumerator
EXPLICIT_INSTALL 
SOFT_INSTALL 

Definition at line 119 of file ResStatus.h.

◆ RemoveDetailValue

Enumerator
EXPLICIT_REMOVE 
SOFT_REMOVE 
DUE_TO_OBSOLETE 
DUE_TO_UPGRADE 

Definition at line 124 of file ResStatus.h.

◆ LicenceConfirmedValue

Enumerator
LICENCE_UNCONFIRMED 
LICENCE_CONFIRMED 

Definition at line 132 of file ResStatus.h.

◆ WeakValue

Enumerator
NO_WEAK 
SUGGESTED 
RECOMMENDED 
ORPHANED 
UNNEEDED 

Definition at line 138 of file ResStatus.h.

◆ UserLockQuery

Enumerator
USERLOCK_NOMATCH 
USERLOCK_MATCH 

Definition at line 147 of file ResStatus.h.

Constructor & Destructor Documentation

◆ ResStatus() [1/3]

zypp::ResStatus::ResStatus ( )

Default ctor.

Definition at line 33 of file ResStatus.cc.

◆ ResStatus() [2/3]

zypp::ResStatus::ResStatus ( bool  isInstalled_r)

Ctor setting the initial .

Definition at line 41 of file ResStatus.cc.

◆ ~ResStatus()

zypp::ResStatus::~ResStatus ( )

Dtor.

Definition at line 50 of file ResStatus.cc.

◆ ResStatus() [3/3]

zypp::ResStatus::ResStatus ( StateValue  s,
ValidateValue  v = UNDETERMINED,
TransactValue  t = KEEP_STATE,
InstallDetailValue  i = EXPLICIT_INSTALL,
RemoveDetailValue  r = EXPLICIT_REMOVE 
)
private

Ctor for intialization of builtin constants.

Definition at line 54 of file ResStatus.cc.

Member Function Documentation

◆ bitfield()

BitFieldType zypp::ResStatus::bitfield ( ) const
inline

Debug helper returning the bitfield.

It's save to expose the bitfield, as it can't be used to recreate a ResStatus. So it is not possible to bypass transition rules.

Definition at line 170 of file ResStatus.h.

◆ isLicenceConfirmed()

bool zypp::ResStatus::isLicenceConfirmed ( ) const
inline

Definition at line 175 of file ResStatus.h.

◆ setLicenceConfirmed()

void zypp::ResStatus::setLicenceConfirmed ( bool  toVal_r = true)
inline

Definition at line 178 of file ResStatus.h.

◆ isRecommended()

bool zypp::ResStatus::isRecommended ( ) const
inline

Definition at line 182 of file ResStatus.h.

◆ isSuggested()

bool zypp::ResStatus::isSuggested ( ) const
inline

Definition at line 185 of file ResStatus.h.

◆ isOrphaned()

bool zypp::ResStatus::isOrphaned ( ) const
inline

Definition at line 188 of file ResStatus.h.

◆ isUnneeded()

bool zypp::ResStatus::isUnneeded ( ) const
inline

Definition at line 191 of file ResStatus.h.

◆ hasWeak()

bool zypp::ResStatus::hasWeak ( ) const
inline

Definition at line 194 of file ResStatus.h.

◆ resetWeak()

void zypp::ResStatus::resetWeak ( )
inline

Definition at line 197 of file ResStatus.h.

◆ setRecommended()

void zypp::ResStatus::setRecommended ( bool  toVal_r = true)
inline

Definition at line 200 of file ResStatus.h.

◆ setSuggested()

void zypp::ResStatus::setSuggested ( bool  toVal_r = true)
inline

Definition at line 203 of file ResStatus.h.

◆ setOrphaned()

void zypp::ResStatus::setOrphaned ( bool  toVal_r = true)
inline

Definition at line 206 of file ResStatus.h.

◆ setUnneeded()

void zypp::ResStatus::setUnneeded ( bool  toVal_r = true)
inline

Definition at line 209 of file ResStatus.h.

◆ validate()

ValidateValue zypp::ResStatus::validate ( ) const
inline

Definition at line 213 of file ResStatus.h.

◆ isUndetermined()

bool zypp::ResStatus::isUndetermined ( ) const
inline

Definition at line 216 of file ResStatus.h.

◆ isSatisfied()

bool zypp::ResStatus::isSatisfied ( ) const
inline

Definition at line 219 of file ResStatus.h.

◆ isBroken()

bool zypp::ResStatus::isBroken ( ) const
inline

Definition at line 222 of file ResStatus.h.

◆ isNonRelevant()

bool zypp::ResStatus::isNonRelevant ( ) const
inline

Definition at line 225 of file ResStatus.h.

◆ isInstalled()

bool zypp::ResStatus::isInstalled ( ) const
inline

Definition at line 231 of file ResStatus.h.

◆ isUninstalled()

bool zypp::ResStatus::isUninstalled ( ) const
inline

Definition at line 234 of file ResStatus.h.

◆ staysInstalled()

bool zypp::ResStatus::staysInstalled ( ) const
inline

Definition at line 239 of file ResStatus.h.

◆ wasInstalled()

bool zypp::ResStatus::wasInstalled ( ) const
inline

Definition at line 242 of file ResStatus.h.

◆ isToBeInstalled()

bool zypp::ResStatus::isToBeInstalled ( ) const
inline

Definition at line 244 of file ResStatus.h.

◆ staysUninstalled()

bool zypp::ResStatus::staysUninstalled ( ) const
inline

Definition at line 247 of file ResStatus.h.

◆ wasUninstalled()

bool zypp::ResStatus::wasUninstalled ( ) const
inline

Definition at line 250 of file ResStatus.h.

◆ isToBeUninstalled()

bool zypp::ResStatus::isToBeUninstalled ( ) const
inline

Definition at line 252 of file ResStatus.h.

◆ isLocked()

bool zypp::ResStatus::isLocked ( ) const
inline

Definition at line 255 of file ResStatus.h.

◆ isUserLocked()

bool zypp::ResStatus::isUserLocked ( ) const
inline

Definition at line 258 of file ResStatus.h.

◆ isSoftLocked()

bool zypp::ResStatus::isSoftLocked ( ) const
inline

Definition at line 261 of file ResStatus.h.

◆ isKept()

bool zypp::ResStatus::isKept ( ) const
inline

Definition at line 264 of file ResStatus.h.

◆ transacts()

bool zypp::ResStatus::transacts ( ) const
inline

Definition at line 267 of file ResStatus.h.

◆ getTransactValue()

TransactValue zypp::ResStatus::getTransactValue ( ) const
inline

Definition at line 270 of file ResStatus.h.

◆ onSystem()

bool zypp::ResStatus::onSystem ( ) const
inline

True if would be on system after commit.

Definition at line 274 of file ResStatus.h.

◆ offSystem()

bool zypp::ResStatus::offSystem ( ) const
inline

True if would be off system after commit.

Definition at line 278 of file ResStatus.h.

◆ isBySolver()

bool zypp::ResStatus::isBySolver ( ) const
inline

Definition at line 281 of file ResStatus.h.

◆ isByApplLow()

bool zypp::ResStatus::isByApplLow ( ) const
inline

Definition at line 284 of file ResStatus.h.

◆ isByApplHigh()

bool zypp::ResStatus::isByApplHigh ( ) const
inline

Definition at line 287 of file ResStatus.h.

◆ isByUser()

bool zypp::ResStatus::isByUser ( ) const
inline

Definition at line 290 of file ResStatus.h.

◆ getTransactByValue()

TransactByValue zypp::ResStatus::getTransactByValue ( ) const
inline

Definition at line 293 of file ResStatus.h.

◆ setTransactByValue()

bool zypp::ResStatus::setTransactByValue ( TransactByValue  causer)
inline

Definition at line 296 of file ResStatus.h.

◆ isToBeUninstalledDueToObsolete()

bool zypp::ResStatus::isToBeUninstalledDueToObsolete ( ) const
inline

Definition at line 306 of file ResStatus.h.

◆ isToBeUninstalledDueToUpgrade()

bool zypp::ResStatus::isToBeUninstalledDueToUpgrade ( ) const
inline

Definition at line 309 of file ResStatus.h.

◆ isToBeInstalledSoft()

bool zypp::ResStatus::isToBeInstalledSoft ( ) const
inline

Definition at line 312 of file ResStatus.h.

◆ isToBeInstalledNotSoft()

bool zypp::ResStatus::isToBeInstalledNotSoft ( ) const
inline

Definition at line 315 of file ResStatus.h.

◆ isToBeUninstalledSoft()

bool zypp::ResStatus::isToBeUninstalledSoft ( ) const
inline

Definition at line 318 of file ResStatus.h.

◆ isUserLockQueryMatch()

bool zypp::ResStatus::isUserLockQueryMatch ( ) const
inlineprivate

Definition at line 327 of file ResStatus.h.

◆ setUserLockQueryMatch()

void zypp::ResStatus::setUserLockQueryMatch ( bool  match_r)
inlineprivate

Definition at line 330 of file ResStatus.h.

◆ setTransactValue()

bool zypp::ResStatus::setTransactValue ( TransactValue  newVal_r,
TransactByValue  causer_r 
)
inline

Set TransactValue.

Convenience to set TransactValue from enum.

Definition at line 349 of file ResStatus.h.

◆ maySetTransactValue()

bool zypp::ResStatus::maySetTransactValue ( TransactValue  newVal_r,
TransactByValue  causer_r 
)
inline

Definition at line 366 of file ResStatus.h.

◆ setLock()

bool zypp::ResStatus::setLock ( bool  toLock_r,
TransactByValue  causer_r 
)
inline

Apply a lock (prevent transaction).

Currently by USER or APPL_HIGH only, but who knows... Set LOCKED from KEEP_STATE to be shure all transaction details were reset properly.

Definition at line 379 of file ResStatus.h.

◆ maySetLock()

bool zypp::ResStatus::maySetLock ( bool  to_r,
TransactByValue  causer_r 
)
inline

Definition at line 411 of file ResStatus.h.

◆ setTransact()

bool zypp::ResStatus::setTransact ( bool  toTansact_r,
TransactByValue  causer_r 
)
inline

Toggle between TRANSACT and KEEP_STATE.

LOCKED state means KEEP_STATE. But in contrary to KEEP_STATE, LOCKED state is immutable for causer_r less than TransactByValue. KEEP_STATE may be canged by any causer_r.

Definition at line 424 of file ResStatus.h.

◆ maySetTransact()

bool zypp::ResStatus::maySetTransact ( bool  val_r,
TransactByValue  causer 
)
inline

Definition at line 455 of file ResStatus.h.

◆ setSoftLock()

bool zypp::ResStatus::setSoftLock ( TransactByValue  causer_r)
inline

Definition at line 464 of file ResStatus.h.

◆ resetTransact()

bool zypp::ResStatus::resetTransact ( TransactByValue  causer_r)
inline

Not the same as setTransact( false ).

Definition at line 476 of file ResStatus.h.

◆ setSoftTransact() [1/2]

bool zypp::ResStatus::setSoftTransact ( bool  toTansact_r,
TransactByValue  causer_r,
TransactByValue  causerLimit_r 
)
inline

Soft toggle between TRANSACT and KEEP_STATE.

Similar to setTransact, but leaving KEEP_STATE also requires a superior causerLimit_r. So this is a kind of soft lock.

// SOLVER wants to set TRANSACT, iff KEEP_STATE is
// not superior to APPL_LOW.

Definition at line 494 of file ResStatus.h.

◆ setSoftTransact() [2/2]

bool zypp::ResStatus::setSoftTransact ( bool  toTansact_r,
TransactByValue  causer_r 
)
inline

Definition at line 507 of file ResStatus.h.

◆ maySetSoftTransact() [1/2]

bool zypp::ResStatus::maySetSoftTransact ( bool  val_r,
TransactByValue  causer,
TransactByValue  causerLimit_r 
)
inline

Definition at line 510 of file ResStatus.h.

◆ maySetSoftTransact() [2/2]

bool zypp::ResStatus::maySetSoftTransact ( bool  val_r,
TransactByValue  causer 
)
inline

Definition at line 519 of file ResStatus.h.

◆ setToBeInstalled()

bool zypp::ResStatus::setToBeInstalled ( TransactByValue  causer)
inline

Definition at line 522 of file ResStatus.h.

◆ maySetToBeInstalled()

bool zypp::ResStatus::maySetToBeInstalled ( TransactByValue  causer)
inline

Definition at line 528 of file ResStatus.h.

◆ setToBeUninstalled()

bool zypp::ResStatus::setToBeUninstalled ( TransactByValue  causer)
inline

Definition at line 536 of file ResStatus.h.

◆ maySetToBeUninstalled()

bool zypp::ResStatus::maySetToBeUninstalled ( TransactByValue  causer)
inline

Definition at line 542 of file ResStatus.h.

◆ setToBeUninstalledDueToObsolete()

bool zypp::ResStatus::setToBeUninstalledDueToObsolete ( )
inline

Definition at line 553 of file ResStatus.h.

◆ setToBeUninstalledDueToUpgrade()

bool zypp::ResStatus::setToBeUninstalledDueToUpgrade ( TransactByValue  causer)
inline

Definition at line 560 of file ResStatus.h.

◆ setToBeInstalledSoft()

bool zypp::ResStatus::setToBeInstalledSoft ( )
inline

Definition at line 567 of file ResStatus.h.

◆ setToBeUninstalledSoft()

bool zypp::ResStatus::setToBeUninstalledSoft ( )
inline

Definition at line 577 of file ResStatus.h.

◆ maySetToBeUninstalledSoft()

bool zypp::ResStatus::maySetToBeUninstalledSoft ( )
inline

Definition at line 587 of file ResStatus.h.

◆ isSoftInstall()

bool zypp::ResStatus::isSoftInstall ( )
inline

Definition at line 595 of file ResStatus.h.

◆ isSoftUninstall()

bool zypp::ResStatus::isSoftUninstall ( )
inline

Definition at line 599 of file ResStatus.h.

◆ setSoftInstall()

bool zypp::ResStatus::setSoftInstall ( bool  flag)
inline

Definition at line 603 of file ResStatus.h.

◆ setSoftUninstall()

bool zypp::ResStatus::setSoftUninstall ( bool  flag)
inline

Definition at line 608 of file ResStatus.h.

◆ setUndetermined()

bool zypp::ResStatus::setUndetermined ( )
inline

Definition at line 613 of file ResStatus.h.

◆ setSatisfied()

bool zypp::ResStatus::setSatisfied ( )
inline

Definition at line 619 of file ResStatus.h.

◆ setBroken()

bool zypp::ResStatus::setBroken ( )
inline

Definition at line 625 of file ResStatus.h.

◆ setNonRelevant()

bool zypp::ResStatus::setNonRelevant ( )
inline

Definition at line 631 of file ResStatus.h.

◆ setStatus()

bool zypp::ResStatus::setStatus ( ResStatus  newStatus_r)
inline

Definition at line 637 of file ResStatus.h.

◆ fieldValueIs()

template<class TField >
bool zypp::ResStatus::fieldValueIs ( FieldType  val_r) const
inlineprivate

Return whether the corresponding Field has value val_r.

Definition at line 670 of file ResStatus.h.

◆ fieldValueAssign()

template<class TField >
void zypp::ResStatus::fieldValueAssign ( FieldType  val_r)
inlineprivate

Set the corresponding Field to value val_r.

Definition at line 676 of file ResStatus.h.

◆ isGreaterThan()

template<class TField >
bool zypp::ResStatus::isGreaterThan ( FieldType  val_r)
inlineprivate

compare two values.

Definition at line 682 of file ResStatus.h.

◆ isLessThan()

template<class TField >
bool zypp::ResStatus::isLessThan ( FieldType  val_r)
inlineprivate

Definition at line 686 of file ResStatus.h.

Friends And Related Function Documentation

◆ resstatus::UserLockQueryManip

friend class resstatus::UserLockQueryManip
friend

Definition at line 325 of file ResStatus.h.

◆ resstatus::StatusBackup

friend class resstatus::StatusBackup
friend

Definition at line 690 of file ResStatus.h.

◆ operator<< [1/4]

std::ostream& operator<< ( std::ostream &  str,
const ResStatus obj 
)
friend

Definition at line 71 of file ResStatus.cc.

◆ operator== [1/2]

bool operator== ( const ResStatus lhs,
const ResStatus rhs 
)
friend

◆ operator<<() [2/4]

std::ostream & operator<< ( std::ostream &  str,
const ResStatus obj 
)
related

Stream output

Definition at line 71 of file ResStatus.cc.

◆ operator<<() [3/4]

std::ostream & operator<< ( std::ostream &  str,
ResStatus::TransactValue  obj 
)
related

Stream output

Definition at line 102 of file ResStatus.cc.

◆ operator<<() [4/4]

std::ostream & operator<< ( std::ostream &  str,
ResStatus::TransactByValue  obj 
)
related

Stream output

Definition at line 113 of file ResStatus.cc.

◆ operator==() [2/2]

bool operator== ( const ResStatus lhs,
const ResStatus rhs 
)
related

Definition at line 705 of file ResStatus.h.

◆ operator!=()

bool operator!= ( const ResStatus lhs,
const ResStatus rhs 
)
related

Definition at line 709 of file ResStatus.h.

Member Data Documentation

◆ toBeInstalled

const ResStatus zypp::ResStatus::toBeInstalled
static

Definition at line 653 of file ResStatus.h.

◆ toBeUninstalled

const ResStatus zypp::ResStatus::toBeUninstalled
static

Definition at line 654 of file ResStatus.h.

◆ toBeUninstalledDueToUpgrade

const ResStatus zypp::ResStatus::toBeUninstalledDueToUpgrade
static

Definition at line 655 of file ResStatus.h.

◆ toBeUninstalledDueToObsolete

const ResStatus zypp::ResStatus::toBeUninstalledDueToObsolete
static

Definition at line 656 of file ResStatus.h.

◆ _bitfield

BitFieldType zypp::ResStatus::_bitfield
private

Definition at line 691 of file ResStatus.h.


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