libzypp  17.3.1
zypp::target::RpmRemovePackageReceiver Class Reference

#include <TargetCallbackReceiver.h>

Inheritance diagram for zypp::target::RpmRemovePackageReceiver:

Public Member Functions

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

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 69 of file TargetCallbackReceiver.h.

Constructor & Destructor Documentation

◆ RpmRemovePackageReceiver()

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

◆ ~RpmRemovePackageReceiver()

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

Definition at line 119 of file TargetCallbackReceiver.cc.

Member Function Documentation

◆ reportbegin()

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

◆ reportend()

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

◆ start()

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

Start the operation.

Definition at line 132 of file TargetCallbackReceiver.cc.

◆ progress()

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

Inform about progress Return true on abort.

Definition at line 142 of file TargetCallbackReceiver.cc.

◆ aborted()

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

Returns true if removing is aborted during progress.

Definition at line 98 of file TargetCallbackReceiver.h.

◆ problem()

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

inform user about a problem

Definition at line 149 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 170 of file TargetCallbackReceiver.cc.

◆ finish() [1/2]

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

Finish operation in case of success.

Definition at line 176 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 183 of file TargetCallbackReceiver.cc.

Member Data Documentation

◆ _report

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

Definition at line 72 of file TargetCallbackReceiver.h.

◆ _resolvable

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

Definition at line 73 of file TargetCallbackReceiver.h.

◆ _abort

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

Definition at line 74 of file TargetCallbackReceiver.h.

◆ _finishInfo

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

Definition at line 75 of file TargetCallbackReceiver.h.


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