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->identIsAutoInstalled(); }
89 {
return _pimpl->identicalAvailable( rhs ); }
92 {
return _pimpl->identicalInstalled( rhs ); }
95 {
return _pimpl->identicalAvailableObj( rhs ); }
98 {
return _pimpl->identicalInstalledObj( rhs ); }
101 {
return _pimpl->setCandidate( newCandidate_r, causer_r ); }
104 {
return _pimpl->setCandidate(
PoolItem( newCandidate_r ), causer_r ); }
114 {
return _pimpl->theObj(); }
119 {
return _pimpl->availableEmpty(); }
122 {
return _pimpl->availableSize(); }
125 {
return _pimpl->availableBegin(); }
128 {
return _pimpl->availableEnd(); }
133 {
return _pimpl->installedEmpty(); }
136 {
return _pimpl->installedSize(); }
139 {
return _pimpl->installedBegin(); }
142 {
return _pimpl->installedEnd(); }
147 {
return _pimpl->picklistEmpty(); }
150 {
return _pimpl->picklistSize(); }
153 {
return _pimpl->picklistBegin(); }
156 {
return _pimpl->picklistEnd(); }
164 for (
const auto & pi :
picklist() )
176 {
return _pimpl->hasBlacklisted(); }
179 {
return _pimpl->hasBlacklistedInstalled(); }
182 {
return _pimpl->hasRetracted(); }
185 {
return _pimpl->hasRetractedInstalled(); }
188 {
return _pimpl->hasPtf(); }
191 {
return _pimpl->hasPtfInstalled(); }
195 {
return _pimpl->isUnmaintained(); }
198 {
return _pimpl->multiversionInstall(); }
201 {
return _pimpl->pickInstall( pi_r, causer_r, yesno_r ); }
204 {
return _pimpl->pickDelete( pi_r, causer_r, yesno_r ); }
207 {
return _pimpl->pickStatus( pi_r ); }
210 {
return _pimpl->setPickStatus( pi_r, state_r, causer_r ); }
215 {
return _pimpl->isUndetermined(); }
218 {
return _pimpl->isRelevant(); }
221 {
return _pimpl->isSatisfied(); }
224 {
return _pimpl->isBroken(); }
237 {
return _pimpl->modifiedBy(); }
240 {
return _pimpl->hasLicenceConfirmed(); }
243 {
_pimpl->setLicenceConfirmed( val_r ); }
246 {
return _pimpl->hasLocks(); }
Access to the sat-pools string space.
Combining sat::Solvable and ResStatus.
TraitsType::constPtrType constPtr
ui::Selectable::Ptr lookup(const pool::ByIdent &ident_r) const
static ResPool instance()
Singleton ctor.
ResPoolProxy proxy() const
preliminary
Main filter selecting PoolItems by name and kind.
A Solvable object within the sat Pool.
Collects PoolItems of same kind and name.
bool hasRetractedInstalled() const
True if this Selectable contains an installed retracted item.
bool setStatus(Status state_r, ResStatus::TransactByValue causer_r=ResStatus::USER)
Try to set a new Status.
available_iterator availableEnd() const
bool hasPtfInstalled() const
True if this Selectable contains an installed ptf item.
SelectableTraits::available_size_type available_size_type
installed_size_type installedSize() const
SelectableTraits::picklist_iterator picklist_iterator
picklist_iterator picklistBegin() const
bool multiversionInstall() const
Whether at least one of the available packages has multiversionInstall set.
Iterable< picklist_iterator > picklist() const
Status pickStatus(const PoolItem &pi_r) const
Compute the ui::Status for an individual PoolItem.
bool isUnmaintained() const
True if this package has no replacement from the available repositories.
picklist_size_type picklistSize() const
bool setDeleted(ResStatus::TransactByValue causer_r=ResStatus::USER)
Take care the item gets deleted if it is installed.
bool isSatisfied() const
Whether a relevant patchs requirements are met.
static Ptr get(const pool::ByIdent &ident_r)
Get the Selctable.
installed_iterator installedBegin() const
bool locked() const
True if locked (subclass of unmodified).
available_size_type availableSize() const
intrusive_ptr< Selectable > Ptr
static constexpr const picklist_size_type picklistNoPos
Returned by picklistPos if the Item does not belong to the picklist.
void setLicenceConfirmed(bool val_r=true)
Set LicenceConfirmed bit.
ResStatus::TransactByValue modifiedBy() const
Return who caused the modification.
SelectableTraits::installed_size_type installed_size_type
PoolItem installedObj() const
The last Installed object.
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).
bool hasRetracted() const
True if this Selectable contains available retracted items.
bool hasBlacklistedInstalled() const
True if this Selectable contains an installed blacklisted item (retracted,ptf,...).
picklist_iterator picklistEnd() const
bool setInstalled(ResStatus::TransactByValue causer_r=ResStatus::USER)
Take care the item gets installed if it is not.
bool hasBlacklisted() const
True if this Selectable contains available blacklisted items (retracted,ptf,...).
Selectable(Impl_Ptr pimpl_r)
Default ctor.
RW_pointer< Impl > _pimpl
Pointer to implementation.
IdString ident() const
The identifier.
installed_iterator installedEnd() const
PoolItem updateCandidateObj() const
The best candidate for update, if there is one.
PoolItem candidateObjFrom(Repository repo_r) const
The best candidate provided by a specific Repository, if there is one.
bool setUpToDate(ResStatus::TransactByValue causer_r=ResStatus::USER)
Take care the item gets installed if it is not, or is older.
const std::string & name() const
The ResObjects name.
SelectableTraits::installed_iterator installed_iterator
bool hasPtf() const
True if this Selectable contains available ptf items.
SelectableTraits::available_iterator available_iterator
Iterates over ResObject::constPtr.
PoolItem theObj() const
An object you could use as pars pro toto.
bool availableEmpty() const
shared_ptr< Impl > Impl_Ptr
bool identIsAutoInstalled() const
Whether this ident is flagged as AutoInstalled.
available_iterator availableBegin() const
bool pickInstall(const PoolItem &pi_r, ResStatus::TransactByValue causer_r=ResStatus::USER, bool yesno_r=true)
Select a specific available item for installation.
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 setCandidate(const PoolItem &newCandidate_r, ResStatus::TransactByValue causer_r=ResStatus::USER)
Set a candidate (out of available objects).
bool isRelevant() const
Returns true if the patch is relevant which means that at least one package of the patch is installed...
bool isUnwanted() const
Broken (needed) but locked patches.
PoolItem candidateObj() const
The 'best' or 'most interesting' among all available objects.
bool identicalAvailable(const PoolItem &rhs) const
True if rhs is installed and one with the same content is available.
bool isBroken() const
Whether a relevant patchs requirements are broken.
bool hasInstalledObj() const
True if installed object is present.
bool setPickStatus(const PoolItem &pi_r, Status state_r, ResStatus::TransactByValue causer_r=ResStatus::USER)
Assign a new status to a specific item.
Status status() const
Return the current Status.
bool hasLicenceConfirmed() const
Return value of LicenceConfirmed bit.
bool identicalInstalled(const PoolItem &rhs) const
True if rhs has the same content as an installed one.
PoolItem identicalAvailableObj(const PoolItem &rhs) const
Return an available Object with the same content as rhs.
bool isUndetermined() const
Returns true for packages, because packages are not classified by the solver.
ResKind kind() const
The ResObjects kind.
bool setFate(Fate fate_r, ResStatus::TransactByValue causer_r=ResStatus::USER)
bool pickDelete(const PoolItem &pi_r, ResStatus::TransactByValue causer_r=ResStatus::USER, bool yesno_r=true)
Select a specific installed item for deletion.
bool isNeeded() const
This includes unlocked broken patches, as well as those already selected to be installed.
bool picklistEmpty() const
SelectableTraits::picklist_size_type picklist_size_type
PoolItem identicalInstalledObj(const PoolItem &rhs) const
\Return an installed Object with the same content as rhs.
bool installedEmpty() const
picklist_size_type picklistPos(const PoolItem &pi_r) const
Return the position of pi_r in the piclist or picklistNoPos.
String related utilities and Regular expression matching.
Status
UI status Status values calculated by Selectable.
std::ostream & operator<<(std::ostream &str, const Selectable &obj)
std::ostream & dumpOn(std::ostream &str, const Selectable &obj)
Easy-to use interface to the ZYPP dependency resolver.
Solvable satSolvable() const
Return the corresponding sat::Solvable.
#define IMPL_PTR_TYPE(NAME)