digiKam
|
Public Types | |
enum | QualityScanMode { AllItems = 0 , NonAssignedItems } |
Public Slots | |
void | start () |
Signals | |
void | progressItemAdded (ProgressItem *) |
void | progressItemCanceled (ProgressItem *) |
void | progressItemCanceledById (const QString &id) |
void | progressItemCompleted (ProgressItem *) |
void | progressItemLabel (ProgressItem *, const QString &) |
void | progressItemProgress (ProgressItem *, unsigned int) |
void | progressItemStatus (ProgressItem *, const QString &) |
void | progressItemThumbnail (ProgressItem *item, const QPixmap &thumb) |
void | progressItemUsesBusyIndicator (ProgressItem *item, bool value) |
void | signalCanceled () |
void | signalComplete () |
Public Member Functions | |
void | addChild (ProgressItem *const kiddo) |
bool | advance (unsigned int v) |
bool | canBeCanceled () const |
void | cancel () |
bool | canceled () const |
unsigned int | completedItems () const |
bool | hasThumbnail () const |
const QString & | id () const |
ImageQualitySorter (QualityScanMode mode, const AlbumList &list=AlbumList(), const ImageQualityContainer &quality=ImageQualityContainer(), ProgressItem *const parent=nullptr) | |
bool | incCompletedItems (unsigned int v=1) |
void | incTotalItems (unsigned int v=1) |
const QString & | label () const |
ProgressItem * | parent () const |
unsigned int | progress () const |
void | removeChild (ProgressItem *const kiddo) |
void | reset () |
void | setComplete () |
bool | setCompletedItems (unsigned int v) |
void | setLabel (const QString &v) |
void | setNotificationEnabled (bool b) |
void | setProgress (unsigned int v) |
void | setShowAtStart (bool showAtStart) |
void | setStatus (const QString &v) |
void | setThumbnail (const QIcon &icon) |
void | setTotalItems (unsigned int v) |
void | setUseMultiCoreCPU (bool b) override |
void | setUsesBusyIndicator (bool useBusyIndicator) |
bool | showAtStart () const |
const QString & | status () const |
bool | totalCompleted () const |
unsigned int | totalItems () const |
void | updateProgress () |
bool | usesBusyIndicator () const |
~ImageQualitySorter () override | |
Protected Slots | |
virtual void | slotDone () |
|
explicit |
Constructor using AlbumList as argument. If list is empty, whole Albums collection is processed.
References Digikam::ProgressManager::addProgressItem(), Digikam::ProgressItem::setLabel(), and Digikam::MaintenanceTool::slotDone().
|
override |
|
inherited |
|
inherited |
Advance total items processed by n values and update percentage in progressbar.
v | The value to advance. |
References Digikam::ProgressItem::incCompletedItems(), and Digikam::ProgressItem::updateProgress().
Referenced by Digikam::DFileOperations::copyFolderRecursively().
|
inherited |
Referenced by Digikam::ProgressItem::cancel(), Digikam::ProgressItem::ProgressItem(), and Digikam::TransactionItem::TransactionItem().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Referenced by Digikam::ProgressItem::setThumbnail(), and Digikam::TransactionItem::TransactionItem().
|
inherited |
Referenced by Digikam::ProgressManager::addProgressItem(), Digikam::ProgressItem::ProgressItem(), Digikam::DProgressWdg::progressScheduled(), and Digikam::StatusProgressBar::setProgressBarMode().
|
inherited |
Referenced by Digikam::ProgressItem::advance().
|
inherited |
|
inherited |
Referenced by Digikam::ProgressItem::ProgressItem(), Digikam::MaintenanceTool::slotDone(), and Digikam::TransactionItem::TransactionItem().
|
inherited |
Referenced by Digikam::ProgressItem::ProgressItem(), Digikam::StatusbarProgressWidget::slotProgressItemAdded(), Digikam::StatusbarProgressWidget::slotProgressItemCompleted(), and Digikam::ProgressView::slotTransactionAdded().
|
inherited |
Referenced by Digikam::TransactionItem::TransactionItem().
|
signalinherited |
Emitted when a new ProgressItem is added.
The | ProgressItem that was added. |
|
signalinherited |
Emitted when an item was canceled. It will not go away immediately, only when the owner sets it complete, which will usually happen. Can be used to visually indicate the canceled status of an item. Should be used by the owner of the item to make sure it is set completed even if it is canceled. There is a ProgressManager::slotStandardCancelHandler which simply sets the item completed and can be used if no other work needs to be done on cancel.
The | canceled item; |
Referenced by Digikam::ProgressItem::cancel(), Digikam::FacesDetector::FacesDetector(), and Digikam::FileActionProgress::FileActionProgress().
|
signalinherited |
Referenced by Digikam::ProgressItem::cancel(), and Digikam::MaintenanceTool::MaintenanceTool().
|
signalinherited |
Emitted when a progress item was completed. The item will be deleted afterwards, so slots connected to this are the last chance to work with this item.
The | completed item. |
Referenced by Digikam::ProgressItem::removeChild(), and Digikam::ProgressItem::setComplete().
|
signalinherited |
Emitted when the label of an item changed. Should be used by progress dialogs to update the label of an item.
The | updated item. |
The | new label. |
Referenced by Digikam::ProgressItem::setLabel().
|
signalinherited |
Emitted when the progress value of an item changes.
The | item which got a new value. |
The | value, for convenience. |
Referenced by Digikam::ProgressItem::setProgress().
|
signalinherited |
Emitted when the status message of an item changed. Should be used by progress dialogs to update the status message for an item.
The | updated item. |
The | new message. |
Referenced by Digikam::ProgressItem::setStatus().
|
signalinherited |
Emitted when the thumbnail data must be set in item.
item | The updated item |
thumb | thumbnail data |
Referenced by Digikam::ProgressItem::setThumbnail().
|
signalinherited |
Emitted when the busy indicator state of an item changes. Should be used by progress dialogs so that they can adjust the display of the progress bar to the new mode.
item | The updated item |
value | True if the item uses a busy indicator now, false otherwise |
Referenced by Digikam::ProgressItem::setUsesBusyIndicator().
|
inherited |
References Digikam::ProgressItem::progressItemCompleted().
|
inherited |
Reset the progress value of this item to 0 and the status string to the empty string.
References Digikam::ProgressItem::setProgress(), and Digikam::ProgressItem::setStatus().
|
inherited |
Tell the item it has finished. This will emit progressItemCompleted() result in the destruction of the item after all slots connected to this signal have executed. This is the only way to get rid of an item and needs to be called even if the item is canceled. Don't use the item after this has been called on it.
References Digikam::ProgressItem::progressItemCompleted(), and Digikam::ProgressItem::setProgress().
Referenced by Digikam::ProgressManager::addProgressItem(), Digikam::TwoProgressItemsContainer::advance(), Digikam::DProgressWdg::progressCompleted(), Digikam::StatusProgressBar::setProgressBarMode(), Digikam::MaintenanceTool::slotCancel(), Digikam::MaintenanceTool::slotDone(), Digikam::PrivateProgressItemCreator::slotProgressItemCanceled(), and Digikam::ProgressManager::slotStandardCancelHandler().
|
inherited |
|
inherited |
v | Set the user visible string identifying this item. |
References Digikam::ProgressItem::progressItemLabel().
Referenced by Digikam::FacesDetector::FacesDetector(), Digikam::FileActionProgress::FileActionProgress(), Digikam::FingerPrintsGenerator::FingerPrintsGenerator(), ImageQualitySorter(), and Digikam::NewItemsFinder::NewItemsFinder().
|
inherited |
If true, show a notification message on desktop notification manager with time elpased to run process.
|
inherited |
Set the progress (percentage of completion) value of this item.
v | The percentage value. |
References Digikam::ProgressItem::progressItemProgress().
Referenced by Digikam::ProgressItem::reset(), Digikam::ProgressItem::setComplete(), and Digikam::ProgressItem::updateProgress().
|
inherited |
Set the property to pop-up item when it's added in progress manager. Use this method if you consider that item is important to be notified to end-user.
References Digikam::ProgressItem::showAtStart().
Referenced by Digikam::NewItemsFinder::NewItemsFinder().
|
inherited |
Set the string to be used for showing this item's current status.
v | The status string. |
References Digikam::ProgressItem::progressItemStatus().
Referenced by Digikam::ProgressItem::cancel(), Digikam::DProgressWdg::progressStatusChanged(), Digikam::ProgressItem::reset(), and Digikam::StatusProgressBar::setProgressText().
|
inherited |
Sets whether this item has a thumbnail.
References Digikam::ProgressItem::hasThumbnail(), and Digikam::ProgressItem::progressItemThumbnail().
Referenced by Digikam::FileActionProgress::FileActionProgress(), Digikam::NewItemsFinder::NewItemsFinder(), Digikam::DProgressWdg::progressThumbnailChanged(), and Digikam::StatusProgressBar::setProgressBarMode().
|
inherited |
|
overridevirtual |
Re-implement this method if your tool is able to use multi-core CPU to process item in parallel
Reimplemented from Digikam::MaintenanceTool.
|
inherited |
Sets whether this item uses a busy indicator instead of real progress for its progress bar. If it uses a busy indicator, you are still responsible for calling setProgress() from time to time to update the busy indicator.
References Digikam::ProgressItem::progressItemUsesBusyIndicator().
|
inherited |
Referenced by Digikam::ProgressItem::setShowAtStart(), and Digikam::ProgressView::slotTransactionAdded().
|
signalinherited |
Emit when process is canceled.
Referenced by Digikam::MaintenanceTool::slotCancel().
|
signalinherited |
Emit when process is done (not canceled).
Referenced by Digikam::MaintenanceTool::slotDone().
|
protectedvirtualslotinherited |
|
slotinherited |
References Digikam::MaintenanceTool::slotStart().
Referenced by Digikam::SetupCollectionModel::apply(), Digikam::MetadataHubMngr::requestShutDown(), Digikam::ItemIconView::slotAlbumReadMetadata(), Digikam::ItemIconView::slotAlbumWriteMetadata(), Digikam::MetadataHubMngr::slotApplyPending(), Digikam::ItemIconView::slotImageReadMetadata(), Digikam::ItemIconView::slotImageScanForFaces(), Digikam::ItemIconView::slotImageWriteMetadata(), and Digikam::ItemIconView::slotRefresh().
|
inherited |
Referenced by Digikam::ProgressItem::ProgressItem(), and Digikam::TransactionItem::TransactionItem().
|
inherited |
|
inherited |
|
inherited |
Recalculate progress according to total/completed items and update.
References Digikam::ProgressItem::setProgress().
Referenced by Digikam::ProgressItem::advance(), and Digikam::StatusProgressBar::setProgressValue().
|
inherited |