12#ifndef ZYPP_RESSTATUS_H
13#define ZYPP_RESSTATUS_H
238 static std::string validateValueAsString( ValidateValue val_r );
241 static ValidateValue stringToValidateValue(
const std::string & str_r );
371 return setLock(
true, causer_r );
428 bool ret =
setLock( to_r, causer_r );
683 template<
class TField>
685 {
return _bitfield.isEqual<TField>( val_r ); }
689 template<
class TField>
695 template<
class TField>
697 {
return _bitfield.value<TField>() > val_r; }
699 template<
class TField>
701 {
return _bitfield.value<TField>() < val_r; }
724 {
return ! (lhs == rhs); }
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.
bit::Range< FieldType, WeakField::end, 1 > UserLockQueryField
bool isToBeInstalledSoft() const
bit::Range< FieldType, TransactField::end, 2 > TransactByField
bool onSystem() const
True if would be on system after commit.
bool setToBeUninstalled(TransactByValue causer)
bool setToBeUninstalledDueToObsolete()
static const ResStatus toBeUninstalledDueToObsolete
bit::Range< FieldType, LicenceConfirmedField::end, 4 > WeakField
void setLicenceConfirmed(bool toVal_r=true)
bool setSoftInstall(bool flag)
void setRecommended(bool toVal_r=true)
bool maySetSoftTransact(bool val_r, TransactByValue causer)
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.
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)
bit::Range< FieldType, ValidateField::end, 2 > TransactField
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
bit::Range< FieldType, 0, 1 > StateField
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()
bit::Range< FieldType, TransactDetailField::end, 1 > LicenceConfirmedField
static const ResStatus toBeUninstalled
bool isUserLocked() const
bool wasUninstalled() const
bit::BitField< FieldType > BitFieldType
bit::Range< FieldType, TransactByField::end, 2 > TransactDetailField
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)
bit::Range< FieldType, StateField::end, 2 > ValidateField
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.
TInt value() const
Return the value.
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)
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Range of bits starting at bit _begin with length _size.
Manipulator for ResStatus::UserLockQueryField.