libzypp 17.31.0
zypp::target::rpm::SingleTransReport Struct Reference

Report active throughout the whole rpm transaction. More...

#include <ZYppCallbacks.h>

Inheritance diagram for zypp::target::rpm::SingleTransReport:

Public Types

enum class  loglevel {
  dbg , msg , war , err ,
  crt
}
 Rendering hint for log-lines to show. More...
 
- Public Types inherited from zypp::callback::ReportBase
typedef callback::UserData UserData
 
typedef UserData::ContentType ContentType
 

Static Public Member Functions

static const char *const loglevelPrefix (loglevel level_r)
 Suggested prefix for log-lines to show. More...
 

Static Public Attributes

static const UserData::ContentType contentLogline { "zypp-rpm", "logline" }
 "zypp-rpm/logline" report a line suitable to be written to the screen. More...
 

Additional Inherited Members

- 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

Report active throughout the whole rpm transaction.

The report covers events not directly related to an individual sub-task. Mostly log lines.

Todo:
maybe include the sub-task reports here as well, so it becomes the only report needed to follow the transaction.

Definition at line 681 of file ZYppCallbacks.h.

Member Enumeration Documentation

◆ loglevel

Rendering hint for log-lines to show.

Enumerator
dbg 
msg 
war 
err 
crt 

Definition at line 690 of file ZYppCallbacks.h.

Member Function Documentation

◆ loglevelPrefix()

static const char *const zypp::target::rpm::SingleTransReport::loglevelPrefix ( loglevel  level_r)
inlinestatic

Suggested prefix for log-lines to show.

Definition at line 692 of file ZYppCallbacks.h.

Member Data Documentation

◆ contentLogline

const callback::UserData::ContentType zypp::target::rpm::SingleTransReport::contentLogline { "zypp-rpm", "logline" }
static

"zypp-rpm/logline" report a line suitable to be written to the screen.

UserData: "line" : std::reference_wrapper<const std::string>; the line to show "level" : enum class loglevel; rendering hint

Definition at line 688 of file ZYppCallbacks.h.


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