libzypp 17.31.23
zypp::target::RpmRemovePackageReceiver Class Reference

#include <target/TargetCallbackReceiver.h>

Inheritance diagram for zypp::target::RpmRemovePackageReceiver:

Public Member Functions

 RpmRemovePackageReceiver (Resolvable::constPtr res)
virtual ~RpmRemovePackageReceiver ()
virtual void reportbegin ()
virtual void reportend ()
void report (const UserData &userData_r) override
 Start the operation.
virtual void start (const std::string &name)
virtual bool progress (unsigned percent)
 Inform about progress Return true on abort.
bool aborted () const
 Returns true if removing is aborted during progress.
virtual rpm::RpmRemoveReport::Action problem (Exception &excpt_r)
 inform user about a problem
virtual void finishInfo (const std::string &info_r)
 Additional rpm output to be reported in finish in case of success.
virtual void finish ()
 Finish operation in case of success.
virtual void finish (Exception &excpt_r)
 Finish operatin in case of fail, report fail exception.
- Public Member Functions inherited from zypp::callback::ReceiveReport< rpm::RpmRemoveReport >
virtual ~ReceiveReport ()
ReceiveReportwhoIsConnected () const
bool connected () const
void connect ()
void disconnect ()
virtual void reportbegin ()
virtual void reportend ()

Private Attributes

callback::SendReport< rpm::RemoveResolvableReport_report
Resolvable::constPtr _resolvable
bool _abort
std::string _finishInfo

Additional Inherited Members

- Public Types inherited from zypp::callback::ReceiveReport< rpm::RpmRemoveReport >
typedef rpm::RpmRemoveReport ReportType
typedef ReceiveReport< rpm::RpmRemoveReport > Receiver
typedef DistributeReport< rpm::RpmRemoveReport > Distributor

Detailed Description

Definition at line 72 of file TargetCallbackReceiver.h.

Constructor & Destructor Documentation

◆ RpmRemovePackageReceiver()

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

◆ ~RpmRemovePackageReceiver()

zypp::target::RpmRemovePackageReceiver::~RpmRemovePackageReceiver ( )

Definition at line 126 of file

Member Function Documentation

◆ reportbegin()

void zypp::target::RpmRemovePackageReceiver::reportbegin ( )

◆ reportend()

void zypp::target::RpmRemovePackageReceiver::reportend ( )

◆ report()

void zypp::target::RpmRemovePackageReceiver::report ( const UserData &  userData_r)

Start the operation.

Forwards generic reports.

Definition at line 139 of file

◆ start()

void zypp::target::RpmRemovePackageReceiver::start ( const std::string &  name)

Definition at line 146 of file

◆ progress()

bool zypp::target::RpmRemovePackageReceiver::progress ( unsigned  percent)

Inform about progress Return true on abort.

Definition at line 156 of file

◆ aborted()

bool zypp::target::RpmRemovePackageReceiver::aborted ( ) const

Returns true if removing is aborted during progress.

Definition at line 104 of file TargetCallbackReceiver.h.

◆ problem()

rpm::RpmRemoveReport::Action zypp::target::RpmRemovePackageReceiver::problem ( Exception excpt_r)

inform user about a problem

Definition at line 163 of file

◆ finishInfo()

void zypp::target::RpmRemovePackageReceiver::finishInfo ( const std::string &  info_r)

Additional rpm output to be reported in finish in case of success.

Definition at line 184 of file

◆ finish() [1/2]

void zypp::target::RpmRemovePackageReceiver::finish ( )

Finish operation in case of success.

Definition at line 190 of file

◆ finish() [2/2]

void zypp::target::RpmRemovePackageReceiver::finish ( Exception excpt_r)

Finish operatin in case of fail, report fail exception.

Finish operation in case of success.

Definition at line 197 of file

Member Data Documentation

◆ _report

callback::SendReport<rpm::RemoveResolvableReport> zypp::target::RpmRemovePackageReceiver::_report

Definition at line 75 of file TargetCallbackReceiver.h.

◆ _resolvable

Resolvable::constPtr zypp::target::RpmRemovePackageReceiver::_resolvable

Definition at line 76 of file TargetCallbackReceiver.h.

◆ _abort

bool zypp::target::RpmRemovePackageReceiver::_abort

Definition at line 77 of file TargetCallbackReceiver.h.

◆ _finishInfo

std::string zypp::target::RpmRemovePackageReceiver::_finishInfo

Definition at line 78 of file TargetCallbackReceiver.h.

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