libzypp  13.10.6
zypp::ui::StatusBackup Class Reference

Simple ResStatus backup stack. More...

Public Types

typedef ResStatus::TransactByValue Causer
 
typedef bool(StatusBackup::* Action )(const PoolItem &, Causer)
 Highlevel action. More...
 

Public Member Functions

ResStatusbackup (ResStatus &status_r)
 Backup status. More...
 
ResStatusbackup (const PoolItem &pi_r)
 
ResStatusoperator() (ResStatus &status_r)
 Backup status. More...
 
ResStatusoperator() (const PoolItem &pi_r)
 
bool restore ()
 Restore all status. More...
 
bool setTransact (const PoolItem &pi_r, bool yesno_r, Causer causer_r)
 lowlevel ResStatus::setTransact More...
 
bool setLock (const PoolItem &pi_r, bool yesno_r, Causer causer_r)
 lowlevel ResStatus::setLock More...
 
bool setTransactTrue (const PoolItem &pi_r, Causer causer_r)
 lowlevel ResStatus::setTransact(true). More...
 
bool setTransactFalse (const PoolItem &pi_r, Causer causer_r)
 lowlevel ResStatus::setTransact(false). More...
 
bool transact (const PoolItem &pi_r, Causer causer_r)
 highevel set transact (force unlock). More...
 
bool lock (const PoolItem &pi_r, Causer causer_r)
 highlevel set locked. More...
 
bool unlock (const PoolItem &pi_r, Causer causer_r)
 highlevel unlock (also unsets transact). More...
 
template<class _Iter >
bool forEach (_Iter begin_r, _Iter end_r, Action action_r, Causer causer_r)
 Highlevel action on range of items. More...
 

Private Attributes

std::vector
< resstatus::StatusBackup
_backup
 

Detailed Description

Simple ResStatus backup stack.

restore simply rewinds all remembered status.

Definition at line 29 of file SelectableImpl.cc.

Member Typedef Documentation

typedef bool(StatusBackup::* zypp::ui::StatusBackup::Action)(const PoolItem &, Causer)

Highlevel action.

Definition at line 106 of file SelectableImpl.cc.

Member Function Documentation

ResStatus& zypp::ui::StatusBackup::backup ( ResStatus status_r)
inline

Backup status.

Definition at line 36 of file SelectableImpl.cc.

ResStatus& zypp::ui::StatusBackup::backup ( const PoolItem pi_r)
inline

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.

ResStatus& zypp::ui::StatusBackup::operator() ( ResStatus status_r)
inline

Backup status.

Definition at line 46 of file SelectableImpl.cc.

ResStatus& zypp::ui::StatusBackup::operator() ( const PoolItem pi_r)
inline

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.

bool zypp::ui::StatusBackup::restore ( )
inline

Restore all status.

Definition at line 53 of file SelectableImpl.cc.

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.

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.

bool zypp::ui::StatusBackup::setTransactTrue ( const PoolItem pi_r,
Causer  causer_r 
)
inline

lowlevel ResStatus::setTransact(true).

Definition at line 70 of file SelectableImpl.cc.

bool zypp::ui::StatusBackup::setTransactFalse ( const PoolItem pi_r,
Causer  causer_r 
)
inline

lowlevel ResStatus::setTransact(false).

Definition at line 74 of file SelectableImpl.cc.

bool zypp::ui::StatusBackup::transact ( const PoolItem pi_r,
Causer  causer_r 
)
inline

highevel set transact (force unlock).

Definition at line 79 of file SelectableImpl.cc.

bool zypp::ui::StatusBackup::lock ( const PoolItem pi_r,
Causer  causer_r 
)
inline

highlevel set locked.

Definition at line 88 of file SelectableImpl.cc.

bool zypp::ui::StatusBackup::unlock ( const PoolItem pi_r,
Causer  causer_r 
)
inline

highlevel unlock (also unsets transact).

Definition at line 97 of file SelectableImpl.cc.

template<class _Iter >
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.

Member Data Documentation

std::vector<resstatus::StatusBackup> zypp::ui::StatusBackup::_backup
private

Definition at line 119 of file SelectableImpl.cc.


The documentation for this class was generated from the following file: