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 |
virtual void | postProcess () |
PreviewLoadingTask (LoadSaveThread *const thread, const LoadingDescription &description) | |
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) |
LoadingTaskStatus | status () const |
TaskType | type () override |
~PreviewLoadingTask () 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 |
|
override |
|
overridevirtualinherited |
Implements Digikam::LoadingProcessListener.
References Digikam::SharedLoadingTask::m_accessMode.
Referenced by Digikam::SharedLoadingTask::execute(), and 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(), execute(), and Digikam::ThumbnailLoadingTask::execute().
|
overridevirtual |
Reimplemented from Digikam::SharedLoadingTask.
References Digikam::LoadingProcessListener::accessMode(), Digikam::SharedLoadingTask::accessMode(), Digikam::LoadSaveThread::AccessModeReadWrite, Digikam::LoadingProcess::addListener(), Digikam::LoadingCache::addLoadingProcess(), Digikam::LoadingCache::cache(), Digikam::LoadingDescription::cacheKey(), Digikam::LoadingProcess::completed(), Digikam::LoadingTask::continueQuery(), Digikam::DImg::convertToEightBit(), Digikam::PreviewSettings::convertToEightBit, Digikam::DImg::copy(), Digikam::DImg::detach(), Digikam::DImg::exifRotate(), Digikam::MetaEngineSettingsContainer::exifRotate, Digikam::PreviewSettings::FastButLargePreview, Digikam::PreviewSettings::FastPreview, Digikam::DImg::fileFormat(), Digikam::LoadingDescription::filePath, Digikam::PreviewSettings::HighQualityPreview, Digikam::LoadSaveThread::imageLoaded(), Digikam::DRawInfo::imageSize, Digikam::MetaEngineSettings::instance(), Digikam::DImg::isNull(), Digikam::DImg::load(), Digikam::LoadingTask::LoadingTaskStatusStopping, Digikam::LoadingDescription::lookupCacheKeys(), Digikam::SharedLoadingTask::m_completed, Digikam::SharedLoadingTask::m_img, Digikam::SharedLoadingTask::m_listeners, Digikam::LoadingTask::m_loadingDescription, Digikam::LoadingTask::m_loadingTaskStatus, Digikam::LoadSaveTask::m_thread, Digikam::LoadingDescription::needCheckRawDecoding(), Digikam::SharedLoadingTask::needsPostProcessing(), Digikam::LoadingCache::notifyNewLoadingProcess(), Digikam::MetaEnginePreviews::originalSize(), Digikam::SharedLoadingTask::postProcess(), Digikam::LoadingDescription::previewParameters, Digikam::LoadingDescription::PreviewParameters::previewSettings, Digikam::LoadingCache::putImage(), Digikam::PreviewSettings::quality, Digikam::DImg::RAW, Digikam::DImg::rawDecodingSettings(), Digikam::LoadingDescription::rawDecodingSettings, Digikam::DRawDecoder::rawFileIdentify(), Digikam::PreviewSettings::rawLoading, Digikam::PreviewSettings::RawPreviewAutomatic, Digikam::PreviewSettings::RawPreviewFromEmbeddedPreview, Digikam::PreviewSettings::RawPreviewFromRawHalfSize, Digikam::LoadingProcess::removeListener(), Digikam::LoadingCache::removeLoadingProcess(), Digikam::LoadingCache::retrieveImage(), Digikam::LoadingCache::retrieveLoadingProcess(), Digikam::DImg::setAttribute(), Digikam::LoadingProcessListener::setResult(), Digikam::MetaEngineSettings::settings(), Digikam::DImg::size(), Digikam::LoadingDescription::PreviewParameters::size, Digikam::DImg::smoothScale(), Digikam::LoadSaveThread::taskHasFinished(), Digikam::LoadingCache::CacheLock::timedWait(), Digikam::LoadingCache::CacheLock::wakeAll(), and Digikam::DImg::wasExifRotated().
Referenced by Digikam::PreviewLoadThread::loadSynchronously().
|
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 |
|
virtualinherited |
Reimplemented in Digikam::ThumbnailLoadingTask.
References Digikam::IccTransform::apply(), Digikam::LoadingDescription::ApplyTransform, Digikam::LoadingDescription::PostProcessingParameters::colorManagement, Digikam::LoadingDescription::ConvertForDisplay, Digikam::LoadingDescription::ConvertForEditor, Digikam::LoadingDescription::ConvertForOutput, Digikam::LoadingDescription::ConvertToSRGB, Digikam::SharedLoadingTask::m_img, Digikam::LoadingTask::m_loadingDescription, Digikam::LoadingDescription::NoColorConversion, Digikam::IccTransform::outputProfile(), Digikam::LoadingDescription::postProcessingParameters, Digikam::LoadingDescription::PostProcessingParameters::profile(), Digikam::DImg::setIccProfile(), Digikam::LoadingDescription::PostProcessingParameters::transform(), Digikam::IccManager::transformDefault(), Digikam::IccManager::transformForDisplay(), Digikam::IccManager::transformForOutput(), and Digikam::IccManager::transformToSRGB().
Referenced by Digikam::SharedLoadingTask::execute(), and 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().
|
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(), execute(), Digikam::ThumbnailLoadingTask::execute(), Digikam::LoadingTask::filePath(), Digikam::LoadingTask::loadingDescription(), Digikam::SharedLoadingTask::needsPostProcessing(), Digikam::SharedLoadingTask::notifyNewLoadingProcess(), Digikam::SharedLoadingTask::postProcess(), Digikam::ThumbnailLoadingTask::postProcess(), Digikam::LoadingTask::progressInfo(), Digikam::SharedLoadingTask::progressInfo(), Digikam::SharedLoadingTask::setResult(), and Digikam::ThumbnailLoadingTask::setThumbResult().
|
protectedinherited |
Referenced by Digikam::LoadingTask::continueQuery(), Digikam::LoadingTask::execute(), Digikam::SharedLoadingTask::execute(), execute(), Digikam::ThumbnailLoadingTask::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(), execute(), Digikam::ThumbnailLoadingTask::execute(), Digikam::SharedLoadingTask::loadSaveNotifier(), Digikam::LoadingTask::progressInfo(), Digikam::SavingTask::progressInfo(), and Digikam::SharedLoadingTask::querySendNotifyEvent().