libzypp  13.10.6
zypp::ui::StatusHelper Struct Reference

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
 

Detailed Description

Todo:
Unify status and pickStatus.

Definition at line 128 of file SelectableImpl.cc.

Member Typedef Documentation

Constructor & Destructor Documentation

zypp::ui::StatusHelper::StatusHelper ( const Selectable::Impl impl,
ResStatus::TransactByValue  causer_r 
)
inline

Definition at line 130 of file SelectableImpl.cc.

Member Function Documentation

bool zypp::ui::StatusHelper::hasInstalled ( ) const
inline

Definition at line 142 of file SelectableImpl.cc.

bool zypp::ui::StatusHelper::hasCandidate ( ) const
inline

Definition at line 145 of file SelectableImpl.cc.

bool zypp::ui::StatusHelper::hasInstalledOnly ( ) const
inline

Definition at line 148 of file SelectableImpl.cc.

bool zypp::ui::StatusHelper::hasCandidateOnly ( ) const
inline

Definition at line 151 of file SelectableImpl.cc.

bool zypp::ui::StatusHelper::hasBoth ( ) const
inline

Definition at line 154 of file SelectableImpl.cc.

bool zypp::ui::StatusHelper::setInstall ( )
inline

Definition at line 159 of file SelectableImpl.cc.

bool zypp::ui::StatusHelper::setDelete ( )
inline

Definition at line 187 of file SelectableImpl.cc.

bool zypp::ui::StatusHelper::unset ( )
inline

Definition at line 203 of file SelectableImpl.cc.

bool zypp::ui::StatusHelper::setProtected ( )
inline

Definition at line 218 of file SelectableImpl.cc.

bool zypp::ui::StatusHelper::setTaboo ( )
inline

Definition at line 235 of file SelectableImpl.cc.

bool zypp::ui::StatusHelper::resetTransactingCandidates ( )
inlineprivate

Definition at line 251 of file SelectableImpl.cc.

bool zypp::ui::StatusHelper::unlockCandidates ( )
inlineprivate

Definition at line 260 of file SelectableImpl.cc.

bool zypp::ui::StatusHelper::lockCandidates ( )
inlineprivate

Definition at line 270 of file SelectableImpl.cc.

bool zypp::ui::StatusHelper::restore ( )
inlineprivate

Definition at line 289 of file SelectableImpl.cc.

Member Data Documentation

const Selectable::Impl& zypp::ui::StatusHelper::_impl
private

Definition at line 283 of file SelectableImpl.cc.

PoolItem zypp::ui::StatusHelper::inst
private

Definition at line 284 of file SelectableImpl.cc.

PoolItem zypp::ui::StatusHelper::cand
private

Definition at line 285 of file SelectableImpl.cc.

ResStatus::TransactByValue zypp::ui::StatusHelper::causer
private

Definition at line 286 of file SelectableImpl.cc.

StatusBackup zypp::ui::StatusHelper::backup
private

Definition at line 290 of file SelectableImpl.cc.


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