![]() |
digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
|
Public Types | |
enum | Mode { Unknown , ComputeDatabaseJunk , CleanCoreDb , CleanThumbsDb , CleanRecognitionDb , CleanSimilarityDb , ShrinkDatabases } |
Signals | |
void | signalAddItemsToProcess (int count) |
Signal to emit the count of additional items to process. | |
void | signalData (const QList< qlonglong > &staleImageIds, const QList< int > &staleThumbIds, const QList< Identity > &staleIdentities, const QList< qlonglong > &staleSimilarityImageIds) |
void | signalFinished () |
void | signalFinishedWithFeedback (bool done, bool errorFree) |
![]() | |
void | signalDone () |
Use this signal in your implementation to inform ActionThreadBase manager the job is done. | |
void | signalProgress (int) |
Use this signal in your implementation to inform ActionThreadBase manager the job progress. | |
void | signalStarted () |
Use this signal in your implementation to inform ActionThreadBase manager that job is started. | |
Public Member Functions | |
void | computeDatabaseJunk (bool thumbsDb=false, bool facesDb=false, bool similarityDb=false) |
void | setMaintenanceData (MaintenanceData *const data=nullptr) |
void | setMode (Mode mode) |
![]() | |
ActionJob (QObject *const parent=nullptr) | |
Constructor which delegate deletion of QRunnable instance to ActionThreadBase, not QThreadPool. | |
~ActionJob () override | |
Re-implement destructor in you implementation. | |
Protected Member Functions | |
void | run () override |
Additional Inherited Members | |
![]() | |
void | cancel () |
Call this method to cancel job. | |
![]() | |
QElapsedTimer | m_timer |
Timer to determine the running time of the job. | |
![]() | |
bool | m_cancel = false |
You can use this boolean in your implementation to know if job must be canceled. | |