libzypp 17.35.1
|
#include <zypp-core/zyppng/async/asyncop.h>
Public Member Functions | |
virtual bool | canCancel () |
virtual void | cancel () |
SignalProxy< void()> | sigStarted () |
SignalProxy< void()> | sigReady () |
![]() | |
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) |
Public Attributes | |
SignalProxy< void(const std::string &, int, int) | sigProgress )() |
Protected Attributes | |
Signal< void()> | _sigStarted |
Signal< void()> | _sigReady |
Signal< void(const std::string &, int, int) | _sigProgress ) |
![]() | |
std::unique_ptr< BasePrivate > | d_ptr |
Additional Inherited Members | |
![]() | |
using | Ptr = std::shared_ptr<Base> |
using | WeakPtr = std::weak_ptr<Base> |
![]() | |
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) | |
Explicitely cancels the async operation if it supports that, otherwise throws a CancelNotImplementedException
Generally every AsyncOp HAS TO support cancelling by releasing the last reference to it, however in some special cases we need to be able to cancel programatically from the backends and notify the frontends by returning a error from a AsyncOp.
|
inline |
|
inline |
|
inline |