digiKam
|
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 LoadingDescription & | loadingDescription () 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 |
LoadSaveThread * | m_thread |
|
inherited |
|
explicit |
|
override |
|
overridevirtual |
Queries whether the image IO operation shall be continued
Reimplemented from Digikam::DImgLoaderObserver.
References LoadingTaskStatusStopping, and m_loadingTaskStatus.
Referenced by Digikam::SharedLoadingTask::execute(), Digikam::PreviewLoadingTask::execute(), and Digikam::ThumbnailLoadingTask::execute().
|
overridevirtual |
Implements Digikam::LoadSaveTask.
Reimplemented in Digikam::ThumbnailLoadingTask, Digikam::PreviewLoadingTask, and Digikam::SharedLoadingTask.
References Digikam::LoadingDescription::filePath, Digikam::LoadSaveThread::imageLoaded(), LoadingTaskStatusStopping, m_loadingDescription, m_loadingTaskStatus, Digikam::LoadSaveTask::m_thread, Digikam::LoadingDescription::rawDecodingSettings, and Digikam::LoadSaveThread::taskHasFinished().
QString Digikam::LoadingTask::filePath | ( | ) | const |
References Digikam::LoadingDescription::filePath, and m_loadingDescription.
|
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().
const LoadingDescription & Digikam::LoadingTask::loadingDescription | ( | ) | const |
|
overridevirtual |
Posts progress information about image IO
Reimplemented from Digikam::DImgLoaderObserver.
Reimplemented in Digikam::SharedLoadingTask.
References Digikam::LoadSaveThread::loadingProgress(), LoadingTaskStatusLoading, m_loadingDescription, m_loadingTaskStatus, Digikam::LoadSaveTask::m_thread, and Digikam::LoadSaveThread::querySendNotifyEvent().
void Digikam::LoadingTask::setStatus | ( | LoadingTaskStatus | status | ) |
References m_loadingTaskStatus, and 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().
LoadingTask::LoadingTaskStatus Digikam::LoadingTask::status | ( | ) | const |
References m_loadingTaskStatus.
Referenced by setStatus().
|
overridevirtual |
Implements Digikam::LoadSaveTask.
References Digikam::LoadSaveTask::TaskTypeLoading.
|
protected |
Referenced by Digikam::SharedLoadingTask::cacheKey(), execute(), Digikam::SharedLoadingTask::execute(), Digikam::PreviewLoadingTask::execute(), Digikam::ThumbnailLoadingTask::execute(), filePath(), loadingDescription(), Digikam::SharedLoadingTask::needsPostProcessing(), Digikam::SharedLoadingTask::notifyNewLoadingProcess(), Digikam::SharedLoadingTask::postProcess(), Digikam::ThumbnailLoadingTask::postProcess(), progressInfo(), Digikam::SharedLoadingTask::progressInfo(), Digikam::SharedLoadingTask::setResult(), and Digikam::ThumbnailLoadingTask::setThumbResult().
|
protected |
|
protectedinherited |
Referenced by execute(), Digikam::SharedLoadingTask::execute(), Digikam::SavingTask::execute(), Digikam::PreviewLoadingTask::execute(), Digikam::ThumbnailLoadingTask::execute(), Digikam::SharedLoadingTask::loadSaveNotifier(), progressInfo(), Digikam::SavingTask::progressInfo(), and Digikam::SharedLoadingTask::querySendNotifyEvent().