#include <zypp-core/zyppng/ui/progressobserver.h>
|
| | ZYPP_DECL_PRIVATE_CONSTR_ARGS (ProgressObserver, const std::string &label=std::string(), int steps=100) |
| |
| void | setBaseSteps (int steps) |
| |
| int | baseSteps () const |
| |
| int | steps () const |
| |
| void | reset () |
| |
| void | setCurrent (double curr) |
| |
| void | setFinished () |
| |
| void | inc (double inc=1.0, const std::optional< std::string > &newLabel={}) |
| |
| double | progress () const |
| |
| double | current () const |
| |
| const std::vector< zyppng::ProgressObserverRef > & | children () |
| |
| void | setLabel (const std::string &label) |
| |
| const std::string & | label () const |
| |
| void | registerSubTask (const ProgressObserverRef &child, float weight=1.0) |
| |
| zypp::ProgressData::ReceiverFnc | makeProgressDataReceiver () |
| |
| | 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) |
| |
|
| 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) |
| |
| std::unique_ptr< BasePrivate > | d_ptr |
| |
Definition at line 27 of file progressobserver.h.
◆ ZYPP_DECL_PRIVATE_CONSTR_ARGS()
| zyppng::ProgressObserver::ZYPP_DECL_PRIVATE_CONSTR_ARGS |
( |
ProgressObserver | , |
|
|
const std::string & | label = std::string(), |
|
|
int | steps = 100 ) |
◆ setBaseSteps()
| void zyppng::ProgressObserver::setBaseSteps |
( |
int | steps | ) |
|
◆ baseSteps()
| int zyppng::ProgressObserver::baseSteps |
( |
| ) |
const |
◆ steps()
| int zyppng::ProgressObserver::steps |
( |
| ) |
const |
◆ reset()
| void zyppng::ProgressObserver::reset |
( |
| ) |
|
◆ setCurrent()
| void zyppng::ProgressObserver::setCurrent |
( |
double | curr | ) |
|
◆ setFinished()
| void zyppng::ProgressObserver::setFinished |
( |
| ) |
|
◆ inc()
| void zyppng::ProgressObserver::inc |
( |
double | inc = 1.0, |
|
|
const std::optional< std::string > & | newLabel = {} ) |
◆ progress()
| double zyppng::ProgressObserver::progress |
( |
| ) |
const |
◆ current()
| double zyppng::ProgressObserver::current |
( |
| ) |
const |
◆ children()
| const std::vector< ProgressObserverRef > & zyppng::ProgressObserver::children |
( |
| ) |
|
◆ setLabel()
| void zyppng::ProgressObserver::setLabel |
( |
const std::string & | label | ) |
|
◆ label()
| const std::string & zyppng::ProgressObserver::label |
( |
| ) |
const |
◆ registerSubTask()
| void zyppng::ProgressObserver::registerSubTask |
( |
const ProgressObserverRef & | child, |
|
|
float | weight = 1.0 ) |
◆ makeProgressDataReceiver()
◆ sigLabelChanged
◆ sigStepsChanged
◆ sigValueChanged
◆ sigProgressChanged
◆ sigFinished
◆ sigNewSubprogress
The documentation for this class was generated from the following files: