digiKam
|
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 LoadingDescription & | loadingDescription () const |
LoadSaveNotifier * | loadSaveNotifier () 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 |
LoadSaveThread * | m_thread |
|
inherited |
|
inherited |
|
explicit |
References Digikam::ThumbnailLoadThread::thumbnailCreator().
|
overridevirtualinherited |
Implements Digikam::LoadingProcessListener.
References Digikam::SharedLoadingTask::m_accessMode.
Referenced by Digikam::SharedLoadingTask::execute(), and Digikam::PreviewLoadingTask::execute().
|
overridevirtualinherited |
Implements Digikam::LoadingProcess.
References Digikam::SharedLoadingTask::m_listeners.
|
overridevirtualinherited |
Implements Digikam::LoadingProcess.
References Digikam::LoadingDescription::cacheKey(), and Digikam::LoadingTask::m_loadingDescription.
|
overridevirtualinherited |
Implements Digikam::LoadingProcess.
References Digikam::SharedLoadingTask::m_completed.
|
overridevirtualinherited |
Queries whether the image IO operation shall be continued
Reimplemented from Digikam::DImgLoaderObserver.
References Digikam::LoadingTask::LoadingTaskStatusStopping, and Digikam::LoadingTask::m_loadingTaskStatus.
Referenced by Digikam::SharedLoadingTask::execute(), Digikam::PreviewLoadingTask::execute(), and 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().
|
inherited |
|
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().
|
inherited |
References Digikam::SharedLoadingTask::m_img.
Referenced by Digikam::PreviewLoadThread::loadSynchronously(), and Digikam::SharedLoadingTask::setResult().
|
inherited |
|
overridevirtualinherited |
Implements Digikam::LoadingProcessListener.
References Digikam::LoadSaveTask::m_thread.
|
inherited |
|
overridevirtualinherited |
|
overridevirtual |
Reimplemented from Digikam::SharedLoadingTask.
References Digikam::LoadingDescription::PostProcessingParameters::colorManagement, Digikam::LoadingDescription::ConvertForDisplay, Digikam::LoadingDescription::ConvertToSRGB, Digikam::IccProfile::description(), Digikam::LoadingTask::m_loadingDescription, Digikam::LoadingDescription::NoColorConversion, Digikam::LoadingDescription::postProcessingParameters, Digikam::LoadingDescription::PostProcessingParameters::profile(), and Digikam::IccManager::transformForDisplay().
Referenced by execute().
|
overridevirtualinherited |
Posts progress information about image IO
Reimplemented from Digikam::LoadingTask.
References Digikam::LoadingCache::cache(), Digikam::LoadSaveNotifier::loadingProgress(), Digikam::LoadingTask::LoadingTaskStatusLoading, Digikam::LoadingProcessListener::loadSaveNotifier(), Digikam::SharedLoadingTask::m_listeners, Digikam::LoadingTask::m_loadingDescription, Digikam::LoadingTask::m_loadingTaskStatus, and Digikam::LoadingProcessListener::querySendNotifyEvent().
|
overridevirtualinherited |
Implements Digikam::LoadingProcessListener.
References Digikam::LoadSaveTask::m_thread, and Digikam::LoadSaveThread::querySendNotifyEvent().
|
overridevirtualinherited |
Implements Digikam::LoadingProcess.
References Digikam::SharedLoadingTask::m_listeners.
|
overridevirtualinherited |
|
inherited |
References Digikam::LoadingTask::m_loadingTaskStatus, and Digikam::LoadingTask::status().
Referenced by Digikam::ManagedLoadSaveThread::load(), Digikam::ManagedLoadSaveThread::loadThumbnail(), Digikam::ManagedLoadSaveThread::preloadThumbnail(), Digikam::ManagedLoadSaveThread::preloadThumbnailGroup(), Digikam::ManagedLoadSaveThread::save(), Digikam::ManagedLoadSaveThread::shutDown(), and Digikam::ManagedLoadSaveThread::stopAllTasks().
void Digikam::ThumbnailLoadingTask::setThumbResult | ( | const LoadingDescription & | loadingDescription, |
const QImage & | qimage | ||
) |
|
inherited |
References Digikam::LoadingTask::m_loadingTaskStatus.
Referenced by Digikam::LoadingTask::setStatus().
|
overridevirtualinherited |
Implements Digikam::LoadSaveTask.
References Digikam::LoadSaveTask::TaskTypeLoading.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Referenced by Digikam::SharedLoadingTask::cacheKey(), Digikam::LoadingTask::execute(), Digikam::SharedLoadingTask::execute(), Digikam::PreviewLoadingTask::execute(), execute(), Digikam::LoadingTask::filePath(), Digikam::LoadingTask::loadingDescription(), Digikam::SharedLoadingTask::needsPostProcessing(), Digikam::SharedLoadingTask::notifyNewLoadingProcess(), Digikam::SharedLoadingTask::postProcess(), postProcess(), Digikam::LoadingTask::progressInfo(), Digikam::SharedLoadingTask::progressInfo(), Digikam::SharedLoadingTask::setResult(), and setThumbResult().
|
protectedinherited |
Referenced by Digikam::LoadingTask::continueQuery(), Digikam::LoadingTask::execute(), Digikam::SharedLoadingTask::execute(), Digikam::PreviewLoadingTask::execute(), execute(), Digikam::LoadingTask::progressInfo(), Digikam::SharedLoadingTask::progressInfo(), Digikam::LoadingTask::setStatus(), and Digikam::LoadingTask::status().
|
protectedinherited |
Referenced by Digikam::LoadingTask::execute(), Digikam::SharedLoadingTask::execute(), Digikam::SavingTask::execute(), Digikam::PreviewLoadingTask::execute(), execute(), Digikam::SharedLoadingTask::loadSaveNotifier(), Digikam::LoadingTask::progressInfo(), Digikam::SavingTask::progressInfo(), and Digikam::SharedLoadingTask::querySendNotifyEvent().