#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 |
|
bool | started () const |
|
void | start () |
|
void | reset () |
|
void | setCurrent (double curr) |
|
void | setFinished (FinishResult result=Success) |
|
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) |
|
ProgressObserverRef | makeSubTask (float weight=1.0, const std::string &label=std::string(), int steps=100) |
|
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) |
|
|
static ProgressObserverRef | makeSubTask (ProgressObserverRef parentProgress, float weight=1.0, const std::string &label=std::string(), int steps=100) |
|
static void | start (ProgressObserverRef progress) |
|
static void | setup (ProgressObserverRef progress, const std::string &label=std::string(), int steps=100) |
|
static void | increase (ProgressObserverRef progress, double inc=1.0, const std::optional< std::string > &newLabel={}) |
|
static void | setCurrent (ProgressObserverRef progress, double curr) |
|
static void | setLabel (ProgressObserverRef progress, const std::string &label) |
|
static void | setSteps (ProgressObserverRef progress, int steps) |
|
static void | finish (ProgressObserverRef progress, ProgressObserver::FinishResult result=ProgressObserver::Success) |
|
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) |
|
Definition at line 27 of file progressobserver.h.
◆ FinishResult
◆ 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 |
◆ started()
bool zyppng::ProgressObserver::started |
( |
| ) |
const |
◆ start() [1/2]
void zyppng::ProgressObserver::start |
( |
| ) |
|
Tells the ProgressObserver to start sending signals on updates. If start was not called, no progress update or finished signals are emitted.
Calling start will also trigger all parent observers to be started, but not the children
Definition at line 163 of file progressobserver.cc.
◆ reset()
void zyppng::ProgressObserver::reset |
( |
| ) |
|
◆ setCurrent() [1/2]
void zyppng::ProgressObserver::setCurrent |
( |
double | curr | ) |
|
◆ 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 |
◆ makeSubTask() [1/2]
static ProgressObserverRef zyppng::ProgressObserver::makeSubTask |
( |
ProgressObserverRef | parentProgress, |
|
|
float | weight = 1.0, |
|
|
const std::string & | label = std::string(), |
|
|
int | steps = 100 ) |
|
inlinestatic |
◆ start() [2/2]
static void zyppng::ProgressObserver::start |
( |
ProgressObserverRef | progress | ) |
|
|
inlinestatic |
◆ setup()
static void zyppng::ProgressObserver::setup |
( |
ProgressObserverRef | progress, |
|
|
const std::string & | label = std::string(), |
|
|
int | steps = 100 ) |
|
inlinestatic |
◆ increase()
static void zyppng::ProgressObserver::increase |
( |
ProgressObserverRef | progress, |
|
|
double | inc = 1.0, |
|
|
const std::optional< std::string > & | newLabel = {} ) |
|
inlinestatic |
◆ setCurrent() [2/2]
static void zyppng::ProgressObserver::setCurrent |
( |
ProgressObserverRef | progress, |
|
|
double | curr ) |
|
inlinestatic |
◆ setLabel() [1/2]
static void zyppng::ProgressObserver::setLabel |
( |
ProgressObserverRef | progress, |
|
|
const std::string & | label ) |
|
inlinestatic |
◆ setSteps()
static void zyppng::ProgressObserver::setSteps |
( |
ProgressObserverRef | progress, |
|
|
int | steps ) |
|
inlinestatic |
◆ finish()
◆ children()
const std::vector< ProgressObserverRef > & zyppng::ProgressObserver::children |
( |
| ) |
|
◆ setLabel() [2/2]
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 ) |
◆ makeSubTask() [2/2]
ProgressObserverRef zyppng::ProgressObserver::makeSubTask |
( |
float | weight = 1.0, |
|
|
const std::string & | label = std::string(), |
|
|
int | steps = 100 ) |
◆ makeProgressDataReceiver()
◆ sigStarted
◆ sigLabelChanged
◆ sigStepsChanged
◆ sigValueChanged
◆ sigProgressChanged
◆ sigFinished
◆ sigNewSubprogress
The documentation for this class was generated from the following files: