libzypp  17.1.1
zypp::JobReport Class Reference

Generic report for sending messages. More...

#include <ZYppCallbacks.h>

Inheritance diagram for zypp::JobReport:

Classes

struct  EMsgTypeDef
 message type (use like 'enum class MsgType') More...
 

Public Types

typedef base::EnumClass< EMsgTypeDefMsgType
 'enum class MsgType' More...
 
typedef callback::UserData UserData
 typsafe map of userdata More...
 
- Public Types inherited from zypp::callback::ReportBase
typedef callback::UserData UserData
 
typedef UserData::ContentType ContentType
 

Public Member Functions

virtual bool message (MsgType type_r, const std::string &msg_r, const UserData &userData_r) const
 Send a ready to show message text. More...
 
- 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 ()
 

Static Public Member Functions

Static sender instance
static callback::SendReport< JobReport > & instance ()
 Singleton sender instance. More...
 
static bool debug (const std::string &msg_r, const UserData &userData_r=UserData())
 send debug message text More...
 
static bool info (const std::string &msg_r, const UserData &userData_r=UserData())
 send message text More...
 
static bool warning (const std::string &msg_r, const UserData &userData_r=UserData())
 send warning text More...
 
static bool error (const std::string &msg_r, const UserData &userData_r=UserData())
 send error text More...
 
static bool important (const std::string &msg_r, const UserData &userData_r=UserData())
 send important message text More...
 
static bool data (const std::string &msg_r, const UserData &userData_r=UserData())
 send data message More...
 

Detailed Description

Generic report for sending messages.

Definition at line 788 of file ZYppCallbacks.h.

Member Typedef Documentation

◆ MsgType

typedef base::EnumClass<EMsgTypeDef> zypp::JobReport::MsgType

'enum class MsgType'

Definition at line 795 of file ZYppCallbacks.h.

◆ UserData

typsafe map of userdata

Definition at line 798 of file ZYppCallbacks.h.

Member Function Documentation

◆ message()

virtual bool zypp::JobReport::message ( MsgType  type_r,
const std::string &  msg_r,
const UserData userData_r 
) const
inlinevirtual

Send a ready to show message text.

Definition at line 802 of file ZYppCallbacks.h.

◆ instance()

callback::SendReport< JobReport > & zypp::JobReport::instance ( )
static

Singleton sender instance.

Definition at line 50 of file ZYppImpl.cc.

◆ debug()

static bool zypp::JobReport::debug ( const std::string &  msg_r,
const UserData userData_r = UserData() 
)
inlinestatic

send debug message text

Definition at line 812 of file ZYppCallbacks.h.

◆ info()

static bool zypp::JobReport::info ( const std::string &  msg_r,
const UserData userData_r = UserData() 
)
inlinestatic

send message text

Definition at line 816 of file ZYppCallbacks.h.

◆ warning()

static bool zypp::JobReport::warning ( const std::string &  msg_r,
const UserData userData_r = UserData() 
)
inlinestatic

send warning text

Definition at line 820 of file ZYppCallbacks.h.

◆ error()

static bool zypp::JobReport::error ( const std::string &  msg_r,
const UserData userData_r = UserData() 
)
inlinestatic

send error text

Definition at line 824 of file ZYppCallbacks.h.

◆ important()

static bool zypp::JobReport::important ( const std::string &  msg_r,
const UserData userData_r = UserData() 
)
inlinestatic

send important message text

Definition at line 828 of file ZYppCallbacks.h.

◆ data()

static bool zypp::JobReport::data ( const std::string &  msg_r,
const UserData userData_r = UserData() 
)
inlinestatic

send data message

Definition at line 832 of file ZYppCallbacks.h.


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