zypp::target::RpmInstallPackageReceiver Class Reference

#include <TargetCallbackReceiver.h>

Inheritance diagram for zypp::target::RpmInstallPackageReceiver:
[legend]

List of all members.

Public Member Functions

 RpmInstallPackageReceiver (Resolvable::constPtr res)
virtual ~RpmInstallPackageReceiver ()
virtual void reportbegin ()
virtual void reportend ()
virtual void start (const Pathname &name)
 Start the operation.
void tryLevel (target::rpm::InstallResolvableReport::RpmLevel level_r)
bool aborted () const
virtual bool progress (unsigned percent)
 Inform about progress Return true on abort.
virtual
rpm::RpmInstallReport::Action 
problem (Exception &excpt_r)
 inform user about a problem
virtual void finish ()
 Finish operation in case of success.
virtual void finish (Exception &excpt_r)
 Finish operatin in case of fail, report fail exception.

Private Attributes

callback::SendReport
< rpm::InstallResolvableReport
_report
Resolvable::constPtr _resolvable
target::rpm::InstallResolvableReport::RpmLevel _level
bool _abort


Detailed Description

Definition at line 25 of file TargetCallbackReceiver.h.


Constructor & Destructor Documentation

zypp::target::RpmInstallPackageReceiver::RpmInstallPackageReceiver ( Resolvable::constPtr  res  ) 

Definition at line 24 of file TargetCallbackReceiver.cc.

zypp::target::RpmInstallPackageReceiver::~RpmInstallPackageReceiver (  )  [virtual]

Definition at line 32 of file TargetCallbackReceiver.cc.


Member Function Documentation

void zypp::target::RpmInstallPackageReceiver::reportbegin (  )  [virtual]

Reimplemented from zypp::callback::ReceiveReport< _Report >.

Definition at line 36 of file TargetCallbackReceiver.cc.

void zypp::target::RpmInstallPackageReceiver::reportend (  )  [virtual]

Reimplemented from zypp::callback::ReceiveReport< _Report >.

Definition at line 40 of file TargetCallbackReceiver.cc.

void zypp::target::RpmInstallPackageReceiver::start ( const Pathname &  name  )  [virtual]

Start the operation.

Definition at line 45 of file TargetCallbackReceiver.cc.

References _abort, _report, and _resolvable.

void zypp::target::RpmInstallPackageReceiver::tryLevel ( target::rpm::InstallResolvableReport::RpmLevel  level_r  ) 

Definition at line 95 of file TargetCallbackReceiver.cc.

References _level.

bool zypp::target::RpmInstallPackageReceiver::aborted (  )  const [inline]

Definition at line 47 of file TargetCallbackReceiver.h.

References _abort.

bool zypp::target::RpmInstallPackageReceiver::progress ( unsigned  percent  )  [virtual]

Inform about progress Return true on abort.

Definition at line 55 of file TargetCallbackReceiver.cc.

References _abort, _report, and _resolvable.

rpm::RpmInstallReport::Action zypp::target::RpmInstallPackageReceiver::problem ( Exception excpt_r  )  [virtual]

inform user about a problem

Definition at line 62 of file TargetCallbackReceiver.cc.

References _level, _report, _resolvable, zypp::target::rpm::RpmInstallReport::ABORT, zypp::target::rpm::InstallResolvableReport::ABORT, zypp::Exception::asUserString(), zypp::target::rpm::RpmInstallReport::IGNORE, zypp::target::rpm::InstallResolvableReport::IGNORE, zypp::target::rpm::InstallResolvableReport::INVALID, zypp::target::rpm::RpmInstallReport::problem(), zypp::target::rpm::RpmInstallReport::RETRY, and zypp::target::rpm::InstallResolvableReport::RETRY.

void zypp::target::RpmInstallPackageReceiver::finish (  )  [virtual]

Finish operation in case of success.

Definition at line 84 of file TargetCallbackReceiver.cc.

References _level, _report, _resolvable, and zypp::target::rpm::InstallResolvableReport::NO_ERROR.

void zypp::target::RpmInstallPackageReceiver::finish ( Exception excpt_r  )  [virtual]

Finish operatin in case of fail, report fail exception.

Finish operation in case of success.

Definition at line 90 of file TargetCallbackReceiver.cc.

References _level, _report, _resolvable, and zypp::target::rpm::InstallResolvableReport::INVALID.


Member Data Documentation

callback::SendReport<rpm::InstallResolvableReport> zypp::target::RpmInstallPackageReceiver::_report [private]

Definition at line 28 of file TargetCallbackReceiver.h.

Referenced by finish(), problem(), progress(), and start().

Resolvable::constPtr zypp::target::RpmInstallPackageReceiver::_resolvable [private]

Definition at line 29 of file TargetCallbackReceiver.h.

Referenced by finish(), problem(), progress(), and start().

target::rpm::InstallResolvableReport::RpmLevel zypp::target::RpmInstallPackageReceiver::_level [private]

Definition at line 30 of file TargetCallbackReceiver.h.

Referenced by finish(), problem(), and tryLevel().

bool zypp::target::RpmInstallPackageReceiver::_abort [private]

Definition at line 31 of file TargetCallbackReceiver.h.

Referenced by aborted(), progress(), and start().


The documentation for this class was generated from the following files:
Generated on Tue Sep 25 19:23:28 2007 for libzypp by  doxygen 1.5.3