libzypp 17.31.23
|
Selectable implementation. More...
#include <ui/SelectableImpl.h>
Public Member Functions | |
template<class TIterator > | |
Impl (const ResKind &kind_r, const std::string &name_r, TIterator begin_r, TIterator end_r) | |
IdString | ident () const |
ResKind | 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). | |
PoolItem | candidateObj () const |
Best among available objects. | |
PoolItem | setCandidate (const PoolItem &newCandidate_r, ResStatus::TransactByValue causer_r) |
Set a userCandidate (out of available objects). | |
PoolItem | candidateObjFrom (Repository repo_r) const |
The best candidate provided by a specific Repository, if there is one. | |
PoolItem | updateCandidateObj () const |
The best candidate for update, if there is one. | |
PoolItem | highestAvailableVersionObj () const |
Simply the highest available version, ignoring priorities and policies. | |
bool | identIsAutoInstalled () const |
Whether this ident is flagged as AutoInstalled. | |
bool | identicalAvailable (const PoolItem &rhs) const |
True if rhs is installed and one with the same content is available. | |
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 . | |
PoolItem | identicalInstalledObj (const PoolItem &rhs) const |
\Return an installed Object with the same content as rhs . | |
PoolItem | theObj () const |
Best among all objects. | |
bool | availableEmpty () const |
available_size_type | availableSize () const |
available_iterator | availableBegin () const |
available_iterator | availableEnd () const |
Iterable< available_iterator > | available () const |
bool | installedEmpty () const |
installed_size_type | installedSize () const |
installed_iterator | installedBegin () const |
installed_iterator | installedEnd () const |
Iterable< installed_iterator > | installed () const |
const PickList & | picklist () const |
bool | picklistEmpty () const |
picklist_size_type | picklistSize () const |
picklist_iterator | picklistBegin () const |
picklist_iterator | picklistEnd () const |
bool | hasBlacklisted () const |
bool | hasBlacklistedInstalled () const |
bool | hasRetracted () const |
bool | hasRetractedInstalled () const |
bool | hasPtf () const |
bool | hasPtfInstalled () 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. | |
bool | hasLicenceConfirmed () const |
Return value of LicenceConfirmed bit. | |
void | setLicenceConfirmed (bool val_r) |
Set LicenceConfirmed bit. | |
bool | hasLocks () const |
True if it includes locked items (don't mix this with the locked status). | |
Private Member Functions | |
PoolItem | transactingInstalled () const |
PoolItem | transactingCandidate () const |
PoolItem | defaultCandidate () const |
bool | allCandidatesLocked () const |
bool | allInstalledLocked () const |
Private Attributes | |
const IdString | _ident |
const ResKind | _kind |
const std::string | _name |
InstalledItemSet | _installedItems |
AvailableItemSet | _availableItems |
PoolItem | _candidate |
The object selected by setCandidateObj() method. | |
scoped_ptr< PickList > | _picklistPtr |
lazy initialized picklist | |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const Selectable::Impl &obj) |
Stream output. | |
std::ostream & | dumpOn (std::ostream &str, const Selectable::Impl &obj) |
Stream output. | |
Selectable implementation.
Definition at line 42 of file SelectableImpl.h.
Definition at line 46 of file SelectableImpl.h.
Definition at line 47 of file SelectableImpl.h.
typedef SelectableTraits::available_const_iterator zypp::ui::Selectable::Impl::available_const_iterator |
Definition at line 48 of file SelectableImpl.h.
Definition at line 49 of file SelectableImpl.h.
Definition at line 51 of file SelectableImpl.h.
Definition at line 52 of file SelectableImpl.h.
typedef SelectableTraits::installed_const_iterator zypp::ui::Selectable::Impl::installed_const_iterator |
Definition at line 53 of file SelectableImpl.h.
Definition at line 54 of file SelectableImpl.h.
Definition at line 56 of file SelectableImpl.h.
|
inline |
Definition at line 60 of file SelectableImpl.h.
|
inline |
Definition at line 79 of file SelectableImpl.h.
|
inline |
Definition at line 83 of file SelectableImpl.h.
|
inline |
Definition at line 87 of file SelectableImpl.h.
Status zypp::ui::Selectable::Impl::status | ( | ) | const |
Definition at line 322 of file SelectableImpl.cc.
bool zypp::ui::Selectable::Impl::setStatus | ( | Status | state_r, |
ResStatus::TransactByValue | causer_r | ||
) |
Definition at line 355 of file SelectableImpl.cc.
|
inline |
Installed object (transacting ot highest version).
Definition at line 97 of file SelectableImpl.h.
|
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.
PoolItem zypp::ui::Selectable::Impl::setCandidate | ( | const PoolItem & | newCandidate_r, |
ResStatus::TransactByValue | causer_r | ||
) |
Set a userCandidate (out of available objects).
Definition at line 396 of file SelectableImpl.cc.
|
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.
|
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 146 of file SelectableImpl.h.
|
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 180 of file SelectableImpl.h.
|
inline |
Whether this ident is flagged as AutoInstalled.
Definition at line 199 of file SelectableImpl.h.
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 203 of file SelectableImpl.h.
True
if rhs has the same content as an installed one.
Basically the same name, edition, arch, vendor and buildtime.
Definition at line 207 of file SelectableImpl.h.
Return an available Object with the same content as rhs
.
Basically the same name, edition, arch, vendor and buildtime.
Definition at line 211 of file SelectableImpl.h.
\Return an installed Object with the same content as rhs
.
Basically the same name, edition, arch, vendor and buildtime.
Definition at line 225 of file SelectableImpl.h.
|
inline |
Best among all objects.
Definition at line 239 of file SelectableImpl.h.
|
inline |
Definition at line 249 of file SelectableImpl.h.
|
inline |
Definition at line 252 of file SelectableImpl.h.
|
inline |
Definition at line 255 of file SelectableImpl.h.
|
inline |
Definition at line 258 of file SelectableImpl.h.
|
inline |
Definition at line 261 of file SelectableImpl.h.
|
inline |
Definition at line 266 of file SelectableImpl.h.
|
inline |
Definition at line 269 of file SelectableImpl.h.
|
inline |
Definition at line 272 of file SelectableImpl.h.
|
inline |
Definition at line 275 of file SelectableImpl.h.
|
inline |
Definition at line 278 of file SelectableImpl.h.
|
inline |
Definition at line 283 of file SelectableImpl.h.
|
inline |
Definition at line 299 of file SelectableImpl.h.
|
inline |
Definition at line 302 of file SelectableImpl.h.
|
inline |
Definition at line 305 of file SelectableImpl.h.
|
inline |
Definition at line 308 of file SelectableImpl.h.
|
inline |
Definition at line 312 of file SelectableImpl.h.
|
inline |
Definition at line 317 of file SelectableImpl.h.
|
inline |
Definition at line 326 of file SelectableImpl.h.
|
inline |
Definition at line 337 of file SelectableImpl.h.
|
inline |
Definition at line 346 of file SelectableImpl.h.
|
inline |
Definition at line 357 of file SelectableImpl.h.
|
inline |
Definition at line 367 of file SelectableImpl.h.
|
inline |
Definition at line 370 of file SelectableImpl.h.
bool zypp::ui::Selectable::Impl::pickInstall | ( | const PoolItem & | pi_r, |
ResStatus::TransactByValue | causer_r, | ||
bool | yesno_r | ||
) |
Definition at line 438 of file SelectableImpl.cc.
bool zypp::ui::Selectable::Impl::pickDelete | ( | const PoolItem & | pi_r, |
ResStatus::TransactByValue | causer_r, | ||
bool | yesno_r | ||
) |
Definition at line 445 of file SelectableImpl.cc.
Definition at line 573 of file SelectableImpl.cc.
bool zypp::ui::Selectable::Impl::setPickStatus | ( | const PoolItem & | pi_r, |
Status | state_r, | ||
ResStatus::TransactByValue | causer_r | ||
) |
Definition at line 450 of file SelectableImpl.cc.
|
inline |
Definition at line 390 of file SelectableImpl.h.
|
inline |
Definition at line 395 of file SelectableImpl.h.
|
inline |
Definition at line 400 of file SelectableImpl.h.
|
inline |
Definition at line 405 of file SelectableImpl.h.
ResStatus::TransactByValue zypp::ui::Selectable::Impl::modifiedBy | ( | ) | const |
Return who caused the modification.
Definition at line 642 of file SelectableImpl.cc.
|
inline |
Return value of LicenceConfirmed bit.
Definition at line 415 of file SelectableImpl.h.
|
inline |
Set LicenceConfirmed bit.
Definition at line 419 of file SelectableImpl.h.
|
inline |
True if it includes locked items (don't mix this with the locked status).
This is also true
for partially locked items, where only specific versions are locked.
Definition at line 423 of file SelectableImpl.h.
|
inlineprivate |
Definition at line 439 of file SelectableImpl.h.
|
inlineprivate |
Definition at line 449 of file SelectableImpl.h.
|
inlineprivate |
Definition at line 459 of file SelectableImpl.h.
|
inlineprivate |
Definition at line 494 of file SelectableImpl.h.
|
inlineprivate |
Definition at line 504 of file SelectableImpl.h.
|
related |
Stream output.
Definition at line 529 of file SelectableImpl.h.
|
related |
Stream output.
Definition at line 538 of file SelectableImpl.h.
|
private |
Definition at line 516 of file SelectableImpl.h.
|
private |
Definition at line 517 of file SelectableImpl.h.
|
private |
Definition at line 518 of file SelectableImpl.h.
|
private |
Definition at line 519 of file SelectableImpl.h.
|
private |
Definition at line 520 of file SelectableImpl.h.
|
private |
The object selected by setCandidateObj() method.
Definition at line 522 of file SelectableImpl.h.
|
mutableprivate |
lazy initialized picklist
Definition at line 524 of file SelectableImpl.h.