diff options
Diffstat (limited to 'digikam/libs/threadimageio/loadingcache.h')
-rw-r--r-- | digikam/libs/threadimageio/loadingcache.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/digikam/libs/threadimageio/loadingcache.h b/digikam/libs/threadimageio/loadingcache.h index 26f89c87..372a5ffa 100644 --- a/digikam/libs/threadimageio/loadingcache.h +++ b/digikam/libs/threadimageio/loadingcache.h @@ -24,10 +24,10 @@ #ifndef LOADING_CACHE_H #define LOADING_CACHE_H -#include <qptrlist.h> -#include <qcache.h> -#include <qdict.h> -#include <qmutex.h> +#include <tqptrlist.h> +#include <tqcache.h> +#include <tqdict.h> +#include <tqmutex.h> #include "dimg.h" #include "loadsavethread.h" @@ -40,7 +40,7 @@ class LoadingProcessListener public: virtual bool querySendNotifyEvent() = 0; - virtual QObject *eventReceiver() = 0; + virtual TQObject *eventReceiver() = 0; virtual LoadSaveThread::AccessMode accessMode() = 0; }; @@ -50,8 +50,8 @@ class LoadingProcess public: virtual bool completed() = 0; - virtual QString filePath() = 0; - virtual QString cacheKey() = 0; + virtual TQString filePath() = 0; + virtual TQString cacheKey() = 0; virtual void addListener(LoadingProcessListener *listener) = 0; virtual void removeListener(LoadingProcessListener *listener) = 0; virtual void notifyNewLoadingProcess(LoadingProcess *process, LoadingDescription description) = 0; @@ -60,10 +60,11 @@ public: class LoadingCachePriv; -class LoadingCache : public QObject +class LoadingCache : public TQObject { Q_OBJECT + TQ_OBJECT public: @@ -85,7 +86,7 @@ public: // Retrieves an image for the given string from the cache, // or 0 if no image is found. - DImg *retrieveImage(const QString &cacheKey); + DImg *retrieveImage(const TQString &cacheKey); // Returns whether the given DImg fits in the cache. bool isCacheable(const DImg *img); // Put image into for given string into the cache. @@ -94,12 +95,12 @@ public: // When it cannot be put in the cache it is deleted. // The third parameter specifies a file path that will be watched. // If this file changes, the object will be removed from the cache. - bool putImage(const QString &cacheKey, DImg *img, const QString &filePath); - void removeImage(const QString &cacheKey); + bool putImage(const TQString &cacheKey, DImg *img, const TQString &filePath); + void removeImage(const TQString &cacheKey); void removeImages(); // Find the loading process for given cacheKey, or 0 if not found - LoadingProcess *retrieveLoadingProcess(const QString &cacheKey); + LoadingProcess *retrieveLoadingProcess(const TQString &cacheKey); // Add a loading process to the list. Only one loading process // for the same cache key is registered at a time. void addLoadingProcess(LoadingProcess *process); @@ -112,11 +113,11 @@ public: protected: - virtual void customEvent (QCustomEvent *event); + virtual void customEvent (TQCustomEvent *event); private slots: - void slotFileDirty(const QString &path); + void slotFileDirty(const TQString &path); private: |