digiKam
Digikam::MaintenanceThread Class Reference
+ Inheritance diagram for Digikam::MaintenanceThread:

Signals

void signalAddItemsToProcess (int count)
 
void signalAdvance ()
 
void signalAdvance (const QImage &)
 
void signalCanceled ()
 
void signalCompleted ()
 
void signalData (const QList< qlonglong > &staleImageIds, const QList< int > &staleThumbIds, const QList< Identity > &staleIdentities, const QList< qlonglong > &staleSimilarityImageIds)
 
void signalFinished (bool done, bool errorFree)
 
void signalStarted ()
 

Public Member Functions

void cancel ()
 
void cleanCoreDb (const QList< qlonglong > &imageIds)
 
void cleanFacesDb (const QList< Identity > &staleIdentities)
 
void cleanSimilarityDb (const QList< qlonglong > &imageIds)
 
void cleanThumbsDb (const QList< int > &thumbnailIds)
 
void computeDatabaseJunk (bool thumbsDb=false, bool facesDb=false, bool similarityDb=false)
 
void generateFingerprints (const QList< qlonglong > &itemIds, bool rebuildAll)
 
void generateThumbs (const QStringList &paths)
 
QString getThumbFingerprintPath ()
 
 MaintenanceThread (QObject *const parent)
 
int maximumNumberOfThreads () const
 
void setDefaultMaximumNumberOfThreads ()
 
void setMaximumNumberOfThreads (int n)
 
void setUseMultiCore (const bool b)
 
void shrinkDatabases ()
 
void sortByImageQuality (const QStringList &paths, const ImageQualityContainer &quality)
 
void syncMetadata (const ItemInfoList &items, MetadataSynchronizer::SyncDirection dir, bool tagsOnly)
 
 ~MaintenanceThread () override
 

Protected Slots

void slotJobFinished ()
 

Protected Member Functions

void appendJobs (const ActionJobCollection &jobs)
 
bool isEmpty () const
 
int pendingCount () const
 
void run () override
 

Constructor & Destructor Documentation

◆ MaintenanceThread()

Digikam::MaintenanceThread::MaintenanceThread ( QObject *const  parent)
explicit

◆ ~MaintenanceThread()

Digikam::MaintenanceThread::~MaintenanceThread ( )
override

References cancel().

Member Function Documentation

◆ appendJobs()

void Digikam::ActionThreadBase::appendJobs ( const ActionJobCollection jobs)
protectedinherited

Append a collection of jobs to process into QThreadPool. Jobs are add to pending lists and will be deleted by ActionThreadBase, not QThreadPool.

Referenced by Digikam::AlbumsDBJobsThread::albumsListing(), cleanCoreDb(), cleanFacesDb(), cleanSimilarityDb(), cleanThumbsDb(), computeDatabaseJunk(), Digikam::IOJobsThread::copyOrMove(), DigikamGenericFileCopyPlugin::FCThread::createCopyJobs(), DigikamGenericMjpegStreamPlugin::MjpegFrameThread::createFrameJob(), Digikam::DatesDBJobsThread::datesListing(), Digikam::IOJobsThread::deleteFiles(), Digikam::IOJobsThread::emptyDTrashItems(), generateFingerprints(), generateThumbs(), Digikam::GPSDBJobsThread::GPSListing(), DigikamGenericDNGConverterPlugin::DNGConverterActionThread::identifyRawFiles(), Digikam::IOJobsThread::listDTrashItems(), DigikamGenericPrintCreatorPlugin::AdvPrintThread::preparePrint(), DigikamGenericPrintCreatorPlugin::AdvPrintThread::preview(), DigikamGenericPrintCreatorPlugin::AdvPrintThread::print(), Digikam::ActionThread::processQueueItems(), DigikamGenericDNGConverterPlugin::DNGConverterActionThread::processRawFiles(), Digikam::VidSlideThread::processStream(), Digikam::IOJobsThread::renameFile(), DigikamGenericSendByMailPlugin::ImageResizeThread::resize(), Digikam::IOJobsThread::restoreDTrashItems(), Digikam::SearchesDBJobsThread::searchesListing(), DigikamGenericTimeAdjustPlugin::TimeAdjustThread::setPreviewDates(), DigikamGenericTimeAdjustPlugin::TimeAdjustThread::setUpdatedDates(), shrinkDatabases(), sortByImageQuality(), syncMetadata(), and Digikam::TagsDBJobsThread::tagsListing().

◆ cancel()

void Digikam::MaintenanceThread::cancel ( )

◆ cleanCoreDb()

◆ cleanFacesDb()

