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

Public Types

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

Public Member Functions

LoadSaveThread::AccessMode accessMode () const override
 
void addListener (LoadingProcessListener *const listener) override
 
QString cacheKey () const override
 
bool completed () const override
 
bool continueQuery () override
 
void execute () override
 
QString filePath () const
 
virtual float granularity ()
 
DImg img () const
 
const LoadingDescriptionloadingDescription () const
 
LoadSaveNotifierloadSaveNotifier () const override
 
bool needsPostProcessing () const
 
void notifyNewLoadingProcess (LoadingProcess *const process, const LoadingDescription &description) override
 
virtual void postProcess ()
 
void progressInfo (float progress) override
 
bool querySendNotifyEvent () const override
 
void removeListener (LoadingProcessListener *const listener) override
 
void setResult (const LoadingDescription &loadingDescription, const DImg &img) override
 
void setStatus (LoadingTaskStatus status)
 
 SharedLoadingTask (LoadSaveThread *const thread, const LoadingDescription &description, LoadSaveThread::AccessMode mode=LoadSaveThread::AccessModeReadWrite, LoadingTaskStatus loadingTaskStatus=LoadingTaskStatusLoading)
 
LoadingTaskStatus status () const
 
TaskType type () override
 

Protected Attributes

LoadSaveThread::AccessMode m_accessMode
 
volatile bool m_completed
 
DImg m_img
 
QList< LoadingProcessListener * > m_listeners
 
LoadingDescription m_loadingDescription
 
volatile LoadingTaskStatus m_loadingTaskStatus
 
LoadSaveThreadm_thread
 

Member Enumeration Documentation

◆ LoadingTaskStatus

Enumerator
LoadingTaskStatusLoading 
LoadingTaskStatusPreloading 
LoadingTaskStatusStopping 

◆ TaskType

Enumerator
TaskTypeLoading 
TaskTypeSaving 

Constructor & Destructor Documentation

◆ SharedLoadingTask()

Member Function Documentation

◆ accessMode()

LoadSaveThread::AccessMode Digikam::SharedLoadingTask::accessMode ( ) const
overridevirtual

◆ addListener()

void Digikam::SharedLoadingTask::addListener ( LoadingProcessListener *const  listener)
overridevirtual

Implements Digikam::LoadingProcess.

References m_listeners.

◆ cacheKey()

QString Digikam::SharedLoadingTask::cacheKey ( ) const
overridevirtual

◆ completed()

bool Digikam::SharedLoadingTask::completed ( ) const
overridevirtual

Implements Digikam::LoadingProcess.

References m_completed.

◆ continueQuery()

bool Digikam::LoadingTask::continueQuery ( )
overridevirtualinherited

◆ execute()

void Digikam::SharedLoadingTask::execute ( )
overridevirtual

Reimplemented from Digikam::LoadingTask.

Reimplemented in Digikam::ThumbnailLoadingTask, and Digikam::PreviewLoadingTask.

References Digikam::LoadingProcessListener::accessMode(), accessMode(), Digikam::LoadSaveThread::AccessModeReadWrite, Digikam::LoadingProcess::addListener(), Digikam::LoadingCache::addLoadingProcess(), Digikam::LoadingCache::cache(), Digikam::LoadingDescription::cacheKey(), Digikam::LoadingProcess::completed(), Digikam::LoadingTask::continueQuery(), Digikam::DImg::copy(), Digikam::DImg::detach(), Digikam::LoadingDescription::filePath, Digikam::LoadSaveThread::imageLoaded(), Digikam::LoadSaveThread::imageStartedLoading(), Digikam::DImg::isNull(), Digikam::LoadingTask::LoadingTaskStatusStopping, Digikam::LoadingDescription::lookupCacheKeys(), m_completed, m_img, m_listeners, Digikam::LoadingTask::m_loadingDescription, Digikam::LoadingTask::m_loadingTaskStatus, Digikam::LoadSaveTask::m_thread, Digikam::LoadingDescription::needCheckRawDecoding(), Digikam::LoadingCache::notifyNewLoadingProcess(), postProcess(), Digikam::LoadingCache::putImage(), Digikam::DImg::rawDecodingSettings(), Digikam::LoadingDescription::rawDecodingSettings, Digikam::LoadingProcess::removeListener(), Digikam::LoadingCache::removeLoadingProcess(), Digikam::LoadingCache::retrieveImage(), Digikam::LoadingCache::retrieveLoadingProcess(), Digikam::LoadingProcessListener::setResult(), Digikam::LoadSaveThread::taskHasFinished(), Digikam::LoadingCache::CacheLock::timedWait(), and Digikam::LoadingCache::CacheLock::wakeAll().

◆ filePath()

QString Digikam::LoadingTask::filePath ( ) const
inherited

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

◆ img()

DImg Digikam::SharedLoadingTask::img ( ) const

◆ loadingDescription()

◆ loadSaveNotifier()

LoadSaveNotifier * Digikam::SharedLoadingTask::loadSaveNotifier ( ) const
overridevirtual

◆ needsPostProcessing()

◆ notifyNewLoadingProcess()

void Digikam::SharedLoadingTask::notifyNewLoadingProcess ( LoadingProcess *const  process,
const LoadingDescription description 
)
overridevirtual

◆ postProcess()

◆ progressInfo()

◆ querySendNotifyEvent()

bool Digikam::SharedLoadingTask::querySendNotifyEvent ( ) const
overridevirtual

◆ removeListener()

void Digikam::SharedLoadingTask::removeListener ( LoadingProcessListener *const  listener)
overridevirtual

Implements Digikam::LoadingProcess.

References m_listeners.

◆ setResult()

void Digikam::SharedLoadingTask::setResult ( const LoadingDescription loadingDescription,
const DImg img 
)
overridevirtual

◆ setStatus()

◆ status()

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

◆ type()

LoadingTask::TaskType Digikam::LoadingTask::type ( )
overridevirtualinherited

Member Data Documentation

◆ m_accessMode

LoadSaveThread::AccessMode Digikam::SharedLoadingTask::m_accessMode
protected

Referenced by accessMode(), and SharedLoadingTask().

◆ m_completed

volatile bool Digikam::SharedLoadingTask::m_completed
protected

◆ m_img

DImg Digikam::SharedLoadingTask::m_img
protected

◆ m_listeners

◆ m_loadingDescription

◆ m_loadingTaskStatus

◆ m_thread


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