56 {
return _pimpl->ident(); }
65 {
return _pimpl->status(); }
68 {
return _pimpl->setStatus( state_r, causer_r ); }
71 {
return _pimpl->installedObj(); }
74 {
return _pimpl->candidateObj(); }
77 {
return _pimpl->candidateObjFrom( repo_r ); }
80 {
return _pimpl->updateCandidateObj(); }
83 {
return _pimpl->highestAvailableVersionObj(); }
86 {
return _pimpl->identicalAvailable( rhs ); }
89 {
return _pimpl->identicalInstalled( rhs ); }
92 {
return _pimpl->identicalAvailableObj( rhs ); }
95 {
return _pimpl->identicalInstalledObj( rhs ); }
98 {
return _pimpl->setCandidate( newCandidate_r, causer_r ); }
101 {
return _pimpl->setCandidate(
PoolItem( newCandidate_r ), causer_r ); }
111 {
return _pimpl->theObj(); }
116 {
return _pimpl->availableEmpty(); }
119 {
return _pimpl->availableSize(); }
122 {
return _pimpl->availableBegin(); }
125 {
return _pimpl->availableEnd(); }
130 {
return _pimpl->installedEmpty(); }
133 {
return _pimpl->installedSize(); }
136 {
return _pimpl->installedBegin(); }
139 {
return _pimpl->installedEnd(); }
144 {
return _pimpl->picklistEmpty(); }
147 {
return _pimpl->picklistSize(); }
150 {
return _pimpl->picklistBegin(); }
153 {
return _pimpl->picklistEnd(); }
158 {
return _pimpl->isUnmaintained(); }
161 {
return _pimpl->multiversionInstall(); }
164 {
return _pimpl->pickInstall( pi_r, causer_r, yesno_r ); }
167 {
return _pimpl->pickDelete( pi_r, causer_r, yesno_r ); }
170 {
return _pimpl->pickStatus( pi_r ); }
173 {
return _pimpl->setPickStatus( pi_r, state_r, causer_r ); }
178 {
return _pimpl->isUndetermined(); }
181 {
return _pimpl->isRelevant(); }
184 {
return _pimpl->isSatisfied(); }
187 {
return _pimpl->isBroken(); }
200 {
return _pimpl->modifiedBy(); }
203 {
return _pimpl->hasLicenceConfirmed(); }
206 {
_pimpl->setLicenceConfirmed( val_r ); }
289 {
return str << *(obj.
_pimpl); }
available_iterator availableEnd() const
PoolItem updateCandidateObj() const
The best candidate for update, if there is one.
ui::Selectable::Ptr lookup(const pool::ByIdent &ident_r) const
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
SelectableTraits::installed_iterator installed_iterator
ResObject::Kind kind() const
The ResObjects kind.
Status status() const
Return the current Status.
PoolItem identicalAvailableObj(const PoolItem &rhs) const
Return an available Object with the same content as rhs.
Access to the sat-pools string space.
bool hasLicenceConfirmed() const
Return value of LicenceConfirmed bit.
bool hasInstalledObj() const
True if installed object is present.
TraitsType::constPtrType constPtr
PoolItem theObj() const
An object you could use as pars pro toto.
available_size_type availableSize() const
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.
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.
bool picklistEmpty() 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.
std::ostream & operator<<(std::ostream &str, const Selectable &obj)
std::ostream & dumpOn(std::ostream &str, const Selectable &obj)
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...
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 different versions of this package can be installed at the same time.
shared_ptr< Impl > Impl_Ptr
bool availableEmpty() const
SelectableTraits::available_iterator available_iterator
Iterates over ResObject::constPtr.
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.
static Ptr get(const pool::ByIdent &ident_r)
Get the Selctable.
IMPL_PTR_TYPE(Selectable)
bool pickInstall(const PoolItem &pi_r, ResStatus::TransactByValue causer_r=ResStatus::USER, bool yesno_r=true)
Select a specific available item for installation.
Selectable(Impl_Ptr pimpl_r)
Default ctor.
bool setUpToDate(ResStatus::TransactByValue causer_r=ResStatus::USER)
Take care the item gets installed if it is not, or is older.
SelectableTraits::picklist_iterator picklist_iterator
Reference to a PoolItem connecting ResObject and ResStatus.
bool setFate(Fate fate_r, ResStatus::TransactByValue causer_r=ResStatus::USER)
picklist_iterator picklistEnd() const
const std::string & name() const
The ResObjects name.
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.
SelectableTraits::installed_size_type installed_size_type
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
static ResPool instance()
Singleton ctor.