12#ifndef ZYPP_RESSTATUS_H
13#define ZYPP_RESSTATUS_H
25 struct UserLockQueryManip;
682 template<
class TField>
688 template<
class TField>
694 template<
class TField>
698 template<
class TField>
723 {
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
bool onSystem() const
True if would be on system after commit.
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)
bool setTransact(bool toTansact_r, TransactByValue causer_r)
Toggle between TRANSACT and KEEP_STATE.
bool isToBeInstalled() const
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)
bool setStatus(const ResStatus &newStatus_r)
void setUnneeded(bool toVal_r=true)
bool isUserLockQueryMatch() const
ResStatus(ResStatus &&) noexcept=default
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.
bool setSoftTransact(bool toTansact_r, TransactByValue causer_r)
bool setToBeInstalledSoft()
static const ResStatus toBeUninstalled
bool isUserLocked() const
bool wasUninstalled() const
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
ResStatus(const ResStatus &)=default
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)
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.