libkdepim
progressmanager.cpp
Go to the documentation of this file.
214 ProgressItem *ProgressManager::createProgressItem(const QString &id, const QString &label, const QString &status, bool canBeCanceled, ProgressItem::CryptoStatus cryptoStatus)
220 ProgressItem *ProgressManager::createProgressItem(const QString &parent, const QString &id, const QString &label, const QString &status, bool canBeCanceled, ProgressItem::CryptoStatus cryptoStatus)
226 ProgressItem *ProgressManager::createProgressItem(ProgressItem *parent, const QString &id, const QString &label, const QString &status, bool canBeCanceled, ProgressItem::CryptoStatus cryptoStatus)
238 ProgressItem *ProgressManager::createProgressItem(unsigned int progressType, const QString &label)
276 connect ( t, SIGNAL(progressItemCryptoStatus(KPIM::ProgressItem*,KPIM::ProgressItem::CryptoStatus)),
298 return createProgressItemImpl( p, id, label, status, canBeCanceled, cryptoStatus, progressType );
static ProgressManager * instance()
Definition: progressmanager.cpp:199
void removeChild(ProgressItem *kiddo)
Definition: progressmanager.cpp:89
void setCryptoStatus(ProgressItem::CryptoStatus v)
Set whether this item uses crypted communication, so listeners can display a nice crypto icon...
Definition: progressmanager.cpp:168
bool hasNext() const
void progressItemProgress(KPIM::ProgressItem *, unsigned int)
Emitted when the progress value of an item changes.
void progressItemCompleted(KPIM::ProgressItem *)
void progressItemProgress(KPIM::ProgressItem *, unsigned int)
void updateProgress()
Recalculate progress according to total/completed items and update.
Definition: progressmanager.cpp:139
void progressItemLabel(KPIM::ProgressItem *, const QString &)
Emitted when the label of an item changed.
void progressItemStatus(KPIM::ProgressItem *, const QString &)
void progressItemLabel(KPIM::ProgressItem *, const QString &)
QList< Key > keys() const
QString number(int n, int base)
The ProgressManager singleton keeps track of all ongoing transactions and notifies observers (progres...
Definition: progressmanager.h:285
void setTypeProgressItem(unsigned int)
Definition: progressmanager.cpp:112
void reset()
Reset the progress value of this item to 0 and the status string to the empty string.
Definition: progressmanager.cpp:77
void progressItemUsesBusyIndicator(KPIM::ProgressItem *item, bool value)
Emitted when the busy indicator state of an item changes.
virtual ~ProgressManager()
Definition: progressmanager.cpp:194
void progressItemCryptoStatus(KPIM::ProgressItem *, KPIM::ProgressItem::CryptoStatus)
Emitted when the crypto status of an item changed.
void progressItemUsesBusyIndicator(KPIM::ProgressItem *, bool)
iterator end()
Item next()
void setProgress(unsigned int v)
Set the progress (percentage of completion) value of this item.
Definition: progressmanager.cpp:144
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:204
void setUsesBusyIndicator(bool useBusyIndicator)
Sets whether this item uses a busy indicator instead of real progress for its progress bar...
Definition: progressmanager.cpp:174
unsigned int typeProgressItem() const
Definition: progressmanager.cpp:107
void progressItemStatus(KPIM::ProgressItem *, const QString &)
Emitted when the status message of an item changed.
void slotStandardCancelHandler(KPIM::ProgressItem *item)
Calls setCompleted() on the item, to make sure it goes away.
Definition: progressmanager.cpp:314
Definition: progressmanager.h:45
void progressItemCompleted(KPIM::ProgressItem *)
Emitted when a progress item was completed.
void progressItemAdded(KPIM::ProgressItem *)
void progressItemCryptoStatus(KPIM::ProgressItem *, KPIM::ProgressItem::CryptoStatus)
iterator insert(const Key &key, const T &value)
bool isEmpty() const
void progressItemCanceled(KPIM::ProgressItem *)
Emitted when an item was canceled.
void progressItemCanceled(KPIM::ProgressItem *)
const T & value() const
void showProgressDialog()
Emitted when an operation requests the listeners to be shown.
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
int count(const Key &key) const
iterator begin()
static void emitShowProgressDialog()
Ask all listeners to show the progress dialog, because there is something that wants to be shown...
Definition: progressmanager.cpp:342
void setCanBeCanceled(bool b)
Definition: progressmanager.cpp:163
ProgressItem(ProgressItem *parent, const QString &id, const QString &label, const QString &status, bool isCancellable, CryptoStatus cryptoStatus)
Definition: progressmanager.cpp:34
ProgressItem * singleItem() const
Definition: progressmanager.cpp:319
void setStatus(const QString &v)
Set the string to be used for showing this item's current status.
Definition: progressmanager.cpp:157
int remove(const Key &key)
static ProgressItem * createProgressItem(unsigned int progressType, const QString &label)
Creates a ProgressItem with a unique id and the given label.
Definition: progressmanager.cpp:238
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.