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

Public Types

enum  LoadingTaskStatus { LoadingTaskStatusLoading , LoadingTaskStatusPreloading , LoadingTaskStatusStopping }
 
enum  TaskType { TaskTypeLoading , TaskTypeSaving }
 

Public Member Functions

bool continueQuery () override
 
void execute () override
 
QString filePath () const
 
virtual float granularity ()
 
const LoadingDescriptionloadingDescription () const
 
 LoadingTask (LoadSaveThread *const thread, const LoadingDescription &description, LoadingTaskStatus loadingTaskStatus=LoadingTaskStatusLoading)
 
void progressInfo (float progress) override
 
void setStatus (LoadingTaskStatus status)
 
LoadingTaskStatus status () const
 
TaskType type () override
 
 ~LoadingTask () override
 

Protected Attributes

LoadingDescription m_loadingDescription
 
volatile LoadingTaskStatus m_loadingTaskStatus
 
LoadSaveThreadm_thread
 

Member Enumeration Documentation

◆ LoadingTaskStatus

Enumerator
LoadingTaskStatusLoading 
LoadingTaskStatusPreloading 
LoadingTaskStatusStopping 

◆ TaskType

Enumerator
TaskTypeLoading 
TaskTypeSaving 

Constructor & Destructor Documentation

◆ LoadingTask()

Digikam::LoadingTask::LoadingTask ( LoadSaveThread *const  thread,
const LoadingDescription description,
LoadingTaskStatus  loadingTaskStatus = LoadingTaskStatusLoading 
)
explicit

◆ ~LoadingTask()

Digikam::LoadingTask::~LoadingTask ( )
override

Member Function Documentation

◆ continueQuery()

bool Digikam::LoadingTask::continueQuery ( )
overridevirtual

◆ execute()

◆ filePath()

QString Digikam::LoadingTask::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().

◆ loadingDescription()

◆ progressInfo()

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

◆ setStatus()

◆ status()

LoadingTask::LoadingTaskStatus Digikam::LoadingTask::status ( ) const

References m_loadingTaskStatus.

Referenced by setStatus().

◆ type()

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

Member Data Documentation

◆ m_loadingDescription

◆ m_loadingTaskStatus

◆ m_thread


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