Selectable implementation.
More...
#include <SelectableImpl.h>
|
template<class _Iterator > |
| Impl (const ResObject::Kind &kind_r, const std::string &name_r, _Iterator begin_r, _Iterator end_r) |
|
IdString | ident () const |
|
ResObject::Kind | kind () const |
|
const std::string & | name () const |
|
Status | status () const |
|
bool | setStatus (Status state_r, ResStatus::TransactByValue causer_r) |
|
PoolItem | installedObj () const |
| Installed object (transacting ot highest version). More...
|
|
PoolItem | candidateObj () const |
| Best among available objects. More...
|
|
PoolItem | setCandidate (const PoolItem &newCandidate_r, ResStatus::TransactByValue causer_r) |
| Set a userCandidate (out of available objects). More...
|
|
PoolItem | candidateObjFrom (Repository repo_r) const |
| The best candidate provided by a specific Repository, if there is one. More...
|
|
PoolItem | updateCandidateObj () const |
| The best candidate for update, if there is one. More...
|
|
PoolItem | highestAvailableVersionObj () const |
| Simply the highest available version, ignoring priorities and policies. More...
|
|
bool | identicalAvailable (const PoolItem &rhs) const |
| True if rhs is installed and one with the same content is available. More...
|
|
bool | identicalInstalled (const PoolItem &rhs) const |
| True if rhs has the same content as an installed one. More...
|
|
PoolItem | identicalAvailableObj (const PoolItem &rhs) const |
| const More...
|
|
PoolItem | identicalInstalledObj (const PoolItem &rhs) const |
| const More...
|
|
PoolItem | theObj () const |
| Best among all objects. More...
|
|
bool | availableEmpty () const |
|
available_size_type | availableSize () const |
|
available_const_iterator | availableBegin () const |
|
available_const_iterator | availableEnd () const |
|
bool | installedEmpty () const |
|
installed_size_type | installedSize () const |
|
installed_iterator | installedBegin () const |
|
installed_iterator | installedEnd () const |
|
const PickList & | picklist () const |
|
bool | picklistEmpty () const |
|
picklist_size_type | picklistSize () const |
|
picklist_iterator | picklistBegin () const |
|
picklist_iterator | picklistEnd () const |
|
bool | isUnmaintained () const |
|
bool | multiversionInstall () const |
|
bool | pickInstall (const PoolItem &pi_r, ResStatus::TransactByValue causer_r, bool yesno_r) |
|
bool | pickDelete (const PoolItem &pi_r, ResStatus::TransactByValue causer_r, bool yesno_r) |
|
Status | pickStatus (const PoolItem &pi_r) const |
|
bool | setPickStatus (const PoolItem &pi_r, Status state_r, ResStatus::TransactByValue causer_r) |
|
bool | isUndetermined () const |
|
bool | isRelevant () const |
|
bool | isSatisfied () const |
|
bool | isBroken () const |
|
ResStatus::TransactByValue | modifiedBy () const |
| Return who caused the modification. More...
|
|
bool | hasLicenceConfirmed () const |
| Return value of LicenceConfirmed bit. More...
|
|
void | setLicenceConfirmed (bool val_r) |
| Set LicenceConfirmed bit. More...
|
|
Selectable implementation.
- Note
- Implementation is based in PoolItem, just the Selectable inteface restricts them to ResObject::constPtr.
Definition at line 42 of file SelectableImpl.h.
template<class _Iterator >
zypp::ui::Selectable::Impl::Impl |
( |
const ResObject::Kind & |
kind_r, |
|
|
const std::string & |
name_r, |
|
|
_Iterator |
begin_r, |
|
|
_Iterator |
end_r |
|
) |
| |
|
inline |
IdString zypp::ui::Selectable::Impl::ident |
( |
| ) |
const |
|
inline |
const std::string& zypp::ui::Selectable::Impl::name |
( |
| ) |
const |
|
inline |
Status zypp::ui::Selectable::Impl::status |
( |
| ) |
const |
PoolItem zypp::ui::Selectable::Impl::installedObj |
( |
| ) |
const |
|
inline |
Installed object (transacting ot highest version).
Definition at line 97 of file SelectableImpl.h.
PoolItem zypp::ui::Selectable::Impl::candidateObj |
( |
| ) |
const |
|
inline |
Best among available objects.
The transacting candidate or the one scheduled to receive the transact bit.
Definition at line 109 of file SelectableImpl.h.
Set a userCandidate (out of available objects).
- Returns
- The new userCandidate or NULL if choice was invalid (not among availableObjs).
Definition at line 374 of file SelectableImpl.cc.
The best candidate provided by a specific Repository, if there is one.
In contrary to candidateObj, this may return no item even if there are available objects. This simply means the Repository does not provide this object.
Definition at line 128 of file SelectableImpl.h.
PoolItem zypp::ui::Selectable::Impl::updateCandidateObj |
( |
| ) |
const |
|
inline |
The best candidate for update, if there is one.
In contrary to candidateObj, this may return no item even if there are available objects. This simply means the best object is already installed, and all available objects violate at least one update policy.
Definition at line 144 of file SelectableImpl.h.
PoolItem zypp::ui::Selectable::Impl::highestAvailableVersionObj |
( |
| ) |
const |
|
inline |
Simply the highest available version, ignoring priorities and policies.
It's doubtful whether solely looking at the version makes a good candidate, but apps ask for it. Beware that different vendors may use different (uncomparable) version schemata.
Definition at line 175 of file SelectableImpl.h.
bool zypp::ui::Selectable::Impl::identicalAvailable |
( |
const PoolItem & |
rhs | ) |
const |
|
inline |
bool zypp::ui::Selectable::Impl::identicalInstalled |
( |
const PoolItem & |
rhs | ) |
const |
|
inline |
PoolItem zypp::ui::Selectable::Impl::identicalAvailableObj |
( |
const PoolItem & |
rhs | ) |
const |
|
inline |
PoolItem zypp::ui::Selectable::Impl::identicalInstalledObj |
( |
const PoolItem & |
rhs | ) |
const |
|
inline |
PoolItem zypp::ui::Selectable::Impl::theObj |
( |
| ) |
const |
|
inline |
bool zypp::ui::Selectable::Impl::availableEmpty |
( |
| ) |
const |
|
inline |
bool zypp::ui::Selectable::Impl::installedEmpty |
( |
| ) |
const |
|
inline |
const PickList& zypp::ui::Selectable::Impl::picklist |
( |
| ) |
const |
|
inline |
bool zypp::ui::Selectable::Impl::picklistEmpty |
( |
| ) |
const |
|
inline |
bool zypp::ui::Selectable::Impl::isUnmaintained |
( |
| ) |
const |
|
inline |
bool zypp::ui::Selectable::Impl::multiversionInstall |
( |
| ) |
const |
|
inline |
Status zypp::ui::Selectable::Impl::pickStatus |
( |
const PoolItem & |
pi_r | ) |
const |
bool zypp::ui::Selectable::Impl::isUndetermined |
( |
| ) |
const |
|
inline |
bool zypp::ui::Selectable::Impl::isRelevant |
( |
| ) |
const |
|
inline |
bool zypp::ui::Selectable::Impl::isSatisfied |
( |
| ) |
const |
|
inline |
bool zypp::ui::Selectable::Impl::isBroken |
( |
| ) |
const |
|
inline |
bool zypp::ui::Selectable::Impl::hasLicenceConfirmed |
( |
| ) |
const |
|
inline |
void zypp::ui::Selectable::Impl::setLicenceConfirmed |
( |
bool |
val_r | ) |
|
|
inline |
PoolItem zypp::ui::Selectable::Impl::transactingInstalled |
( |
| ) |
const |
|
inlineprivate |
PoolItem zypp::ui::Selectable::Impl::transactingCandidate |
( |
| ) |
const |
|
inlineprivate |
PoolItem zypp::ui::Selectable::Impl::defaultCandidate |
( |
| ) |
const |
|
inlineprivate |
bool zypp::ui::Selectable::Impl::allCandidatesLocked |
( |
| ) |
const |
|
inlineprivate |
bool zypp::ui::Selectable::Impl::allInstalledLocked |
( |
| ) |
const |
|
inlineprivate |
const IdString zypp::ui::Selectable::Impl::_ident |
|
private |
const std::string zypp::ui::Selectable::Impl::_name |
|
private |
PoolItem zypp::ui::Selectable::Impl::_candidate |
|
private |
The object selected by setCandidateObj() method.
Definition at line 427 of file SelectableImpl.h.
The documentation for this struct was generated from the following files: