diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-26 21:04:57 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-26 21:04:57 +0000 |
commit | bf7f88413be3831a9372d323d02fc0335b9f9188 (patch) | |
tree | 516fdef9206245b40a14f99b4e3d9ef9289196e0 /src/gvcore/cache.h | |
parent | e238aa77b1fb3c2f55aef2ef2c91ce52166d2cc8 (diff) | |
download | gwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.tar.gz gwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.zip |
TQt4 port Gwenview
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gwenview@1233720 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gvcore/cache.h')
-rw-r--r-- | src/gvcore/cache.h | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/src/gvcore/cache.h b/src/gvcore/cache.h index 272cf8f..199bc46 100644 --- a/src/gvcore/cache.h +++ b/src/gvcore/cache.h @@ -21,13 +21,13 @@ Copyright 2000-2004 Aur�lien G�teau #ifndef CACHE_H #define CACHE_H -// Qt -#include <qcstring.h> -#include <qdatetime.h> -#include <qimage.h> -#include <qobject.h> -#include <qtimer.h> -#include <qvaluelist.h> +// TQt +#include <tqcstring.h> +#include <tqdatetime.h> +#include <tqimage.h> +#include <tqobject.h> +#include <tqtimer.h> +#include <tqvaluelist.h> // KDE #include <kurl.h> @@ -38,22 +38,23 @@ Copyright 2000-2004 Aur�lien G�teau class KConfig; namespace Gwenview { -class LIBGWENVIEW_EXPORT Cache : public QObject { +class LIBGWENVIEW_EXPORT Cache : public TQObject { Q_OBJECT + TQ_OBJECT public: static Cache* instance(); ~Cache(); - void addImage( const KURL& url, const ImageFrames& frames, const QCString& format, const QDateTime& timestamp ); - void addFile( const KURL& url, const QByteArray& file, const QDateTime& timestamp ); - void addThumbnail( const KURL& url, const QPixmap& thumbnail, QSize imagesize, const QDateTime& timestamp ); - QDateTime timestamp( const KURL& url ) const; - QByteArray file( const KURL& url ) const; - void getFrames( const KURL& url, ImageFrames* frames, QCString* format ) const; - QPixmap thumbnail( const KURL& url, QSize& imagesize ) const; + void addImage( const KURL& url, const ImageFrames& frames, const TQCString& format, const TQDateTime& timestamp ); + void addFile( const KURL& url, const TQByteArray& file, const TQDateTime& timestamp ); + void addThumbnail( const KURL& url, const TQPixmap& thumbnail, TQSize imagesize, const TQDateTime& timestamp ); + TQDateTime timestamp( const KURL& url ) const; + TQByteArray file( const KURL& url ) const; + void getFrames( const KURL& url, ImageFrames* frames, TQCString* format ) const; + TQPixmap thumbnail( const KURL& url, TQSize& imagesize ) const; void setPriorityURL( const KURL& url, bool set ); - void invalidate( const KURL& url ); + void tqinvalidate( const KURL& url ); void checkThumbnailSize( int size ); - void readConfig(KConfig*,const QString& group); + void readConfig(KConfig*,const TQString& group); void updateAge(); enum { DEFAULT_MAXSIZE = 16 * 1024 * 1024 }; // 16MiB private: |