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

Public Slots

void error (const QString &errString)
 Appends the error string to m_errorsList. More...
 
void slotDuplicatesResults (const HaarIface::DuplicatesResultsMap &)
 
void slotImageProcessed ()
 

Signals

void data (const QList< ItemListerRecord > &records)
 
void finished ()
 
void signalProgress (int percentage)
 

Public Member Functions

void cancel ()
 
QList< QString > & errorsList ()
 A method to get all errors reported from jobs. More...
 
bool hasErrors ()
 hasErrors: a method to check for jobs errors More...
 
int maximumNumberOfThreads () const
 
 SearchesDBJobsThread (QObject *const parent)
 
void searchesListing (const SearchesDBJobInfo &info)
 Starts searches listing and scanning. More...
 
void setDefaultMaximumNumberOfThreads ()
 
void setMaximumNumberOfThreads (int n)
 
 ~SearchesDBJobsThread () override
 

Protected Slots

void slotJobFinished ()
 

Protected Member Functions

void appendJobs (const ActionJobCollection &jobs)
 
void connectFinishAndErrorSignals (DBJob *const j)
 Connects the signals of job to the signals of the thread. More...
 
bool isEmpty () const
 
int pendingCount () const
 
void run () override
 

Constructor & Destructor Documentation

◆ SearchesDBJobsThread()

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

◆ ~SearchesDBJobsThread()

Digikam::SearchesDBJobsThread::~SearchesDBJobsThread ( )
override

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(), Digikam::MaintenanceThread::cleanCoreDb(), Digikam::MaintenanceThread::cleanFacesDb(), Digikam::MaintenanceThread::cleanSimilarityDb(), Digikam::MaintenanceThread::cleanThumbsDb(), Digikam::MaintenanceThread::computeDatabaseJunk(), Digikam::IOJobsThread::copyOrMove(), DigikamGenericFileCopyPlugin::FCThread::createCopyJobs(), DigikamGenericMjpegStreamPlugin::MjpegFrameThread::createFrameJob(), Digikam::DatesDBJobsThread::datesListing(), Digikam::IOJobsThread::deleteFiles(), Digikam::IOJobsThread::emptyDTrashItems(), Digikam::MaintenanceThread::generateFingerprints(), Digikam::MaintenanceThread::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(), searchesListing(), DigikamGenericTimeAdjustPlugin::TimeAdjustThread::setPreviewDates(), DigikamGenericTimeAdjustPlugin::TimeAdjustThread::setUpdatedDates(), Digikam::MaintenanceThread::shrinkDatabases(), Digikam::MaintenanceThread::sortByImageQuality(), Digikam::MaintenanceThread::syncMetadata(), and Digikam::TagsDBJobsThread::tagsListing().

◆ cancel()

◆ connectFinishAndErrorSignals()

void Digikam::DBJobsThread::connectFinishAndErrorSignals ( DBJob *const  j)
protectedinherited

◆ data

◆ error

void Digikam::DBJobsThread::error ( const QString &  errString)
slotinherited

Appends the error string to m_errorsList.

Parameters
errStringerror string reported from the job

Referenced by Digikam::DBJobsThread::connectFinishAndErrorSignals().

◆ errorsList()

QList< QString > & Digikam::DBJobsThread::errorsList ( )
inherited

A method to get all errors reported from jobs.

Returns
String list with errors

◆ finished

void Digikam::DBJobsThread::finished ( )
signalinherited

◆ hasErrors()

bool Digikam::DBJobsThread::hasErrors ( )
inherited

hasErrors: a method to check for jobs errors

Returns
bool: true if the error list is not empty

◆ isEmpty()

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

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

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

◆ maximumNumberOfThreads()

◆ 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().

◆ searchesListing()

◆ 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 Digikam::MaintenanceThread::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 Digikam::MaintenanceThread::setUseMultiCore().

◆ signalProgress

void Digikam::SearchesDBJobsThread::signalProgress ( int  percentage)
signal

Referenced by slotImageProcessed().

◆ slotDuplicatesResults

void Digikam::SearchesDBJobsThread::slotDuplicatesResults ( const HaarIface::DuplicatesResultsMap incoming)
slot

◆ slotImageProcessed

void Digikam::SearchesDBJobsThread::slotImageProcessed ( )
slot

References signalProgress().

Referenced by searchesListing().

◆ slotJobFinished

void Digikam::ActionThreadBase::slotJobFinished ( )
protectedslotinherited

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