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

Definition at line 126 of file TargetCallbackReceiver.cc.

Member Function Documentation

◆ reportbegin()

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

◆ reportend()

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

◆ report()

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

Start the operation.

Forwards generic reports.

Definition at line 139 of file TargetCallbackReceiver.cc.

◆ start()

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

Definition at line 146 of file TargetCallbackReceiver.cc.

◆ progress()

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

Inform about progress Return true on abort.

Definition at line 156 of file TargetCallbackReceiver.cc.

◆ aborted()

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

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)
virtual

inform user about a problem

Definition at line 163 of file TargetCallbackReceiver.cc.

◆ finishInfo()

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

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

Definition at line 184 of file TargetCallbackReceiver.cc.

◆ finish() [1/2]

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

Finish operation in case of success.

Definition at line 190 of file TargetCallbackReceiver.cc.

◆ finish() [2/2]

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

Finish operatin in case of fail, report fail exception.

Finish operation in case of success.

Definition at line 197 of file TargetCallbackReceiver.cc.

Member Data Documentation

◆ _report

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

Definition at line 75 of file TargetCallbackReceiver.h.

◆ _resolvable

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

Definition at line 76 of file TargetCallbackReceiver.h.

◆ _abort

bool zypp::target::RpmRemovePackageReceiver::_abort
private

Definition at line 77 of file TargetCallbackReceiver.h.

◆ _finishInfo

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

Definition at line 78 of file TargetCallbackReceiver.h.


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