libzypp 17.31.23
zypp::media::MediaChangeReport Struct Reference

#include <ZYppCallbacks.h>

Inheritance diagram for zypp::media::MediaChangeReport:

Public Types

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

Public Member Functions

virtual Action requestMedia (Url &, unsigned, const std::string &, Error, const std::string &, const std::vector< std::string > &, unsigned int &)
 
- Public Member Functions inherited from zypp::callback::ReportBase
virtual void report (const UserData &userData_r=UserData())
 The most generic way of sending/receiving data.
 
virtual ~ReportBase ()
 

Detailed Description

Definition at line 301 of file ZYppCallbacks.h.

Member Enumeration Documentation

◆ Action

Enumerator
ABORT 
RETRY 
IGNORE 
IGNORE_ID 
CHANGE_URL 
EJECT 

Definition at line 303 of file ZYppCallbacks.h.

◆ Error

Enumerator
NO_ERROR 
NOT_FOUND 
IO 
INVALID 
WRONG 
IO_SOFT 

IO error which can happen on worse connection like timeout exceed.

Definition at line 312 of file ZYppCallbacks.h.

Member Function Documentation

◆ requestMedia()

virtual Action zypp::media::MediaChangeReport::requestMedia ( Url ,
unsigned  ,
const std::string &  ,
Error  ,
const std::string &  ,
const std::vector< std::string > &  ,
unsigned int &   
)
inlinevirtual
Parameters
urlin: url for which the media is requested, out: url to use instead of the original one
mediumNrrequested medium number
labellabel of requested medium
errortype of error from Error enum
descriptionerror message (media not desired or error foo occured)
deviceslist of the available devices (for eject)
dev_currentin: index of the currently used device in the devices list out: index of the devices to be ejected in the devices list
Returns
Action (ABORT by default)

Definition at line 334 of file ZYppCallbacks.h.


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