Poor man's save/restore state. | |
| |
| ResStatus | _savedStatus |
| void | saveState () const |
| void | restoreState () const |
| bool | sameState () const |
Public Member Functions | |
| Impl () | |
| Impl (ResObject::constPtr res_r, const ResStatus &status_r=ResStatus()) | |
| ResStatus & | status () const |
| ResStatus & | statusReset () const |
| ResObject::constPtr | resolvable () const |
| bool | autoprotect () const |
Static Public Member Functions | |
| static shared_ptr< Impl > | nullimpl () |
| Offer default Impl. | |
Private Attributes | |
| ResStatus | _status |
| ResObject::constPtr | _resolvable |
Related Functions | |
| (Note that these are not member functions.) | |
| std::ostream & | operator<< (std::ostream &str, const PoolItem_Ref::Impl &obj) |
| Stream output. | |
Definition at line 31 of file PoolItem.cc.
| zypp::PoolItem_Ref::Impl::Impl | ( | ) | [inline] |
Definition at line 33 of file PoolItem.cc.
| zypp::PoolItem_Ref::Impl::Impl | ( | ResObject::constPtr | res_r, | |
| const ResStatus & | status_r = ResStatus() | |||
| ) | [inline] |
| ResStatus& zypp::PoolItem_Ref::Impl::status | ( | ) | const [inline] |
| ResStatus& zypp::PoolItem_Ref::Impl::statusReset | ( | ) | const [inline] |
Definition at line 47 of file PoolItem.cc.
References _status, autoprotect(), zypp::ResStatus::resetTransact(), zypp::ResStatus::setLock(), and zypp::ResStatus::USER.
| ResObject::constPtr zypp::PoolItem_Ref::Impl::resolvable | ( | ) | const [inline] |
| bool zypp::PoolItem_Ref::Impl::autoprotect | ( | ) | const [inline] |
Definition at line 109 of file PoolItem.cc.
References _resolvable, _status, zypp::VendorAttr::autoProtect(), zypp::VendorAttr::instance(), zypp::ResStatus::isInstalled(), MIL, zypp::ResStatus::setLock(), and zypp::ResStatus::USER.
Referenced by Impl(), and statusReset().
| void zypp::PoolItem_Ref::Impl::saveState | ( | ) | const [inline] |
| void zypp::PoolItem_Ref::Impl::restoreState | ( | ) | const [inline] |
| bool zypp::PoolItem_Ref::Impl::sameState | ( | ) | const [inline] |
Definition at line 75 of file PoolItem.cc.
References _savedStatus, _status, zypp::ResStatus::getTransactValue(), zypp::ResStatus::isBySolver(), and zypp::ResStatus::isLicenceConfirmed().
| static shared_ptr<Impl> zypp::PoolItem_Ref::Impl::nullimpl | ( | ) | [inline, static] |
| std::ostream & operator<< | ( | std::ostream & | str, | |
| const PoolItem_Ref::Impl & | obj | |||
| ) | [related] |
ResStatus zypp::PoolItem_Ref::Impl::_status [mutable, private] |
Definition at line 63 of file PoolItem.cc.
Referenced by autoprotect(), restoreState(), sameState(), saveState(), status(), and statusReset().
ResStatus zypp::PoolItem_Ref::Impl::_savedStatus [mutable, private] |
Definition at line 85 of file PoolItem.cc.
Referenced by restoreState(), sameState(), and saveState().
1.5.3