digiKam
DigikamGenericTimeAdjustPlugin::TimeAdjustThread Class Reference
+ Inheritance diagram for DigikamGenericTimeAdjustPlugin::TimeAdjustThread:

Signals

void signalDateTimeForUrl (const QUrl &, const QDateTime &, bool)
 
void signalPreviewReady (const QUrl &, const QDateTime &, const QDateTime &)
 
void signalProcessEnded (const QUrl &, const QDateTime &, const QDateTime &, int)
 
void signalProcessStarted (const QUrl &)
 

Public Member Functions

void cancel ()
 
int indexForUrl (const QUrl &url) const
 
int maximumNumberOfThreads () const
 
QDateTime readTimestamp (const QUrl &url) const
 
void setDefaultMaximumNumberOfThreads ()
 
void setMaximumNumberOfThreads (int n)
 
void setPreviewDates (const QMap< QUrl, int > &itemsMap)
 
void setSettings (const TimeAdjustContainer &settings)
 
void setUpdatedDates (const QMap< QUrl, int > &itemsMap)
 
 TimeAdjustThread (QObject *const parent, DInfoInterface *const iface)
 
 ~TimeAdjustThread () 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

◆ TimeAdjustThread()

DigikamGenericTimeAdjustPlugin::TimeAdjustThread::TimeAdjustThread ( QObject *const  parent,
DInfoInterface *const  iface 
)
explicit

◆ ~TimeAdjustThread()

DigikamGenericTimeAdjustPlugin::TimeAdjustThread::~TimeAdjustThread ( )
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(), Digikam::SearchesDBJobsThread::searchesListing(), setPreviewDates(), setUpdatedDates(), Digikam::MaintenanceThread::shrinkDatabases(), Digikam::MaintenanceThread::sortByImageQuality(), Digikam::MaintenanceThread::syncMetadata(), and Digikam::TagsDBJobsThread::tagsListing().

◆ cancel()

◆ indexForUrl()

int DigikamGenericTimeAdjustPlugin::TimeAdjustThread::indexForUrl ( const QUrl &  url) const

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

◆ readTimestamp()

QDateTime DigikamGenericTimeAdjustPlugin::TimeAdjustThread::readTimestamp ( const QUrl &  url) const

Read the Used Timestamps for the url

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

◆ setPreviewDates()

void DigikamGenericTimeAdjustPlugin::TimeAdjustThread::setPreviewDates ( const QMap< QUrl, int > &  itemsMap)

◆ setSettings()

void DigikamGenericTimeAdjustPlugin::TimeAdjustThread::setSettings ( const TimeAdjustContainer settings)

◆ setUpdatedDates()

void DigikamGenericTimeAdjustPlugin::TimeAdjustThread::setUpdatedDates ( const QMap< QUrl, int > &  itemsMap)

◆ signalDateTimeForUrl

void DigikamGenericTimeAdjustPlugin::TimeAdjustThread::signalDateTimeForUrl ( const QUrl &  ,
const QDateTime &  ,
bool   
)
signal

Referenced by setUpdatedDates().

◆ signalPreviewReady

void DigikamGenericTimeAdjustPlugin::TimeAdjustThread::signalPreviewReady ( const QUrl &  ,
const QDateTime &  ,
const QDateTime &   
)
signal

Referenced by setPreviewDates().

◆ signalProcessEnded

void DigikamGenericTimeAdjustPlugin::TimeAdjustThread::signalProcessEnded ( const QUrl &  ,
const QDateTime &  ,
const QDateTime &  ,
int   
)
signal

Referenced by setUpdatedDates().

◆ signalProcessStarted

void DigikamGenericTimeAdjustPlugin::TimeAdjustThread::signalProcessStarted ( const QUrl &  )
signal

Referenced by setUpdatedDates().

◆ slotJobFinished

void Digikam::ActionThreadBase::slotJobFinished ( )
protectedslotinherited

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