zypp::ui::StatusHelper Struct Reference

List of all members.

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

Definition at line 137 of file SelectableImpl.cc.


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.

References inst.

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

Definition at line 145 of file SelectableImpl.cc.

References cand.

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

Definition at line 148 of file SelectableImpl.cc.

References cand, and inst.

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

Definition at line 151 of file SelectableImpl.cc.

References cand, and inst.

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

Definition at line 154 of file SelectableImpl.cc.

References cand, and inst.

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

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

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

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

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]

bool zypp::ui::StatusHelper::unlockCandidates (  )  [inline, private]

bool zypp::ui::StatusHelper::lockCandidates (  )  [inline, private]

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().


Member Data Documentation


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

doxygen