Public Types | |
typedef ResStatus::TransactByValue | Causer |
typedef bool(StatusBackup::* | Action )(const PoolItem &, Causer) |
Highlevel action. | |
Public Member Functions | |
ResStatus & | backup (ResStatus &status_r) |
Backup status. | |
ResStatus & | backup (const PoolItem &pi_r) |
ResStatus & | operator() (ResStatus &status_r) |
Backup status. | |
ResStatus & | operator() (const PoolItem &pi_r) |
bool | restore () |
Restore all status. | |
bool | setTransact (const PoolItem &pi_r, bool yesno_r, Causer causer_r) |
lowlevel ResStatus::setTransact | |
bool | setLock (const PoolItem &pi_r, bool yesno_r, Causer causer_r) |
lowlevel ResStatus::setLock | |
bool | setTransactTrue (const PoolItem &pi_r, Causer causer_r) |
lowlevel ResStatus::setTransact(true) . | |
bool | setTransactFalse (const PoolItem &pi_r, Causer causer_r) |
lowlevel ResStatus::setTransact(false) . | |
bool | transact (const PoolItem &pi_r, Causer causer_r) |
highevel set transact (force unlock). | |
bool | lock (const PoolItem &pi_r, Causer causer_r) |
highlevel set locked. | |
bool | unlock (const PoolItem &pi_r, Causer causer_r) |
highlevel unlock (also unsets transact). | |
template<class _Iter > | |
bool | forEach (_Iter begin_r, _Iter end_r, Action action_r, Causer causer_r) |
Highlevel action on range of items. | |
Private Attributes | |
std::vector < resstatus::StatusBackup > | _backup |
restore simply rewinds all remembered status.
Definition at line 29 of file SelectableImpl.cc.
Definition at line 32 of file SelectableImpl.cc.
typedef bool(StatusBackup::* zypp::ui::StatusBackup::Action)(const PoolItem &, Causer) |
Backup status.
Definition at line 36 of file SelectableImpl.cc.
References _backup.
Referenced by lock(), operator()(), setLock(), setTransact(), transact(), and unlock().
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 42 of file SelectableImpl.cc.
References backup(), and zypp::PoolItem::status().
Referenced by backup().
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 49 of file SelectableImpl.cc.
References backup(), and zypp::PoolItem::status().
bool zypp::ui::StatusBackup::restore | ( | ) | [inline] |
Restore all status.
Definition at line 53 of file SelectableImpl.cc.
Referenced by zypp::ui::StatusHelper::restore(), and zypp::ui::Selectable::Impl::setPickStatus().
bool zypp::ui::StatusBackup::setTransact | ( | const PoolItem & | pi_r, | |
bool | yesno_r, | |||
Causer | causer_r | |||
) | [inline] |
lowlevel ResStatus::setTransact
Definition at line 62 of file SelectableImpl.cc.
References backup(), and zypp::ResStatus::setTransact().
Referenced by setTransactFalse(), and setTransactTrue().
bool zypp::ui::StatusBackup::setLock | ( | const PoolItem & | pi_r, | |
bool | yesno_r, | |||
Causer | causer_r | |||
) | [inline] |
lowlevel ResStatus::setLock
Definition at line 66 of file SelectableImpl.cc.
References backup(), and zypp::ResStatus::setLock().
lowlevel ResStatus::setTransact(true)
.
Definition at line 70 of file SelectableImpl.cc.
References setTransact().
Referenced by zypp::ui::Selectable::Impl::setPickStatus().
lowlevel ResStatus::setTransact(false)
.
Definition at line 74 of file SelectableImpl.cc.
References setTransact().
Referenced by zypp::ui::Selectable::Impl::setPickStatus().
highevel set transact (force unlock).
Definition at line 79 of file SelectableImpl.cc.
References backup(), zypp::ResStatus::setLock(), and zypp::ResStatus::setTransact().
Referenced by zypp::ui::Selectable::Impl::setPickStatus().
highlevel set locked.
Definition at line 88 of file SelectableImpl.cc.
References backup(), zypp::ResStatus::setLock(), and zypp::ResStatus::setTransact().
Referenced by zypp::ui::Selectable::Impl::setPickStatus().
highlevel unlock (also unsets transact).
Definition at line 97 of file SelectableImpl.cc.
References backup(), zypp::ResStatus::setLock(), and zypp::ResStatus::setTransact().
Referenced by zypp::ui::Selectable::Impl::setPickStatus().
bool zypp::ui::StatusBackup::forEach | ( | _Iter | begin_r, | |
_Iter | end_r, | |||
Action | action_r, | |||
Causer | causer_r | |||
) | [inline] |
Highlevel action on range of items.
Definition at line 110 of file SelectableImpl.cc.
References for_.
Referenced by zypp::ui::Selectable::Impl::setPickStatus().
std::vector<resstatus::StatusBackup> zypp::ui::StatusBackup::_backup [private] |