12#ifndef ZYPP_RESSTATUS_H
13#define ZYPP_RESSTATUS_H
25 struct UserLockQueryManip;
677 template<
class TField>
683 template<
class TField>
689 template<
class TField>
693 template<
class TField>
718 {
return ! (lhs == rhs); }
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
reference value() const
Reference to the Tp object.
bool staysUninstalled() const
bool isLessThan(FieldType val_r)
bool isLicenceConfirmed() const
bool isSoftLocked() const
@ NO_DETAIL
Detail for no transact, i.e.
static const ResStatus toBeInstalled
ValidateValue validate() const
void setUserLockQueryMatch(bool match_r)
bool isGreaterThan(FieldType val_r)
compare two values.
bool isToBeInstalledSoft() const
bit::Range< FieldType, StateField::end, 2 > ValidateField
bool onSystem() const
True if would be on system after commit.
bit::BitField< FieldType > BitFieldType
bool setToBeUninstalled(TransactByValue causer)
bool setToBeUninstalledDueToObsolete()
static const ResStatus toBeUninstalledDueToObsolete
void setLicenceConfirmed(bool toVal_r=true)
bool setSoftInstall(bool flag)
void setRecommended(bool toVal_r=true)
bool maySetSoftTransact(bool val_r, TransactByValue causer)
static ValidateValue stringToValidateValue(const std::string &str_r)
ValidateValue from string used in the history file.
bool maySetTransactValue(TransactValue newVal_r, TransactByValue causer_r)
bool setTransactValue(TransactValue newVal_r, TransactByValue causer_r)
Set TransactValue.
bool isUndetermined() const
bool fieldValueIs(FieldType val_r) const
Return whether the corresponding Field has value val_r.
friend std::ostream & operator<<(std::ostream &str, const ResStatus &obj)
bit::Range< FieldType, TransactDetailField::end, 1 > LicenceConfirmedField
bool setTransact(bool toTansact_r, TransactByValue causer_r)
Toggle between TRANSACT and KEEP_STATE.
bool isToBeInstalled() const
bit::Range< FieldType, LicenceConfirmedField::end, 4 > WeakField
bool offSystem() const
True if would be off system after commit.
bool isByApplHigh() const
void setOrphaned(bool toVal_r=true)
bool isNonRelevant() const
bool setToBeInstalled(TransactByValue causer)
void setUnneeded(bool toVal_r=true)
bool isUserLockQueryMatch() const
bool setStatus(ResStatus newStatus_r)
bool wasInstalled() const
bool setToBeUninstalledSoft()
bool maySetToBeUninstalled(TransactByValue causer)
bool setSoftLock(TransactByValue causer_r)
bool setLock(bool toLock_r, TransactByValue causer_r)
Apply a lock (prevent transaction).
TransactValue getTransactValue() const
bool staysInstalled() const
static const ResStatus toBeUninstalledDueToUpgrade
bool maySetToBeInstalled(TransactByValue causer)
bool isToBeUninstalledDueToObsolete() const
bool setSoftTransact(bool toTansact_r, TransactByValue causer_r, TransactByValue causerLimit_r)
Soft toggle between TRANSACT and KEEP_STATE.
bit::Range< FieldType, TransactByField::end, 2 > TransactDetailField
bit::Range< FieldType, TransactField::end, 2 > TransactByField
bool setSoftTransact(bool toTansact_r, TransactByValue causer_r)
bool setToBeInstalledSoft()
static const ResStatus toBeUninstalled
bit::Range< FieldType, WeakField::end, 1 > UserLockQueryField
bool isUserLocked() const
bool wasUninstalled() const
bit::Range< FieldType, ValidateField::end, 2 > TransactField
bool maySetToBeUninstalledSoft()
bool isRecommended() const
BitFieldType bitfield() const
Debug helper returning the bitfield.
bool maySetTransact(bool val_r, TransactByValue causer)
bool operator!=(const ResStatus &lhs, const ResStatus &rhs)
bool isToBeUninstalled() const
std::string validateValueAsString() const
bool isToBeUninstalledDueToUpgrade() const
TransactByValue getTransactByValue() const
bit::Range< FieldType, 0, 1 > StateField
bool resetTransact(TransactByValue causer_r)
Not the same as setTransact( false ).
void setSuggested(bool toVal_r=true)
bool setSoftUninstall(bool flag)
bool maySetSoftTransact(bool val_r, TransactByValue causer, TransactByValue causerLimit_r)
bool setTransactByValue(TransactByValue causer)
bool maySetLock(bool to_r, TransactByValue causer_r)
bool isToBeInstalledNotSoft() const
void fieldValueAssign(FieldType val_r)
Set the corresponding Field to value val_r.
bool setToBeUninstalledDueToUpgrade(TransactByValue causer)
bool isToBeUninstalledSoft() const
bool isUninstalled() const
friend bool operator==(const ResStatus &lhs, const ResStatus &rhs)
An integral type used as BitField.
bool test(TInt rhs)
Test whether all bits of rhs are set.
BitField & set(TInt rhs, bool doset_r)
Set or unset bits of rhs.
BitField & assign(TInt rhs)
Assign Range in rhs to this.
TInt value() const
Return the value.
bool isEqual(TInt rhs) const
Test for equal value within a Range.
StatusBackup(ResStatus &status_r)
ResStatus::BitFieldType _bitfield
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
Range of bits starting at bit _begin with length _size.
Manipulator for ResStatus::UserLockQueryField.