|
Krita Source Code Documentation
|
#include <KoUpdaterPrivate_p.h>
Inheritance diagram for KoUpdaterPrivate:Public Slots | |
| void | cancel () |
| Cancel comes from KoUpdater. | |
| void | setAutoNestedName (const QString &name) |
| void | setHasValidRange (bool value) |
| void | setInterrupted (bool value=true) |
| void | setProgress (int percent) |
| progress comes from KoUpdater | |
Signals | |
| void | sigCancelled () |
| Emitted whenever the operation is cancelled by the downstream updater. | |
| void | sigUpdated () |
| Emitted whenever the progress changed. | |
Public Member Functions | |
| QString | autoNestedName () const |
| QPointer< KoUpdater > | connectedUpdater () const |
| bool | hasValidRange () const |
| bool | interrupted () const |
| bool | isCompleted () const |
| bool | isPersistent () const |
| KoUpdaterPrivate (int weight, const QString &name, bool isPersistent=false) | |
| QString | mergedSubTaskName () const |
| int | progress () const |
| QString | subTaskName () const |
| int | weight () const |
| ~KoUpdaterPrivate () override | |
Private Attributes | |
| QString | m_autoNestedName |
| QPointer< KoUpdater > | m_connectedUpdater |
| bool | m_hasValidRange |
| bool | m_interrupted |
| bool | m_isPersistent |
| int | m_progress |
| QString | m_subTaskName |
| int | m_weight |
KoUpdaterPrivate is the gui-thread side of KoUpdater. Communication between KoUpdater and KoUpdaterPrivate is handled through queued connections – this is the main app thread part of the KoUpdater-KoUpdaterPrivate bridge.
The gui thread can iterate over its list of KoUpdaterPrivate instances for the total progress computation: the queued signals from the threads will only arrive when the eventloop in the gui thread has a chance to deliver them.
Definition at line 28 of file KoUpdaterPrivate_p.h.
| KoUpdaterPrivate::KoUpdaterPrivate | ( | int | weight, |
| const QString & | name, | ||
| bool | isPersistent = false ) |
Definition at line 12 of file KoUpdaterPrivate_p.cpp.
|
override |
when deleting an updater, make sure the accompanying thread is interrupted, too.
Definition at line 25 of file KoUpdaterPrivate_p.cpp.
References m_connectedUpdater, and setInterrupted().
| QString KoUpdaterPrivate::autoNestedName | ( | ) | const |
Definition at line 31 of file KoUpdaterPrivate_p.cpp.
References m_autoNestedName.
|
slot |
Cancel comes from KoUpdater.
Definition at line 71 of file KoUpdaterPrivate_p.cpp.
References sigCancelled().
Definition at line 100 of file KoUpdaterPrivate_p.cpp.
References m_connectedUpdater.
| bool KoUpdaterPrivate::hasValidRange | ( | ) | const |
Definition at line 56 of file KoUpdaterPrivate_p.cpp.
References m_hasValidRange.
|
inline |
| bool KoUpdaterPrivate::isCompleted | ( | ) | const |
Definition at line 66 of file KoUpdaterPrivate_p.cpp.
References m_progress.
| bool KoUpdaterPrivate::isPersistent | ( | ) | const |
Definition at line 61 of file KoUpdaterPrivate_p.cpp.
References m_isPersistent.
| QString KoUpdaterPrivate::mergedSubTaskName | ( | ) | const |
Definition at line 41 of file KoUpdaterPrivate_p.cpp.
References m_autoNestedName, and m_subTaskName.
|
inline |
|
slot |
Definition at line 88 of file KoUpdaterPrivate_p.cpp.
References m_autoNestedName, and sigUpdated().
|
slot |
Definition at line 94 of file KoUpdaterPrivate_p.cpp.
References m_hasValidRange, sigUpdated(), and value().
|
slot |
Definition at line 76 of file KoUpdaterPrivate_p.cpp.
References m_connectedUpdater, m_interrupted, and value().
|
slot |
progress comes from KoUpdater
Definition at line 82 of file KoUpdaterPrivate_p.cpp.
References m_progress, and sigUpdated().
|
signal |
Emitted whenever the operation is cancelled by the downstream updater.
|
signal |
Emitted whenever the progress changed.
| QString KoUpdaterPrivate::subTaskName | ( | ) | const |
Definition at line 36 of file KoUpdaterPrivate_p.cpp.
References m_subTaskName.
|
inline |
|
private |
Definition at line 83 of file KoUpdaterPrivate_p.h.
Definition at line 87 of file KoUpdaterPrivate_p.h.
|
private |
Definition at line 85 of file KoUpdaterPrivate_p.h.
|
private |
Definition at line 82 of file KoUpdaterPrivate_p.h.
|
private |
Definition at line 86 of file KoUpdaterPrivate_p.h.
|
private |
Definition at line 80 of file KoUpdaterPrivate_p.h.
|
private |
Definition at line 84 of file KoUpdaterPrivate_p.h.
|
private |
Definition at line 81 of file KoUpdaterPrivate_p.h.