libzypp 17.35.9
|
#include <zypp-core/zyppng/ui/userrequest.h>
Public Types | |
enum class | MType { Debug , Info , Warning , Error , Important , Data } |
![]() | |
using | Ptr = std::shared_ptr<Base> |
using | WeakPtr = std::weak_ptr<Base> |
Public Member Functions | |
ZYPP_DECL_PRIVATE_CONSTR_ARGS (ShowMessageRequest, std::string message, MType mType=MType::Info, UserData data={}) | |
UserRequestType | type () const override |
MType | messageType () |
const std::string & | message () const |
![]() | |
UserRequest (UserData userData={}) | |
~UserRequest () override | |
const UserData & | userData () const |
UserData & | userData () |
![]() | |
Base () | |
virtual | ~Base () |
WeakPtr | parent () const |
void | addChild (const Base::Ptr &child) |
void | removeChild (const Ptr &child) |
const std::unordered_set< Ptr > & | children () const |
std::thread::id | threadId () const |
template<typename T > | |
std::vector< std::weak_ptr< T > > | findChildren () const |
template<typename T > | |
std::shared_ptr< T > | shared_this () const |
template<typename T > | |
std::shared_ptr< T > | shared_this () |
template<typename T > | |
std::weak_ptr< T > | weak_this () const |
template<typename T > | |
std::weak_ptr< T > | weak_this () |
template<typename SenderFunc , typename ReceiverFunc > | |
auto | connect (SenderFunc &&sFun, typename internal::MemberFunction< ReceiverFunc >::ClassType &recv, ReceiverFunc &&rFunc) |
template<typename SenderFunc , typename ReceiverFunc , typename ... Tracker> | |
std::enable_if_t< std::is_member_function_pointer_v< SenderFunc >, connection > | connectFunc (SenderFunc &&sFun, ReceiverFunc &&rFunc, const Tracker &...trackers) |
Private Attributes | |
MType | _type = MType::Info |
std::string | _message |
Additional Inherited Members | |
![]() | |
template<typename Obj , typename Functor > | |
static decltype(auto) | make_base_slot (Obj *o, Functor &&f) |
template<typename SenderFunc , typename ReceiverFunc > | |
static auto | connect (typename internal::MemberFunction< SenderFunc >::ClassType &s, SenderFunc &&sFun, typename internal::MemberFunction< ReceiverFunc >::ClassType &recv, ReceiverFunc &&rFunc) |
template<typename SenderFunc , typename ReceiverFunc , typename ... Tracker> | |
static auto | connectFunc (typename internal::MemberFunction< SenderFunc >::ClassType &s, SenderFunc &&sFun, ReceiverFunc &&rFunc, const Tracker &...trackers) |
![]() | |
Base (BasePrivate &dd) | |
![]() | |
std::unique_ptr< BasePrivate > | d_ptr |
The ShowMessageRequest class represents a simple informal message that the code needs to print on the users screen
Definition at line 71 of file userrequest.h.
Enumerator | |
---|---|
Debug | |
Info | |
Warning | |
Error | |
Important | |
Data |
Definition at line 76 of file userrequest.h.
zyppng::ShowMessageRequest::ZYPP_DECL_PRIVATE_CONSTR_ARGS | ( | ShowMessageRequest | , |
std::string | message, | ||
MType | mType = MType::Info, | ||
UserData | data = {} ) |
|
overridevirtual |
Implements zyppng::UserRequest.
Definition at line 38 of file userrequest.cc.
ShowMessageRequest::MType zyppng::ShowMessageRequest::messageType | ( | ) |
Definition at line 43 of file userrequest.cc.
const std::string & zyppng::ShowMessageRequest::message | ( | ) | const |
Definition at line 48 of file userrequest.cc.
|
private |
Definition at line 87 of file userrequest.h.
|
private |
Definition at line 88 of file userrequest.h.