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

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
 
void postProcess () override
 
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)
 
void setThumbResult (const LoadingDescription &loadingDescription, const QImage &qimage)
 
LoadingTaskStatus status () const
 
 ThumbnailLoadingTask (LoadSaveThread *const thread, const LoadingDescription &description)
 
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

◆ ThumbnailLoadingTask()

Digikam::ThumbnailLoadingTask::ThumbnailLoadingTask ( LoadSaveThread *const  thread,
const LoadingDescription description 
)
explicit

Member Function Documentation

◆ accessMode()

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

◆ addListener()

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

◆ cacheKey()

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

◆ completed()

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

◆ continueQuery()

bool Digikam::LoadingTask::continueQuery ( )
overridevirtualinherited

◆ execute()

void Digikam::ThumbnailLoadingTask::execute ( )
overridevirtual

Reimplemented from Digikam::SharedLoadingTask.

References Digikam::LoadingProcess::addListener(), Digikam::LoadingCache::addLoadingProcess(), Digikam::LoadingCache::cache(), Digikam::LoadingDescription::cacheKey(), Digikam::LoadingProcess::completed(), Digikam::LoadingTask::continueQuery(), Digikam::LoadingDescription::PreviewParameters::DetailThumbnail, Digikam::LoadingDescription::PreviewParameters::extraParameter, Digikam::LoadingDescription::filePath, Digikam::ThumbnailCreator::load(), Digikam::ThumbnailCreator::loadDetail(), Digikam::LoadingTask::LoadingTaskStatusStopping, Digikam::SharedLoadingTask::m_completed, Digikam::SharedLoadingTask::m_listeners, Digikam::LoadingTask::m_loadingDescription, Digikam::LoadingTask::m_loadingTaskStatus, Digikam::LoadSaveTask::m_thread, Digikam::LoadingCache::notifyNewLoadingProcess(), Digikam::LoadingDescription::PreviewParameters::onlyPregenerate(), postProcess(), Digikam::ThumbnailCreator::pregenerate(), Digikam::ThumbnailCreator::pregenerateDetail(), Digikam::LoadingDescription::previewParameters, Digikam::LoadingCache::putThumbnail(), Digikam::LoadingProcess::removeListener(), Digikam::LoadingCache::removeLoadingProcess(), Digikam::LoadingCache::retrieveLoadingProcess(), Digikam::LoadingCache::retrieveThumbnail(), setThumbResult(), Digikam::LoadSaveThread::taskHasFinished(), Digikam::LoadingDescription::PreviewParameters::Thumbnail, Digikam::LoadingDescription::thumbnailIdentifier(), Digikam::LoadSaveThread::thumbnailLoaded(), Digikam::LoadingCache::CacheLock::timedWait(), Digikam::LoadingDescription::PreviewParameters::type, 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
inherited

◆ loadingDescription()

◆ loadSaveNotifier()

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

◆ needsPostProcessing()

◆ notifyNewLoadingProcess()

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

◆ postProcess()

◆ progressInfo()

◆ querySendNotifyEvent()

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

◆ removeListener()

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

◆ setResult()

◆ setStatus()

◆ setThumbResult()

void Digikam::ThumbnailLoadingTask::setThumbResult ( const LoadingDescription loadingDescription,
const QImage &  qimage 
)

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

◆ m_completed

volatile bool Digikam::SharedLoadingTask::m_completed
protectedinherited

◆ m_img

◆ m_listeners

◆ m_loadingDescription

◆ m_loadingTaskStatus

◆ m_thread


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