bool locked() const
True if locked (subclass of unmodified).
bool hasLocks() const
True if it includes locked items (don't mix this with the locked status).
installed_size_type installedSize() const
bool hasInstalledObj() const
True if installed object is present.
picklist_iterator picklistBegin() const
Combining sat::Solvable and ResStatus.
picklist_size_type picklistPos(const PoolItem &pi_r) const
Return the position of pi_r in the piclist or picklistNoPos.
bool hasLicenceConfirmed() const
Return value of LicenceConfirmed bit.
Status status() const
Return the current Status.
std::ostream & dumpOn(std::ostream &str, const Selectable &obj)
available_iterator availableBegin() const
A Solvable object within the sat Pool.
ResKind kind() const
The ResObjects kind.
bool identicalAvailable(const PoolItem &rhs) const
True if rhs is installed and one with the same content is available.
SelectableTraits::available_iterator available_iterator
Iterates over ResObject::constPtr.
bool identIsAutoInstalled() const
Whether this ident is flagged as AutoInstalled.
bool installedEmpty() const
Solvable satSolvable() const
Return the corresponding sat::Solvable.
PoolItem candidateObj() const
Best among available objects.
bool isBroken() const
Whether a relevant patchs requirements are broken.
bool hasLicenceConfirmed() const
Return value of LicenceConfirmed bit.
PoolItem highestAvailableVersionObj() const
Simply the highest available version, ignoring priorities and policies.
bool isUnwanted() const
Broken (needed) but locked patches.
bool isRelevant() const
Returns true if the patch is relevant which means that at least one package of the patch is installed...
Collects PoolItems of same kind and name.
bool setDeleted(ResStatus::TransactByValue causer_r=ResStatus::USER)
Take care the item gets deleted if it is installed.
bool isUndetermined() const
intrusive_ptr< Selectable > Ptr
installed_size_type installedSize() const
ResPoolProxy proxy() const
preliminary
bool hasRetractedInstalled() const
PoolItem installedObj() const
Installed object (transacting ot highest version).
PoolItem identicalAvailableObj(const PoolItem &rhs) const
Return an available Object with the same content as rhs.
bool identicalAvailable(const PoolItem &rhs) const
True if rhs is installed and one with the same content is available.
PoolItem setCandidate(const PoolItem &newCandidate_r, ResStatus::TransactByValue causer_r=ResStatus::USER)
Set a candidate (out of available objects).
bool multiversionInstall() const
Whether at least one of the available packages has multiversionInstall set.
bool setStatus(Status state_r, ResStatus::TransactByValue causer_r=ResStatus::USER)
Try to set a new Status.
RW_pointer< Impl > _pimpl
Pointer to implementation.
static ResPool instance()
Singleton ctor.
bool pickInstall(const PoolItem &pi_r, ResStatus::TransactByValue causer_r=ResStatus::USER, bool yesno_r=true)
Select a specific available item for installation.
bool identicalInstalled(const PoolItem &rhs) const
True if rhs has the same content as an installed one.
bool identIsAutoInstalled() const
Whether this ident is flagged as AutoInstalled.
available_iterator availableEnd() const
picklist_iterator picklistBegin() const
void setLicenceConfirmed(bool val_r)
Set LicenceConfirmed bit.
PoolItem identicalAvailableObj(const PoolItem &rhs) const
Return an available Object with the same content as rhs.
SelectableTraits::installed_iterator installed_iterator
installed_iterator installedEnd() const
static constexpr const picklist_size_type picklistNoPos
Returned by picklistPos if the Item does not belong to the picklist.
picklist_iterator picklistEnd() const
SelectableTraits::available_size_type available_size_type
bool availableEmpty() const
TraitsType::constPtrType constPtr
bool setFate(Fate fate_r, ResStatus::TransactByValue causer_r=ResStatus::USER)
bool setOnSystem(const PoolItem &newCandidate_r, ResStatus::TransactByValue causer_r=ResStatus::USER)
Arrange the specified candidate (out of available objects) to be on system after commit.
PoolItem candidateObjFrom(Repository repo_r) const
The best candidate provided by a specific Repository, if there is one.
Access to the sat-pools string space.
installed_iterator installedEnd() const
installed_iterator installedBegin() const
shared_ptr< Impl > Impl_Ptr
PoolItem installedObj() const
The last Installed object.
bool setUpToDate(ResStatus::TransactByValue causer_r=ResStatus::USER)
Take care the item gets installed if it is not, or is older.
bool isUnmaintained() const
bool availableEmpty() const
const std::string & name() const
PoolItem updateCandidateObj() const
The best candidate for update, if there is one.
picklist_size_type picklistSize() const
bool setStatus(Status state_r, ResStatus::TransactByValue causer_r)
bool isUnmaintained() const
True if this package has no replacement from the available repositories.
Status pickStatus(const PoolItem &pi_r) const
Compute the ui::Status for an individual PoolItem.
bool isSatisfied() const
Whether a relevant patchs requirements are met.
ui::Selectable::Ptr lookup(const pool::ByIdent &ident_r) const
bool pickInstall(const PoolItem &pi_r, ResStatus::TransactByValue causer_r, bool yesno_r)
Easy-to use interface to the ZYPP dependency resolver.
PoolItem candidateObj() const
The 'best' or 'most interesting' among all available objects.
ResStatus::TransactByValue modifiedBy() const
Return who caused the modification.
bool installedEmpty() const
IdString ident() const
The identifier.
SelectableTraits::picklist_size_type picklist_size_type
picklist_iterator picklistEnd() const
bool setInstalled(ResStatus::TransactByValue causer_r=ResStatus::USER)
Take care the item gets installed if it is not.
PoolItem highestAvailableVersionObj() const
Simply the highest available version, ignoring priorities and policies.
PoolItem identicalInstalledObj(const PoolItem &rhs) const
\Return an installed Object with the same content as rhs.
bool isNeeded() const
This includes unlocked broken patches, as well as those already selected to be installed.
bool hasRetractedInstalled() const
True if this Selectable contains an installed retracted item.
bool isUndetermined() const
Returns true for packages, because packages are not classified by the solver.
bool hasRetracted() const
Main filter selecting PoolItems by name and kind.
Status pickStatus(const PoolItem &pi_r) const
available_size_type availableSize() const
bool setPickStatus(const PoolItem &pi_r, Status state_r, ResStatus::TransactByValue causer_r=ResStatus::USER)
Assign a new status to a specific item.
bool identicalInstalled(const PoolItem &rhs) const
True if rhs has the same content as an installed one.
available_iterator availableEnd() const
Status
UI status Status values calculated by Selectable.
Iterable< picklist_iterator > picklist() const
bool hasRetracted() const
True if this Selectable contains a retracted item.
available_size_type availableSize() const
bool multiversionInstall() const
PoolItem theObj() const
An object you could use as pars pro toto.
static Ptr get(const pool::ByIdent &ident_r)
Get the Selctable.
const std::string & name() const
The ResObjects name.
SelectableTraits::installed_size_type installed_size_type
PoolItem theObj() const
Best among all objects.
bool picklistEmpty() const
PoolItem candidateObjFrom(Repository repo_r) const
The best candidate provided by a specific Repository, if there is one.
available_iterator availableBegin() const
bool pickDelete(const PoolItem &pi_r, ResStatus::TransactByValue causer_r=ResStatus::USER, bool yesno_r=true)
Select a specific installed item for deletion.
SelectableTraits::picklist_iterator picklist_iterator
Selectable(Impl_Ptr pimpl_r)
Default ctor.
void setLicenceConfirmed(bool val_r=true)
Set LicenceConfirmed bit.
PoolItem updateCandidateObj() const
The best candidate for update, if there is one.
ResStatus::TransactByValue modifiedBy() const
Return who caused the modification.
String related utilities and Regular expression matching.
picklist_size_type picklistSize() const
bool setPickStatus(const PoolItem &pi_r, Status state_r, ResStatus::TransactByValue causer_r)
bool pickDelete(const PoolItem &pi_r, ResStatus::TransactByValue causer_r, bool yesno_r)
PoolItem identicalInstalledObj(const PoolItem &rhs) const
\Return an installed Object with the same content as rhs.
bool picklistEmpty() const
installed_iterator installedBegin() const
bool hasLocks() const
True if it includes locked items (don't mix this with the locked status).
IMPL_PTR_TYPE(Selectable)
std::ostream & operator<<(std::ostream &str, const Selectable &obj)
PoolItem setCandidate(const PoolItem &newCandidate_r, ResStatus::TransactByValue causer_r)
Set a userCandidate (out of available objects).