diff options
Diffstat (limited to 'digikam/libs/threadimageio/loadsavethread.h')
-rw-r--r-- | digikam/libs/threadimageio/loadsavethread.h | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/digikam/libs/threadimageio/loadsavethread.h b/digikam/libs/threadimageio/loadsavethread.h index 640b438f..264727f3 100644 --- a/digikam/libs/threadimageio/loadsavethread.h +++ b/digikam/libs/threadimageio/loadsavethread.h @@ -25,14 +25,14 @@ #ifndef LOAD_SAVE_THREAD_H #define LOAD_SAVE_THREAD_H -// Qt includes. +// TQt includes. -#include <qthread.h> -#include <qobject.h> -#include <qmutex.h> -#include <qptrlist.h> -#include <qdatetime.h> -#include <qwaitcondition.h> +#include <tqthread.h> +#include <tqobject.h> +#include <tqmutex.h> +#include <tqptrlist.h> +#include <tqdatetime.h> +#include <tqwaitcondition.h> // Digikam includes. @@ -46,10 +46,11 @@ namespace Digikam class LoadSaveThreadPriv; class LoadSaveTask; -class DIGIKAM_EXPORT LoadSaveThread : public QObject, public QThread +class DIGIKAM_EXPORT LoadSaveThread : public TQObject, public TQThread { Q_OBJECT + TQ_OBJECT public: @@ -85,7 +86,7 @@ public: /** Append a task to load the given file to the task list */ void load(LoadingDescription description); /** Append a task to save the image to the task list */ - void save(DImg &image, const QString& filePath, const QString &format); + void save(DImg &image, const TQString& filePath, const TQString &format); void setNotificationPolicy(NotificationPolicy notificationPolicy); @@ -98,7 +99,7 @@ public: * Returns true if the image has actually been rotated or flipped. * Returns false if a rotation was not needed. */ - static bool exifRotate(DImg &image, const QString& filePath); + static bool exifRotate(DImg &image, const TQString& filePath); signals: @@ -126,9 +127,9 @@ signals: void signalMoreCompleteLoadingAvailable(const LoadingDescription &oldLoadingDescription, const LoadingDescription &newLoadingDescription); - void signalImageStartedSaving(const QString& filePath); - void signalSavingProgress(const QString& filePath, float progress); - void signalImageSaved(const QString& filePath, bool success); + void signalImageStartedSaving(const TQString& filePath); + void signalSavingProgress(const TQString& filePath, float progress); + void signalImageSaved(const TQString& filePath, bool success); public: @@ -145,13 +146,13 @@ public: const LoadingDescription &newLoadingDescription) { emit signalMoreCompleteLoadingAvailable(oldLoadingDescription, newLoadingDescription); } - void imageStartedSaving(const QString& filePath) + void imageStartedSaving(const TQString& filePath) { emit signalImageStartedSaving(filePath); }; - void savingProgress(const QString& filePath, float progress) + void savingProgress(const TQString& filePath, float progress) { emit signalSavingProgress(filePath, progress); }; - void imageSaved(const QString& filePath, bool success) + void imageSaved(const TQString& filePath, bool success) { emit signalImageSaved(filePath, success); }; virtual bool querySendNotifyEvent(); @@ -160,13 +161,13 @@ public: protected: virtual void run(); - virtual void customEvent(QCustomEvent *event); + virtual void customEvent(TQCustomEvent *event); - QMutex m_mutex; + TQMutex m_mutex; - QWaitCondition m_condVar; + TQWaitCondition m_condVar; - QPtrList<LoadSaveTask> m_todo; + TQPtrList<LoadSaveTask> m_todo; LoadSaveTask *m_currentTask; |