digiKam
|
Public Types | |
enum | SavingTaskStatus { SavingTaskStatusSaving , SavingTaskStatusStopping } |
enum | TaskType { TaskTypeLoading , TaskTypeSaving } |
Public Member Functions | |
bool | continueQuery () override |
void | execute () override |
QString | filePath () const |
virtual float | granularity () |
void | progressInfo (float progress) override |
SavingTask (LoadSaveThread *const thread, const DImg &img, const QString &filePath, const QString &format) | |
void | setStatus (SavingTaskStatus status) |
SavingTaskStatus | status () const |
TaskType | type () override |
Protected Attributes | |
LoadSaveThread * | m_thread |
|
inherited |
|
explicit |
|
overridevirtual |
Queries whether the image IO operation shall be continued
Reimplemented from Digikam::DImgLoaderObserver.
References SavingTaskStatusStopping.
|
overridevirtual |
QString Digikam::SavingTask::filePath | ( | ) | const |
Referenced by Digikam::ManagedLoadSaveThread::stopSaving().
|
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().
|
overridevirtual |
Posts progress information about image IO
Reimplemented from Digikam::DImgLoaderObserver.
References Digikam::LoadSaveTask::m_thread, Digikam::LoadSaveThread::querySendNotifyEvent(), and Digikam::LoadSaveThread::savingProgress().
void Digikam::SavingTask::setStatus | ( | SavingTaskStatus | status | ) |
References status().
Referenced by Digikam::ManagedLoadSaveThread::stopAllTasks(), and Digikam::ManagedLoadSaveThread::stopSaving().
SavingTask::SavingTaskStatus Digikam::SavingTask::status | ( | ) | const |
Referenced by setStatus().
|
overridevirtual |
Implements Digikam::LoadSaveTask.
References Digikam::LoadSaveTask::TaskTypeSaving.
|
protectedinherited |
Referenced by Digikam::LoadingTask::execute(), Digikam::SharedLoadingTask::execute(), execute(), Digikam::PreviewLoadingTask::execute(), Digikam::ThumbnailLoadingTask::execute(), Digikam::SharedLoadingTask::loadSaveNotifier(), Digikam::LoadingTask::progressInfo(), progressInfo(), and Digikam::SharedLoadingTask::querySendNotifyEvent().