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

Public Types

enum  Mode {
  Unknown , ComputeDatabaseJunk , CleanCoreDb , CleanThumbsDb ,
  CleanRecognitionDb , CleanSimilarityDb , ShrinkDatabases
}
 

Public Slots

void cancel ()
 

Signals

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

Public Member Functions

void computeDatabaseJunk (bool thumbsDb=false, bool facesDb=false, bool similarityDb=false)
 
 DatabaseTask ()
 
void setMaintenanceData (MaintenanceData *const data=nullptr)
 
void setMode (Mode mode)
 
 ~DatabaseTask () override
 

Protected Member Functions

void run () override
 

Protected Attributes

bool m_cancel
 

Member Enumeration Documentation

◆ Mode

Enumerator
Unknown 
ComputeDatabaseJunk 
CleanCoreDb 
CleanThumbsDb 
CleanRecognitionDb 
CleanSimilarityDb 
ShrinkDatabases 

Constructor & Destructor Documentation

◆ DatabaseTask()

Digikam::DatabaseTask::DatabaseTask ( )
explicit

◆ ~DatabaseTask()

Digikam::DatabaseTask::~DatabaseTask ( )
override

Member Function Documentation

◆ cancel

◆ computeDatabaseJunk()

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

◆ run()

◆ setMaintenanceData()

◆ setMode()

◆ signalAddItemsToProcess

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

Signal to emit the count of additional items to process.

Referenced by run().

◆ signalData

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

◆ signalDone

◆ signalFinished [1/2]

void Digikam::DatabaseTask::signalFinished ( )
signal

Referenced by run().

◆ signalFinished [2/2]

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

◆ signalProgress

void Digikam::ActionJob::signalProgress ( int  )
signalinherited

Use this signal in your implementation to inform ActionThreadBase manager the job progress

Referenced by Digikam::VidSlideTask::run().

◆ signalStarted

void Digikam::ActionJob::signalStarted ( )
signalinherited

Use this signal in your implementation to inform ActionThreadBase manager that job is started

Referenced by run().

Member Data Documentation

◆ m_cancel


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