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

Public Types

enum  SavingTaskStatus { SavingTaskStatusSaving , SavingTaskStatusStopping }
 
enum  TaskType { TaskTypeLoading , TaskTypeSaving }
 

Public Member Functions

bool continueQuery () override
 
void execute () override
 
QString filePath () const
 
virtual float granularity ()
 
void progressInfo (float progress) override
 
 SavingTask (LoadSaveThread *const thread, const DImg &img, const QString &filePath, const QString &format)
 
void setStatus (SavingTaskStatus status)
 
SavingTaskStatus status () const
 
TaskType type () override
 

Protected Attributes

LoadSaveThreadm_thread
 

Member Enumeration Documentation

◆ SavingTaskStatus

Enumerator
SavingTaskStatusSaving 
SavingTaskStatusStopping 

◆ TaskType

Enumerator
TaskTypeLoading 
TaskTypeSaving 

Constructor & Destructor Documentation

◆ SavingTask()

Digikam::SavingTask::SavingTask ( LoadSaveThread *const  thread,
const DImg img,
const QString &  filePath,
const QString &  format 
)
explicit

Member Function Documentation

◆ continueQuery()

bool Digikam::SavingTask::continueQuery ( )
overridevirtual

Queries whether the image IO operation shall be continued

Reimplemented from Digikam::DImgLoaderObserver.

References SavingTaskStatusStopping.

◆ execute()

◆ filePath()

QString Digikam::SavingTask::filePath ( ) const

◆ granularity()

virtual float Digikam::DImgLoaderObserver::granularity ( )
inlinevirtualinherited

Return a relative value which determines the granularity, the frequency with which the DImgLoaderObserver is checked and progress is posted. Standard is 1.0. Values < 1 mean less granularity (fewer checks), values > 1 mean higher granularity (more checks).

Referenced by Digikam::DImgLoader::granularity().

◆ progressInfo()

void Digikam::SavingTask::progressInfo ( float  progress)
overridevirtual

◆ setStatus()

void Digikam::SavingTask::setStatus ( SavingTaskStatus  status)

◆ status()

SavingTask::SavingTaskStatus Digikam::SavingTask::status ( ) const

Referenced by setStatus().

◆ type()

LoadingTask::TaskType Digikam::SavingTask::type ( )
overridevirtual

Member Data Documentation

◆ m_thread


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