#include <TargetCallbackReceiver.h>
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 |
Definition at line 25 of file TargetCallbackReceiver.h.
| 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.
| 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 | ) |
| bool zypp::target::RpmInstallPackageReceiver::aborted | ( | ) | const [inline] |
| 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.
callback::SendReport<rpm::InstallResolvableReport> zypp::target::RpmInstallPackageReceiver::_report [private] |
Definition at line 28 of file TargetCallbackReceiver.h.
Referenced by finish(), problem(), progress(), and start().
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().
1.5.3