#include <SelectableImpl.h>
Definition at line 41 of file SelectableImpl.h.
Definition at line 45 of file SelectableImpl.h.
Definition at line 46 of file SelectableImpl.h.
typedef SelectableTraits::available_const_iterator zypp::ui::Selectable::Impl::available_const_iterator |
Definition at line 47 of file SelectableImpl.h.
Definition at line 48 of file SelectableImpl.h.
Definition at line 50 of file SelectableImpl.h.
Definition at line 51 of file SelectableImpl.h.
typedef SelectableTraits::installed_const_iterator zypp::ui::Selectable::Impl::installed_const_iterator |
Definition at line 52 of file SelectableImpl.h.
Definition at line 53 of file SelectableImpl.h.
Definition at line 55 of file SelectableImpl.h.
zypp::ui::Selectable::Impl::Impl | ( | const ResObject::Kind & | kind_r, | |
const std::string & | name_r, | |||
_Iterator | begin_r, | |||
_Iterator | end_r | |||
) | [inline] |
Definition at line 59 of file SelectableImpl.h.
References _availableItems, _defaultCandidate, _installedItems, defaultCandidate(), and for_.
IdString zypp::ui::Selectable::Impl::ident | ( | ) | const [inline] |
Definition at line 79 of file SelectableImpl.h.
References _ident.
Referenced by pickStatus(), and setPickStatus().
ResObject::Kind zypp::ui::Selectable::Impl::kind | ( | ) | const [inline] |
Definition at line 83 of file SelectableImpl.h.
References _kind.
Referenced by dumpOn(), operator<<(), pickStatus(), and status().
const std::string& zypp::ui::Selectable::Impl::name | ( | ) | const [inline] |
Definition at line 87 of file SelectableImpl.h.
References _name.
Referenced by dumpOn(), and operator<<().
Status zypp::ui::Selectable::Impl::status | ( | ) | const |
Definition at line 300 of file SelectableImpl.cc.
References allCandidatesLocked(), allInstalledLocked(), candidateObj(), installedObj(), zypp::ResStatus::isByUser(), zypp::traits::isPseudoInstalled(), zypp::ResStatus::isSatisfied(), kind(), zypp::ui::S_AutoDel, zypp::ui::S_AutoInstall, zypp::ui::S_AutoUpdate, zypp::ui::S_Del, zypp::ui::S_Install, zypp::ui::S_KeepInstalled, zypp::ui::S_NoInst, zypp::ui::S_Protected, zypp::ui::S_Taboo, zypp::ui::S_Update, zypp::PoolItem::status(), and zypp::ResStatus::transacts().
Referenced by dumpOn(), modifiedBy(), operator<<(), and pickStatus().
bool zypp::ui::Selectable::Impl::setStatus | ( | Status | state_r, | |
ResStatus::TransactByValue | causer_r | |||
) |
Definition at line 333 of file SelectableImpl.cc.
References zypp::ui::S_AutoDel, zypp::ui::S_AutoInstall, zypp::ui::S_AutoUpdate, zypp::ui::S_Del, zypp::ui::S_Install, zypp::ui::S_KeepInstalled, zypp::ui::S_NoInst, zypp::ui::S_Protected, zypp::ui::S_Taboo, and zypp::ui::S_Update.
PoolItem zypp::ui::Selectable::Impl::installedObj | ( | ) | const [inline] |
Installed object (transacting ot highest version).
Definition at line 97 of file SelectableImpl.h.
References _installedItems, installedEmpty(), and transactingInstalled().
Referenced by dumpOn(), modifiedBy(), status(), theObj(), and updateCandidateObj().
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.
References _candidate, _defaultCandidate, and transactingCandidate().
Referenced by dumpOn(), hasLicenceConfirmed(), isBroken(), isRelevant(), isSatisfied(), isUndetermined(), modifiedBy(), operator<<(), setLicenceConfirmed(), status(), and theObj().
PoolItem zypp::ui::Selectable::Impl::setCandidate | ( | const PoolItem & | newCandidate_r, | |
ResStatus::TransactByValue | causer_r | |||
) |
Set a userCandidate (out of available objects).
Definition at line 374 of file SelectableImpl.cc.
References _candidate, availableBegin(), availableEnd(), for_, zypp::ResStatus::maySetTransact(), zypp::ResStatus::setTransact(), zypp::PoolItem::status(), and transactingCandidate().
PoolItem zypp::ui::Selectable::Impl::candidateObjFrom | ( | Repository | repo_r | ) | const [inline] |
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.
References availableBegin(), availableEnd(), and for_.
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.
References _defaultCandidate, zypp::Arch_noarch, availableBegin(), installedEmpty(), installedObj(), zypp::VendorAttr::instance(), zypp::ZConfig::instance(), and multiversionInstall().
Referenced by dumpOn().
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 174 of file SelectableImpl.h.
References availableBegin(), availableEnd(), zypp::sat::Solvable::edition(), for_, and zypp::PoolItem::satSolvable().
bool zypp::ui::Selectable::Impl::identicalAvailable | ( | const PoolItem & | rhs | ) | const [inline] |
True
if rhs is installed and one with the same content is available.
Basically the same name, edition, arch, vendor and buildtime.
Definition at line 186 of file SelectableImpl.h.
References _availableItems, availableEmpty(), and for_.
Referenced by picklist().
bool zypp::ui::Selectable::Impl::identicalInstalled | ( | const PoolItem & | rhs | ) | const [inline] |
True
if rhs has the same content as an installed one.
Basically the same name, edition, arch, vendor and buildtime.
Definition at line 200 of file SelectableImpl.h.
References _installedItems, for_, and installedEmpty().
Referenced by pickInstall().
PoolItem zypp::ui::Selectable::Impl::theObj | ( | ) | const [inline] |
Best among all objects.
Definition at line 214 of file SelectableImpl.h.
References candidateObj(), and installedObj().
Referenced by multiversionInstall().
bool zypp::ui::Selectable::Impl::availableEmpty | ( | ) | const [inline] |
Definition at line 224 of file SelectableImpl.h.
References _availableItems.
Referenced by dumpOn(), identicalAvailable(), and isUnmaintained().
available_size_type zypp::ui::Selectable::Impl::availableSize | ( | ) | const [inline] |
Definition at line 227 of file SelectableImpl.h.
References _availableItems.
Referenced by dumpOn(), and operator<<().
available_const_iterator zypp::ui::Selectable::Impl::availableBegin | ( | ) | const [inline] |
Definition at line 230 of file SelectableImpl.h.
References _availableItems.
Referenced by allCandidatesLocked(), candidateObjFrom(), defaultCandidate(), dumpOn(), highestAvailableVersionObj(), zypp::ui::StatusHelper::lockCandidates(), picklist(), pickStatus(), zypp::ui::StatusHelper::resetTransactingCandidates(), setCandidate(), setPickStatus(), transactingCandidate(), zypp::ui::StatusHelper::unlockCandidates(), and updateCandidateObj().
available_const_iterator zypp::ui::Selectable::Impl::availableEnd | ( | ) | const [inline] |
Definition at line 233 of file SelectableImpl.h.
References _availableItems.
Referenced by allCandidatesLocked(), candidateObjFrom(), defaultCandidate(), dumpOn(), highestAvailableVersionObj(), zypp::ui::StatusHelper::lockCandidates(), picklist(), pickStatus(), zypp::ui::StatusHelper::resetTransactingCandidates(), setCandidate(), setPickStatus(), transactingCandidate(), and zypp::ui::StatusHelper::unlockCandidates().
bool zypp::ui::Selectable::Impl::installedEmpty | ( | ) | const [inline] |
Definition at line 238 of file SelectableImpl.h.
References _installedItems.
Referenced by defaultCandidate(), dumpOn(), identicalInstalled(), installedObj(), and updateCandidateObj().
installed_size_type zypp::ui::Selectable::Impl::installedSize | ( | ) | const [inline] |
Definition at line 241 of file SelectableImpl.h.
References _installedItems.
Referenced by dumpOn(), and operator<<().
installed_iterator zypp::ui::Selectable::Impl::installedBegin | ( | ) | const [inline] |
Definition at line 244 of file SelectableImpl.h.
References _installedItems.
Referenced by allInstalledLocked(), defaultCandidate(), dumpOn(), pickStatus(), zypp::ui::StatusHelper::setDelete(), zypp::ui::StatusHelper::setInstall(), setPickStatus(), zypp::ui::StatusHelper::setProtected(), transactingInstalled(), and zypp::ui::StatusHelper::unset().
installed_iterator zypp::ui::Selectable::Impl::installedEnd | ( | ) | const [inline] |
Definition at line 247 of file SelectableImpl.h.
References _installedItems.
Referenced by allInstalledLocked(), defaultCandidate(), dumpOn(), pickStatus(), zypp::ui::StatusHelper::setDelete(), zypp::ui::StatusHelper::setInstall(), setPickStatus(), zypp::ui::StatusHelper::setProtected(), transactingInstalled(), and zypp::ui::StatusHelper::unset().
const PickList& zypp::ui::Selectable::Impl::picklist | ( | ) | const [inline] |
Definition at line 252 of file SelectableImpl.h.
References _installedItems, _picklistPtr, availableBegin(), availableEnd(), for_, and identicalAvailable().
Referenced by picklistBegin(), picklistEmpty(), picklistEnd(), and picklistSize().
bool zypp::ui::Selectable::Impl::picklistEmpty | ( | ) | const [inline] |
picklist_size_type zypp::ui::Selectable::Impl::picklistSize | ( | ) | const [inline] |
picklist_iterator zypp::ui::Selectable::Impl::picklistBegin | ( | ) | const [inline] |
picklist_iterator zypp::ui::Selectable::Impl::picklistEnd | ( | ) | const [inline] |
bool zypp::ui::Selectable::Impl::isUnmaintained | ( | ) | const [inline] |
bool zypp::ui::Selectable::Impl::multiversionInstall | ( | ) | const [inline] |
Definition at line 285 of file SelectableImpl.h.
References zypp::sat::Solvable::multiversionInstall(), zypp::PoolItem::satSolvable(), and theObj().
Referenced by defaultCandidate(), dumpOn(), setPickStatus(), and updateCandidateObj().
bool zypp::ui::Selectable::Impl::pickInstall | ( | const PoolItem & | pi_r, | |
ResStatus::TransactByValue | causer_r, | |||
bool | yesno_r | |||
) |
Definition at line 416 of file SelectableImpl.cc.
References identicalInstalled(), zypp::ui::S_Install, zypp::ui::S_KeepInstalled, zypp::ui::S_NoInst, zypp::ui::S_Update, and setPickStatus().
bool zypp::ui::Selectable::Impl::pickDelete | ( | const PoolItem & | pi_r, | |
ResStatus::TransactByValue | causer_r, | |||
bool | yesno_r | |||
) |
Definition at line 423 of file SelectableImpl.cc.
References zypp::ui::S_Del, zypp::ui::S_KeepInstalled, and setPickStatus().
Definition at line 529 of file SelectableImpl.cc.
References availableBegin(), availableEnd(), for_, ident(), zypp::sat::Solvable::ident(), installedBegin(), installedEnd(), zypp::ResStatus::isByUser(), zypp::traits::isPseudoInstalled(), kind(), zypp::ui::S_AutoDel, zypp::ui::S_AutoInstall, zypp::ui::S_AutoUpdate, zypp::ui::S_Del, zypp::ui::S_Install, zypp::ui::S_KeepInstalled, zypp::ui::S_NoInst, zypp::ui::S_Protected, zypp::ui::S_Taboo, zypp::ui::S_Update, zypp::PoolItem::satSolvable(), status(), zypp::PoolItem::status(), and zypp::ResStatus::transacts().
Referenced by dumpOn().
bool zypp::ui::Selectable::Impl::setPickStatus | ( | const PoolItem & | pi_r, | |
Status | state_r, | |||
ResStatus::TransactByValue | causer_r | |||
) |
Definition at line 428 of file SelectableImpl.cc.
References availableBegin(), availableEnd(), for_, zypp::ui::StatusBackup::forEach(), ident(), zypp::sat::Solvable::ident(), installedBegin(), installedEnd(), zypp::ResStatus::isInstalled(), zypp::ui::StatusBackup::lock(), multiversionInstall(), zypp::ui::StatusBackup::restore(), zypp::ui::S_AutoDel, zypp::ui::S_AutoInstall, zypp::ui::S_AutoUpdate, zypp::ui::S_Del, zypp::ui::S_Install, zypp::ui::S_KeepInstalled, zypp::ui::S_NoInst, zypp::ui::S_Protected, zypp::ui::S_Taboo, zypp::ui::S_Update, zypp::PoolItem::satSolvable(), zypp::ui::StatusBackup::setTransactFalse(), zypp::ui::StatusBackup::setTransactTrue(), zypp::ResStatus::SOLVER, zypp::PoolItem::status(), zypp::ui::StatusBackup::transact(), zypp::ui::StatusBackup::unlock(), and zypp::ResStatus::USER.
Referenced by pickDelete(), and pickInstall().
bool zypp::ui::Selectable::Impl::isUndetermined | ( | ) | const [inline] |
Definition at line 298 of file SelectableImpl.h.
References candidateObj(), and zypp::PoolItem::isUndetermined().
bool zypp::ui::Selectable::Impl::isRelevant | ( | ) | const [inline] |
Definition at line 303 of file SelectableImpl.h.
References candidateObj(), and zypp::PoolItem::isRelevant().
bool zypp::ui::Selectable::Impl::isSatisfied | ( | ) | const [inline] |
Definition at line 308 of file SelectableImpl.h.
References candidateObj(), and zypp::PoolItem::isSatisfied().
bool zypp::ui::Selectable::Impl::isBroken | ( | ) | const [inline] |
Definition at line 313 of file SelectableImpl.h.
References candidateObj(), and zypp::PoolItem::isBroken().
ResStatus::TransactByValue zypp::ui::Selectable::Impl::modifiedBy | ( | ) | const |
Return who caused the modification.
Definition at line 598 of file SelectableImpl.cc.
References candidateObj(), zypp::ResStatus::getTransactByValue(), installedObj(), zypp::ResStatus::SOLVER, status(), zypp::PoolItem::status(), and zypp::ResStatus::transacts().
bool zypp::ui::Selectable::Impl::hasLicenceConfirmed | ( | ) | const [inline] |
Return value of LicenceConfirmed bit.
Definition at line 323 of file SelectableImpl.h.
References candidateObj(), zypp::ResStatus::isLicenceConfirmed(), and zypp::PoolItem::status().
void zypp::ui::Selectable::Impl::setLicenceConfirmed | ( | bool | val_r | ) | [inline] |
Set LicenceConfirmed bit.
Definition at line 327 of file SelectableImpl.h.
References candidateObj(), zypp::ResStatus::setLicenceConfirmed(), and zypp::PoolItem::status().
PoolItem zypp::ui::Selectable::Impl::transactingInstalled | ( | ) | const [inline, private] |
Definition at line 331 of file SelectableImpl.h.
References for_, installedBegin(), and installedEnd().
Referenced by installedObj().
PoolItem zypp::ui::Selectable::Impl::transactingCandidate | ( | ) | const [inline, private] |
Definition at line 341 of file SelectableImpl.h.
References availableBegin(), availableEnd(), and for_.
Referenced by candidateObj(), and setCandidate().
PoolItem zypp::ui::Selectable::Impl::defaultCandidate | ( | ) | const [inline, private] |
Definition at line 351 of file SelectableImpl.h.
References _availableItems, zypp::Arch_noarch, availableBegin(), availableEnd(), zypp::VendorAttr::equivalent(), installedBegin(), installedEmpty(), installedEnd(), zypp::VendorAttr::instance(), zypp::ZConfig::instance(), and multiversionInstall().
Referenced by Impl().
bool zypp::ui::Selectable::Impl::allCandidatesLocked | ( | ) | const [inline, private] |
Definition at line 388 of file SelectableImpl.h.
References _availableItems, availableBegin(), and availableEnd().
Referenced by status().
bool zypp::ui::Selectable::Impl::allInstalledLocked | ( | ) | const [inline, private] |
Definition at line 399 of file SelectableImpl.h.
References _installedItems, installedBegin(), and installedEnd().
Referenced by status().
std::ostream & operator<< | ( | std::ostream & | str, | |
const Selectable::Impl & | obj | |||
) | [related] |
Stream output
Definition at line 427 of file SelectableImpl.h.
References availableSize(), candidateObj(), installedSize(), kind(), name(), and status().
std::ostream & dumpOn | ( | std::ostream & | str, | |
const Selectable::Impl & | obj | |||
) | [related] |
Stream output
Definition at line 436 of file SelectableImpl.h.
References availableBegin(), availableEmpty(), availableEnd(), availableSize(), candidateObj(), for_, installedBegin(), installedEmpty(), installedEnd(), installedObj(), installedSize(), kind(), multiversionInstall(), name(), picklistBegin(), picklistEmpty(), picklistEnd(), picklistSize(), pickStatus(), status(), and updateCandidateObj().
const IdString zypp::ui::Selectable::Impl::_ident [private] |
const ResObject::Kind zypp::ui::Selectable::Impl::_kind [private] |
const std::string zypp::ui::Selectable::Impl::_name [private] |
Definition at line 415 of file SelectableImpl.h.
Referenced by allInstalledLocked(), identicalInstalled(), Impl(), installedBegin(), installedEmpty(), installedEnd(), installedObj(), installedSize(), and picklist().
Definition at line 416 of file SelectableImpl.h.
Referenced by allCandidatesLocked(), availableBegin(), availableEmpty(), availableEnd(), availableSize(), defaultCandidate(), identicalAvailable(), and Impl().
Best among availabe with restpect to installed.
Definition at line 418 of file SelectableImpl.h.
Referenced by candidateObj(), Impl(), and updateCandidateObj().
The object selected by setCandidateObj() method.
Definition at line 420 of file SelectableImpl.h.
Referenced by candidateObj(), and setCandidate().
scoped_ptr<PickList> zypp::ui::Selectable::Impl::_picklistPtr [mutable, private] |
lazy initialized picklist
Definition at line 422 of file SelectableImpl.h.
Referenced by picklist().