Libkdepim
progressmanager.cpp
19ProgressItem::ProgressItem(ProgressItem *parent, const QString &id, const QString &label, const QString &status, bool canBeCanceled, CryptoStatus cryptoStatus)
227ProgressManager::createProgressItem(const QString &id, const QString &label, const QString &status, bool canBeCanceled, ProgressItem::CryptoStatus cryptoStatus)
254 return instance()->createProgressItemImpl(nullptr, getUniqueID(), label, QString(), true, KPIM::ProgressItem::Unencrypted);
257ProgressItem *ProgressManager::createProgressItem(unsigned int progressType, const QString &label)
259 return instance()->createProgressItemImpl(nullptr, getUniqueID(), label, QString(), true, KPIM::ProgressItem::Unencrypted, progressType);
282 connect(t, &ProgressItem::progressItemCompleted, this, &ProgressManager::slotTransactionCompleted);
288 connect(t, &ProgressItem::progressItemCryptoStatus, this, &ProgressManager::progressItemCryptoStatus);
289 connect(t, &ProgressItem::progressItemUsesBusyIndicator, this, &ProgressManager::progressItemUsesBusyIndicator);
void progressItemAdded(KPIM::ProgressItem *)
Emitted when a new ProgressItem is added.
void setStatus(const QString &v)
Set the string to be used for showing this item's current status.
Definition progressmanager.cpp:153
void setProgress(unsigned int v)
Set the progress (percentage of completion) value of this item.
Definition progressmanager.cpp:120
bool usesBusyIndicator() const
Definition progressmanager.cpp:180
void setUsesBusyIndicator(bool useBusyIndicator)
Sets whether this item uses a busy indicator instead of real progress for its progress bar.
Definition progressmanager.cpp:185
void progressItemCryptoStatus(KPIM::ProgressItem *, KPIM::ProgressItem::CryptoStatus)
Emitted when the crypto status of an item changed.
void reset()
Reset the progress value of this item to 0 and the status string to the empty string.
Definition progressmanager.cpp:51
void progressItemLabel(KPIM::ProgressItem *, const QString &)
Emitted when the label of an item changed.
void progressItemCompleted(KPIM::ProgressItem *)
Emitted when a progress item was completed.
void progressItemStatus(KPIM::ProgressItem *, const QString &)
Emitted when the status message of an item changed.
void progressItemUsesBusyIndicator(KPIM::ProgressItem *item, bool value)
Emitted when the busy indicator state of an item changes.
void updateProgress()
Recalculate progress according to total/completed items and update.
Definition progressmanager.cpp:115
void progressItemProgress(KPIM::ProgressItem *, unsigned int)
Emitted when the progress value of an item changes.
void progressItemCanceled(KPIM::ProgressItem *)
Emitted when an item was canceled.
void setCryptoStatus(ProgressItem::CryptoStatus v)
Set whether this item uses encrypted communication, so listeners can display a nice crypto icon.
Definition progressmanager.cpp:174
The ProgressManager singleton keeps track of all ongoing transactions and notifies observers (progres...
Definition progressmanager.h:268
void progressItemAdded(KPIM::ProgressItem *)
void progressItemCanceled(KPIM::ProgressItem *)
void progressItemLabel(KPIM::ProgressItem *, const QString &)
static ProgressManager * instance()
Definition progressmanager.cpp:211
ProgressItem * singleItem() const
Definition progressmanager.cpp:329
void progressItemUsesBusyIndicator(KPIM::ProgressItem *, bool)
static QString getUniqueID()
Use this to acquire a unique id number which can be used to discern an operation from all others goin...
Definition progressmanager.cpp:216
void progressItemStatus(KPIM::ProgressItem *, const QString &)
void progressItemCryptoStatus(KPIM::ProgressItem *, KPIM::ProgressItem::CryptoStatus)
void progressItemProgress(KPIM::ProgressItem *, unsigned int)
void progressItemCompleted(KPIM::ProgressItem *)
void showProgressDialog()
Emitted when an operation requests the listeners to be shown.
static ProgressItem * createProgressItem(unsigned int progressType, const QString &label)
Creates a ProgressItem with a unique id and the given label.
Definition progressmanager.cpp:257
void slotStandardCancelHandler(KPIM::ProgressItem *item)
Calls setCompleted() on the item, to make sure it goes away.
Definition progressmanager.cpp:324
static void emitShowProgressDialog()
Ask all listeners to show the progress dialog, because there is something that wants to be shown.
Definition progressmanager.cpp:352
Q_SCRIPTABLE CaptureState status()
QString i18n(const char *text, const TYPE &arg...)
VehicleSection::Type type(QStringView coachNumber, QStringView coachClassification)
QString label(StandardShortcut id)
bool hasNext() const const
Item next()
const_iterator cbegin() const const
const_iterator cend() const const
iterator insert(const Key &key, const T &value)
bool isEmpty() const const
size_type remove(const Key &key)
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const
QString number(double n, char format, int precision)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 12:03:20 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 12:03:20 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.