libzypp  15.28.6
zypp::repo::DownloadResolvableReport Struct Reference

#include <ZYppCallbacks.h>

Inheritance diagram for zypp::repo::DownloadResolvableReport:

Public Types

enum  Action { ABORT, RETRY, IGNORE }
 
enum  Error { NO_ERROR, NOT_FOUND, IO, INVALID }
 
- Public Types inherited from zypp::callback::ReportBase
typedef callback::UserData UserData
 
typedef UserData::ContentType ContentType
 

Public Member Functions

virtual void infoInCache (Resolvable::constPtr res_r, const Pathname &localfile_r)
 Hint that package is available in the local cache (no download needed). More...
 
virtual void start (Resolvable::constPtr, const Url &)
 
virtual void startDeltaDownload (const Pathname &, const ByteCount &)
 
virtual bool progressDeltaDownload (int)
 
virtual void problemDeltaDownload (const std::string &)
 
virtual void finishDeltaDownload ()
 
virtual void startDeltaApply (const Pathname &)
 
virtual void progressDeltaApply (int)
 
virtual void problemDeltaApply (const std::string &)
 
virtual void finishDeltaApply ()
 
virtual bool progress (int, Resolvable::constPtr)
 
virtual Action problem (Resolvable::constPtr, Error, const std::string &)
 
virtual void pkgGpgCheck (const UserData &userData_r=UserData())
 Detail information about the result of a performed pkgGpgCheck. More...
 
virtual void finish (Resolvable::constPtr, Error, const std::string &)
 
- Public Member Functions inherited from zypp::callback::ReportBase
virtual void report (const UserData &userData_r=UserData())
 The most generic way of sending/receiving data. More...
 
virtual ~ReportBase ()
 

Detailed Description

Definition at line 100 of file ZYppCallbacks.h.

Member Enumeration Documentation

Enumerator
ABORT 
RETRY 
IGNORE 

Definition at line 102 of file ZYppCallbacks.h.

Enumerator
NO_ERROR 
NOT_FOUND 
IO 
INVALID 

Definition at line 108 of file ZYppCallbacks.h.

Member Function Documentation

virtual void zypp::repo::DownloadResolvableReport::infoInCache ( Resolvable::constPtr  res_r,
const Pathname &  localfile_r 
)
inlinevirtual

Hint that package is available in the local cache (no download needed).

This will be the only trigger for an already cached package.

Definition at line 118 of file ZYppCallbacks.h.

virtual void zypp::repo::DownloadResolvableReport::start ( Resolvable::constPtr  ,
const Url  
)
inlinevirtual

Definition at line 121 of file ZYppCallbacks.h.

virtual void zypp::repo::DownloadResolvableReport::startDeltaDownload ( const Pathname &  ,
const ByteCount  
)
inlinevirtual

Definition at line 132 of file ZYppCallbacks.h.

virtual bool zypp::repo::DownloadResolvableReport::progressDeltaDownload ( int  )
inlinevirtual

Definition at line 135 of file ZYppCallbacks.h.

virtual void zypp::repo::DownloadResolvableReport::problemDeltaDownload ( const std::string &  )
inlinevirtual

Definition at line 138 of file ZYppCallbacks.h.

virtual void zypp::repo::DownloadResolvableReport::finishDeltaDownload ( )
inlinevirtual

Definition at line 141 of file ZYppCallbacks.h.

virtual void zypp::repo::DownloadResolvableReport::startDeltaApply ( const Pathname &  )
inlinevirtual

Definition at line 148 of file ZYppCallbacks.h.

virtual void zypp::repo::DownloadResolvableReport::progressDeltaApply ( int  )
inlinevirtual

Definition at line 151 of file ZYppCallbacks.h.

virtual void zypp::repo::DownloadResolvableReport::problemDeltaApply ( const std::string &  )
inlinevirtual

Definition at line 154 of file ZYppCallbacks.h.

virtual void zypp::repo::DownloadResolvableReport::finishDeltaApply ( )
inlinevirtual

Definition at line 157 of file ZYppCallbacks.h.

virtual bool zypp::repo::DownloadResolvableReport::progress ( int  ,
Resolvable::constPtr   
)
inlinevirtual

Definition at line 161 of file ZYppCallbacks.h.

virtual Action zypp::repo::DownloadResolvableReport::problem ( Resolvable::constPtr  ,
Error  ,
const std::string &   
)
inlinevirtual

Definition at line 164 of file ZYppCallbacks.h.

virtual void zypp::repo::DownloadResolvableReport::pkgGpgCheck ( const UserData userData_r = UserData())
inlinevirtual

Detail information about the result of a performed pkgGpgCheck.

Userdata sent:

Parameters
ResObjectResObject::constPtr of the downloaded package (Package or SrcPackage)
LocalpathPathname to downloaded package on disk
CheckPackageResultRpmDb::CheckPackageResult of signature check
CheckPackageDetailRpmDb::CheckPackageDetail logmessages of rpm signature check

Userdata accepted:

Parameters
ActionDownloadResolvableReport::Action user advice how to behave on error (ABORT). If you set just an empty value here, a default probelm report will be triggered.

Legacy data:

Parameters
PackageReplaced by "ResObject" in 16.10.0. Package::constPtr of the package (nullptr in case of a SrcPackage)

Definition at line 186 of file ZYppCallbacks.h.

virtual void zypp::repo::DownloadResolvableReport::finish ( Resolvable::constPtr  ,
Error  ,
const std::string &   
)
inlinevirtual

Definition at line 189 of file ZYppCallbacks.h.


The documentation for this struct was generated from the following file: