25 #ifndef DIGIKAM_LOAD_SAVE_THREAD_H
26 #define DIGIKAM_LOAD_SAVE_THREAD_H
34 #include <QWaitCondition>
64 virtual void imageSaved(
const QString& filePath,
bool success) = 0;
120 NotificationPolicyTimeLimited
156 void save(
const DImg& image,
const QString& filePath,
const QString& format);
158 void setNotificationPolicy(NotificationPolicy notificationPolicy);
169 static int exifOrientation(
const QString& filePath,
172 bool fromRawEmbeddedPreview);
220 void loadingProgress(
const LoadingDescription& loadingDescription,
float progress)
override;
224 void imageStartedSaving(
const QString& filePath)
override;
225 void savingProgress(
const QString& filePath,
float progress)
override;
226 void imageSaved(
const QString& filePath,
bool success)
override;
227 void thumbnailLoaded(
const LoadingDescription& loadingDescription,
const QImage& img)
override;
229 virtual bool querySendNotifyEvent()
const;
230 virtual void taskHasFinished();
236 void notificationReceived();
Definition: dynamicthread.h:43
Definition: loadsavethread.h:75
virtual QSize dimensionsHint(const QString &path)=0
virtual int orientationHint(const QString &path)=0
Definition: loadsavethread.h:51
virtual void savingProgress(const QString &filePath, float progress)=0
virtual void moreCompleteLoadingAvailable(const LoadingDescription &oldLoadingDescription, const LoadingDescription &newLoadingDescription)=0
virtual void imageSaved(const QString &filePath, bool success)=0
virtual void loadingProgress(const LoadingDescription &loadingDescription, float progress)=0
virtual void imageStartedSaving(const QString &filePath)=0
virtual void imageLoaded(const LoadingDescription &loadingDescription, const DImg &img)=0
virtual void thumbnailLoaded(const LoadingDescription &loadingDescription, const QImage &img)=0
virtual void imageStartedLoading(const LoadingDescription &loadingDescription)=0
Definition: loadsavetask.h:46
Definition: loadsavethread.h:103
void signalSavingProgress(const QString &filePath, float progress)
AccessMode
Definition: loadsavethread.h:127
@ AccessModeRead
Definition: loadsavethread.h:131
NotificationPolicy m_notificationPolicy
Definition: loadsavethread.h:246
NotificationPolicy
Definition: loadsavethread.h:109
@ NotificationPolicyDirect
Definition: loadsavethread.h:113
QList< LoadSaveTask * > m_todo
Definition: loadsavethread.h:242
void signalImageStartedLoading(const LoadingDescription &loadingDescription)
LoadSaveTask * m_currentTask
Definition: loadsavethread.h:244
void signalImageStartedSaving(const QString &filePath)
void signalImageLoaded(const LoadingDescription &loadingDescription, const DImg &img)
QMutex m_mutex
Definition: loadsavethread.h:240
void signalThumbnailLoaded(const LoadingDescription &loadingDescription, const QImage &img)
void signalLoadingProgress(const LoadingDescription &loadingDescription, float progress)
void signalImageSaved(const QString &filePath, bool success)
void signalMoreCompleteLoadingAvailable(const LoadingDescription &oldLoadingDescription, const LoadingDescription &newLoadingDescription)
Definition: loadingdescription.h:45
Definition: piwigotalker.h:48
Definition: datefolderview.cpp:43