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