summaryrefslogtreecommitdiffstats
path: root/src/gvcore/cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gvcore/cache.h')
-rw-r--r--src/gvcore/cache.h35
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: