digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
Loading...
Searching...
No Matches
Digikam::DBJobsThread Class Reference
+ Inheritance diagram for Digikam::DBJobsThread:

Public Slots

void error (const QString &errString)
 Appends the error string to m_errorsList.
 

Signals

void data (const QList< ItemListerRecord > &records)
 
void signalFinished ()
 

Public Member Functions

 DBJobsThread (QObject *const parent)
 
QList< QString > & errorsList ()
 A method to get all errors reported from jobs.
 
bool hasErrors ()
 hasErrors: a method to check for jobs errors
 
- Public Member Functions inherited from Digikam::ActionThreadBase
 ActionThreadBase (QObject *const parent=nullptr)
 
void cancel (bool isCancel=true)
 Cancel processing of current jobs under progress.
 
int maximumNumberOfThreads () const
 
void setDefaultMaximumNumberOfThreads ()
 Reset maximum number of threads used to parallelize collection of job processing to max core detected on computer.
 
void setMaximumNumberOfThreads (int n)
 Adjust maximum number of threads used to parallelize collection of job processing.
 

Protected Member Functions

void connectFinishAndErrorSignals (DBJob *const j)
 Connects the signals of job to the signals of the thread.
 
- Protected Member Functions inherited from Digikam::ActionThreadBase
void appendJobs (const ActionJobCollection &jobs)
 Append a collection of jobs to process into QThreadPool.
 
bool isEmpty () const
 
int pendingCount () const
 
void run () override
 Main thread loop used to process jobs in todo list.
 

Additional Inherited Members

- Protected Slots inherited from Digikam::ActionThreadBase
virtual void slotJobFinished ()
 

Member Function Documentation

◆ connectFinishAndErrorSignals()

void Digikam::DBJobsThread::connectFinishAndErrorSignals ( DBJob *const  j)
protected
Parameters
jJob that wanted to be connected

◆ error

void Digikam::DBJobsThread::error ( const QString &  errString)
slot
Parameters
errStringerror string reported from the job

◆ errorsList()

QList< QString > & Digikam::DBJobsThread::errorsList ( )
Returns
String list with errors

◆ hasErrors()

bool Digikam::DBJobsThread::hasErrors ( )
Returns
bool: true if the error list is not empty