Public Types | |
typedef Selectable::Impl::available_const_iterator | available_const_iterator |
Public Member Functions | |
StatusHelper (const Selectable::Impl &impl, ResStatus::TransactByValue causer_r) | |
bool | hasInstalled () const |
bool | hasCandidate () const |
bool | hasInstalledOnly () const |
bool | hasCandidateOnly () const |
bool | hasBoth () const |
Topevel methods must restore status on failure. | |
bool | setInstall () |
bool | setDelete () |
bool | unset () |
bool | setProtected () |
bool | setTaboo () |
Private Member Functions | |
bool | restore () |
Helper methods backup status but do not replay. | |
bool | resetTransactingCandidates () |
bool | unlockCandidates () |
bool | lockCandidates () |
Private Attributes | |
const Selectable::Impl & | _impl |
PoolItem | inst |
PoolItem | cand |
ResStatus::TransactByValue | causer |
StatusBackup | backup |
Definition at line 128 of file SelectableImpl.cc.
Definition at line 137 of file SelectableImpl.cc.
zypp::ui::StatusHelper::StatusHelper | ( | const Selectable::Impl & | impl, | |
ResStatus::TransactByValue | causer_r | |||
) | [inline] |
Definition at line 130 of file SelectableImpl.cc.
bool zypp::ui::StatusHelper::hasInstalled | ( | ) | const [inline] |
bool zypp::ui::StatusHelper::hasCandidate | ( | ) | const [inline] |
bool zypp::ui::StatusHelper::hasInstalledOnly | ( | ) | const [inline] |
bool zypp::ui::StatusHelper::hasCandidateOnly | ( | ) | const [inline] |
bool zypp::ui::StatusHelper::hasBoth | ( | ) | const [inline] |
bool zypp::ui::StatusHelper::setInstall | ( | ) | [inline] |
Definition at line 159 of file SelectableImpl.cc.
References _impl, backup, cand, causer, for_, inst, zypp::ui::Selectable::Impl::installedBegin(), zypp::ui::Selectable::Impl::installedEnd(), restore(), zypp::ResStatus::setLock(), zypp::ResStatus::setTransact(), zypp::ResStatus::SOLVER, zypp::PoolItem::status(), and unlockCandidates().
bool zypp::ui::StatusHelper::setDelete | ( | ) | [inline] |
Definition at line 187 of file SelectableImpl.cc.
References _impl, backup, causer, for_, inst, zypp::ui::Selectable::Impl::installedBegin(), zypp::ui::Selectable::Impl::installedEnd(), resetTransactingCandidates(), restore(), zypp::ResStatus::setLock(), and zypp::ResStatus::setTransact().
bool zypp::ui::StatusHelper::unset | ( | ) | [inline] |
Definition at line 203 of file SelectableImpl.cc.
References _impl, backup, causer, for_, inst, zypp::ui::Selectable::Impl::installedBegin(), zypp::ui::Selectable::Impl::installedEnd(), restore(), zypp::ResStatus::setLock(), zypp::ResStatus::setTransact(), and unlockCandidates().
bool zypp::ui::StatusHelper::setProtected | ( | ) | [inline] |
Definition at line 218 of file SelectableImpl.cc.
References _impl, causer, for_, inst, zypp::ui::Selectable::Impl::installedBegin(), zypp::ui::Selectable::Impl::installedEnd(), resetTransactingCandidates(), and zypp::ResStatus::USER.
bool zypp::ui::StatusHelper::setTaboo | ( | ) | [inline] |
Definition at line 235 of file SelectableImpl.cc.
References cand, causer, lockCandidates(), and zypp::ResStatus::USER.
bool zypp::ui::StatusHelper::resetTransactingCandidates | ( | ) | [inline, private] |
Definition at line 251 of file SelectableImpl.cc.
References _impl, zypp::ui::Selectable::Impl::availableBegin(), zypp::ui::Selectable::Impl::availableEnd(), backup, causer, for_, and zypp::ResStatus::setTransact().
Referenced by setDelete(), and setProtected().
bool zypp::ui::StatusHelper::unlockCandidates | ( | ) | [inline, private] |
Definition at line 260 of file SelectableImpl.cc.
References _impl, zypp::ui::Selectable::Impl::availableBegin(), zypp::ui::Selectable::Impl::availableEnd(), backup, causer, for_, zypp::ResStatus::setLock(), and zypp::ResStatus::setTransact().
Referenced by setInstall(), and unset().
bool zypp::ui::StatusHelper::lockCandidates | ( | ) | [inline, private] |
Definition at line 270 of file SelectableImpl.cc.
References _impl, zypp::ui::Selectable::Impl::availableBegin(), zypp::ui::Selectable::Impl::availableEnd(), backup, causer, for_, zypp::ResStatus::setLock(), and zypp::ResStatus::setTransact().
Referenced by setTaboo().
bool zypp::ui::StatusHelper::restore | ( | ) | [inline, private] |
Definition at line 289 of file SelectableImpl.cc.
References backup, and zypp::ui::StatusBackup::restore().
Referenced by setDelete(), setInstall(), and unset().
const Selectable::Impl& zypp::ui::StatusHelper::_impl [private] |
Definition at line 283 of file SelectableImpl.cc.
Referenced by lockCandidates(), resetTransactingCandidates(), setDelete(), setInstall(), setProtected(), unlockCandidates(), and unset().
PoolItem zypp::ui::StatusHelper::inst [private] |
Definition at line 284 of file SelectableImpl.cc.
Referenced by hasBoth(), hasCandidateOnly(), hasInstalled(), hasInstalledOnly(), setDelete(), setInstall(), setProtected(), and unset().
PoolItem zypp::ui::StatusHelper::cand [private] |
Definition at line 285 of file SelectableImpl.cc.
Referenced by hasBoth(), hasCandidate(), hasCandidateOnly(), hasInstalledOnly(), setInstall(), and setTaboo().
Definition at line 286 of file SelectableImpl.cc.
Referenced by lockCandidates(), resetTransactingCandidates(), setDelete(), setInstall(), setProtected(), setTaboo(), unlockCandidates(), and unset().
StatusBackup zypp::ui::StatusHelper::backup [private] |
Definition at line 290 of file SelectableImpl.cc.
Referenced by lockCandidates(), resetTransactingCandidates(), restore(), setDelete(), setInstall(), unlockCandidates(), and unset().