diff options
Diffstat (limited to 'digikam/libs/threadimageio/loadsavetask.h')
-rw-r--r-- | digikam/libs/threadimageio/loadsavetask.h | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/digikam/libs/threadimageio/loadsavetask.h b/digikam/libs/threadimageio/loadsavetask.h index 005a5f66..13b2df2b 100644 --- a/digikam/libs/threadimageio/loadsavetask.h +++ b/digikam/libs/threadimageio/loadsavetask.h @@ -26,9 +26,9 @@ #ifndef LOAD_SAVE_TASK_H #define LOAD_SAVE_TASK_H -// Qt includes. +// TQt includes. -#include <qevent.h> +#include <tqevent.h> // Local includes. @@ -68,14 +68,14 @@ protected: //--------------------------------------------------------------------------------------------------- -class NotifyEvent : public QCustomEvent +class NotifyEvent : public TQCustomEvent { public: - static QEvent::Type notifyEventId() - { return QEvent::User; }; + static TQEvent::Type notifyEventId() + { return TQEvent::User; }; - NotifyEvent() : QCustomEvent(notifyEventId()) {}; + NotifyEvent() : TQCustomEvent(notifyEventId()) {}; virtual void notify(LoadSaveThread *thread) = 0; }; @@ -119,7 +119,7 @@ class SavingProgressEvent : public ProgressEvent { public: - SavingProgressEvent(const QString& filePath, float progress) + SavingProgressEvent(const TQString& filePath, float progress) : ProgressEvent(progress), m_filePath(filePath) {}; @@ -128,7 +128,7 @@ public: private: - QString m_filePath; + TQString m_filePath; }; //--------------------------------------------------------------------------------------------------- @@ -154,7 +154,7 @@ class StartedSavingEvent : public NotifyEvent { public: - StartedSavingEvent(const QString& filePath) + StartedSavingEvent(const TQString& filePath) : m_filePath(filePath) {}; @@ -162,7 +162,7 @@ public: private: - QString m_filePath; + TQString m_filePath; }; //--------------------------------------------------------------------------------------------------- @@ -208,7 +208,7 @@ class LoadingTask : public LoadSaveTask, public DImgLoaderObserver { public: - enum LoadingTaskStatus + enum LoadingTasktqStatus { LoadingTaskStatusLoading, LoadingTaskStatusPreloading, @@ -216,8 +216,8 @@ public: }; LoadingTask(LoadSaveThread* thread, LoadingDescription description, - LoadingTaskStatus loadingTaskStatus = LoadingTaskStatusLoading) - : LoadSaveTask(thread), m_loadingDescription(description), m_loadingTaskStatus(loadingTaskStatus) + LoadingTasktqStatus loadingTasktqStatus = LoadingTaskStatusLoading) + : LoadSaveTask(thread), m_loadingDescription(description), m_loadingTasktqStatus(loadingTasktqStatus) {} // LoadSaveTask @@ -231,14 +231,14 @@ public: virtual bool continueQuery(const DImg *); virtual bool isShuttingDown(); - virtual void setStatus(LoadingTaskStatus status); + virtual void settqStatus(LoadingTasktqStatus status); - LoadingTaskStatus status() const + LoadingTasktqStatus status() const { - return m_loadingTaskStatus; + return m_loadingTasktqStatus; } - QString filePath() const + TQString filePath() const { return m_loadingDescription.filePath; } @@ -251,7 +251,7 @@ public: protected: LoadingDescription m_loadingDescription; - LoadingTaskStatus m_loadingTaskStatus; + LoadingTasktqStatus m_loadingTasktqStatus; }; //--------------------------------------------------------------------------------------------------- @@ -262,21 +262,21 @@ public: SharedLoadingTask(LoadSaveThread* thread, LoadingDescription description, LoadSaveThread::AccessMode mode = LoadSaveThread::AccessModeReadWrite, - LoadingTaskStatus loadingTaskStatus = LoadingTaskStatusLoading) - : LoadingTask(thread, description, loadingTaskStatus), + LoadingTasktqStatus loadingTasktqStatus = LoadingTaskStatusLoading) + : LoadingTask(thread, description, loadingTasktqStatus), m_accessMode(mode), m_completed(false), m_usedProcess(0) {} virtual void execute(); virtual void progressInfo(const DImg *, float progress); virtual bool continueQuery(const DImg *); - virtual void setStatus(LoadingTaskStatus status); + virtual void settqStatus(LoadingTasktqStatus status); // LoadingProcess virtual bool completed(); - virtual QString filePath(); - virtual QString cacheKey(); + virtual TQString filePath(); + virtual TQString cacheKey(); virtual void addListener(LoadingProcessListener *listener); virtual void removeListener(LoadingProcessListener *listener); virtual void notifyNewLoadingProcess(LoadingProcess *process, LoadingDescription description); @@ -284,7 +284,7 @@ public: // LoadingProcessListener virtual bool querySendNotifyEvent(); - virtual QObject *eventReceiver(); + virtual TQObject *eventReceiver(); virtual LoadSaveThread::AccessMode accessMode(); protected: @@ -292,7 +292,7 @@ protected: LoadSaveThread::AccessMode m_accessMode; bool m_completed; LoadingProcess *m_usedProcess; - QPtrList<LoadingProcessListener> m_listeners; + TQPtrList<LoadingProcessListener> m_listeners; }; //--------------------------------------------------------------------------------------------------- @@ -301,7 +301,7 @@ class SavedEvent : public NotifyEvent { public: - SavedEvent(const QString &filePath, bool success) + SavedEvent(const TQString &filePath, bool success) : m_filePath(filePath), m_success(success) {}; @@ -309,7 +309,7 @@ public: private: - QString m_filePath; + TQString m_filePath; bool m_success; }; @@ -319,13 +319,13 @@ class SavingTask : public LoadSaveTask, public DImgLoaderObserver { public: - enum SavingTaskStatus + enum SavingTasktqStatus { SavingTaskStatusSaving, SavingTaskStatusStopping }; - SavingTask(LoadSaveThread* thread, DImg &img, const QString &filePath, const QString &format) + SavingTask(LoadSaveThread* thread, DImg &img, const TQString &filePath, const TQString &format) : LoadSaveTask(thread), m_img(img), m_filePath(filePath), m_format(format) {}; @@ -335,14 +335,14 @@ public: virtual void progressInfo(const DImg *, float progress); virtual bool continueQuery(const DImg *); - virtual void setStatus(SavingTaskStatus status); + virtual void settqStatus(SavingTasktqStatus status); - SavingTaskStatus status() const + SavingTasktqStatus status() const { - return m_savingTaskStatus; + return m_savingTasktqStatus; } - QString filePath() const + TQString filePath() const { return m_filePath; } @@ -350,9 +350,9 @@ public: private: DImg m_img; - QString m_filePath; - QString m_format; - SavingTaskStatus m_savingTaskStatus; + TQString m_filePath; + TQString m_format; + SavingTasktqStatus m_savingTasktqStatus; }; } // namespace Digikam |