◆ cleanSimilarityDb()

◆ cleanThumbsDb()

◆ computeDatabaseJunk()

void Digikam::MaintenanceThread::computeDatabaseJunk ( bool  thumbsDb = false,
bool  facesDb = false,
bool  similarityDb = false 
)

◆ generateFingerprints()

◆ generateThumbs()

◆ getThumbFingerprintPath()

QString Digikam::MaintenanceThread::getThumbFingerprintPath ( )

◆ isEmpty()

bool Digikam::ActionThreadBase::isEmpty ( ) const
protectedinherited

Return true if list of pending jobs to process is empty.

Referenced by Digikam::ActionThreadBase::slotJobFinished().

◆ maximumNumberOfThreads()

int Digikam::ActionThreadBase::maximumNumberOfThreads ( ) const
inherited

◆ pendingCount()

int Digikam::ActionThreadBase::pendingCount ( ) const
protectedinherited

Return the number of pending jobs to process.

◆ run()

void Digikam::ActionThreadBase::run ( )
overrideprotectedinherited

Main thread loop used to process jobs in todo list.

References Digikam::ActionThreadBase::slotJobFinished().

◆ setDefaultMaximumNumberOfThreads()

void Digikam::ActionThreadBase::setDefaultMaximumNumberOfThreads ( )
inherited

Reset maximum number of threads used to parallelize collection of job processing to max core detected on computer. This method is called in constructor.

References Digikam::ActionThreadBase::setMaximumNumberOfThreads().

Referenced by Digikam::ActionThreadBase::ActionThreadBase(), Digikam::ActionThread::setSettings(), and setUseMultiCore().

◆ setMaximumNumberOfThreads()

void Digikam::ActionThreadBase::setMaximumNumberOfThreads ( int  n)
inherited

Adjust maximum number of threads used to parallelize collection of job processing.

Referenced by Digikam::ActionThreadBase::setDefaultMaximumNumberOfThreads(), Digikam::ActionThread::setSettings(), and setUseMultiCore().

◆ setUseMultiCore()

void Digikam::MaintenanceThread::setUseMultiCore ( const bool  b)

◆ shrinkDatabases()

void Digikam::MaintenanceThread::shrinkDatabases ( )

◆ signalAddItemsToProcess

void Digikam::MaintenanceThread::signalAddItemsToProcess ( int  count)
signal

Signal to emit the count of additional items to process.

Referenced by computeDatabaseJunk().

◆ signalAdvance [1/2]

void Digikam::MaintenanceThread::signalAdvance ( )
signal

Emit when an itam was processed and on additional information is necessary.

Referenced by cleanCoreDb(), cleanFacesDb(), cleanSimilarityDb(), cleanThumbsDb(), computeDatabaseJunk(), generateFingerprints(), generateThumbs(), sortByImageQuality(), and syncMetadata().

◆ signalAdvance [2/2]

void Digikam::MaintenanceThread::signalAdvance ( const QImage &  )
signal

Emit when an item have been processed. QImage can be used to pass item thumbnail processed.

◆ signalCanceled

void Digikam::MaintenanceThread::signalCanceled ( )
signal

Signal to emit to sub-tasks to cancel processing.

Referenced by cancel(), and sortByImageQuality().

◆ signalCompleted

void Digikam::MaintenanceThread::signalCompleted ( )
signal

Emit when a items list have been fully processed.

◆ signalData

void Digikam::MaintenanceThread::signalData ( const QList< qlonglong > &  staleImageIds,
const QList< int > &  staleThumbIds,
const QList< Identity > &  staleIdentities,
const QList< qlonglong > &  staleSimilarityImageIds 
)
signal

Signal to emit junk data for db cleaner.

Referenced by computeDatabaseJunk().

◆ signalFinished

void Digikam::MaintenanceThread::signalFinished ( bool  done,
bool  errorFree 
)
signal

Signal to emit after processing with info if the processing was done and if yes, without errors.

Referenced by cleanCoreDb(), cleanFacesDb(), cleanSimilarityDb(), cleanThumbsDb(), computeDatabaseJunk(), generateFingerprints(), generateThumbs(), shrinkDatabases(), sortByImageQuality(), and syncMetadata().

◆ signalStarted

void Digikam::MaintenanceThread::signalStarted ( )
signal

Emit when the task has started it's work.

Referenced by shrinkDatabases().

◆ slotJobFinished

void Digikam::ActionThreadBase::slotJobFinished ( )
protectedslotinherited

◆ sortByImageQuality()

◆ syncMetadata()


The documentation for this class was generated from the following files: