26 #ifndef DIGIKAM_PROGRESS_MANAGER_H
27 #define DIGIKAM_PROGRESS_MANAGER_H
53 const QString& status,
62 void setShowAtStart(
bool showAtStart);
67 bool showAtStart()
const;
73 const QString& id()
const;
83 const QString& label()
const;
88 void setLabel(
const QString& v);
93 const QString& status()
const;
99 void setStatus(
const QString& v);
104 bool canBeCanceled()
const;
109 bool usesBusyIndicator()
const;
116 void setUsesBusyIndicator(
bool useBusyIndicator);
121 bool hasThumbnail()
const;
126 void setThumbnail(
const QIcon &icon);
131 unsigned int progress()
const;
137 void setProgress(
unsigned int v);
155 bool canceled()
const;
158 void setTotalItems(
unsigned int v);
159 void incTotalItems(
unsigned int v = 1);
160 unsigned int totalItems()
const;
161 bool setCompletedItems(
unsigned int v);
162 bool incCompletedItems(
unsigned int v = 1);
163 unsigned int completedItems()
const;
164 bool totalCompleted()
const;
169 void updateProgress();
176 bool advance(
unsigned int v);
286 bool isEmpty()
const;
313 QString getUniqueID();
326 static ProgressItem* createProgressItem(
const QString& label,
327 const QString& status = QString(),
328 bool canBeCanceled =
true,
329 bool hasThumb =
false);
346 const QString& label,
347 const QString& status = QString(),
348 bool canBeCanceled =
true,
349 bool hasThumb =
false);
355 static ProgressItem* createProgressItem(
const QString& parent,
357 const QString& label,
358 const QString& status = QString(),
359 bool canBeCanceled =
true,
360 bool hasThumb =
false);
365 static ProgressItem* createProgressItem(
const QString&
id,
366 const QString& label,
367 const QString& status = QString(),
368 bool canBeCanceled =
true,
369 bool hasThumb =
false);
384 static void emitShowProgressView();
453 void slotTransactionCompletedDeferred(
ProgressItem* item);
454 void slotTransactionViewIsEmpty();
464 void emitShowProgressViewImpl();
468 const QString& label,
469 const QString& status,
473 virtual ProgressItem* createProgressItemImpl(
const QString& parent,
475 const QString& label,
476 const QString& status,
487 friend class ProgressManagerCreator;
Definition: progressmanager.h:45
void progressItemUsesBusyIndicator(ProgressItem *item, bool value)
void progressItemCanceled(ProgressItem *)
void progressItemStatus(ProgressItem *, const QString &)
void progressItemCanceledById(const QString &id)
void progressItemAdded(ProgressItem *)
void progressItemThumbnail(ProgressItem *item, const QPixmap &thumb)
void progressItemCompleted(ProgressItem *)
void progressItemProgress(ProgressItem *, unsigned int)
void progressItemLabel(ProgressItem *, const QString &)
Definition: progressmanager.h:278
void progressItemCompleted(ProgressItem *)
void progressItemStatus(ProgressItem *, const QString &)
void progressItemThumbnail(ProgressItem *, const QPixmap &)
void completeTransactionDeferred(ProgressItem *item)
void progressItemProgress(ProgressItem *, unsigned int)
void progressItemUsesBusyIndicator(ProgressItem *, bool)
void progressItemAdded(ProgressItem *)
void progressItemCanceled(ProgressItem *)
void progressItemLabel(ProgressItem *, const QString &)
qulonglong value
Definition: itemviewutilities.cpp:592
Definition: datefolderview.cpp:43