summaryrefslogtreecommitdiffstats
path: root/dcoprss/cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'dcoprss/cache.h')
-rw-r--r--dcoprss/cache.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/dcoprss/cache.h b/dcoprss/cache.h
index 8248b609..3bf73e12 100644
--- a/dcoprss/cache.h
+++ b/dcoprss/cache.h
@@ -25,41 +25,41 @@
#ifndef CACHE_H
#define CACHE_H
-#include <qcstring.h>
-#include <qdatetime.h>
-#include <qdict.h>
+#include <tqcstring.h>
+#include <tqdatetime.h>
+#include <tqdict.h>
#include <xmlrpciface.h>
class CacheEntry
{
friend class Cache;
- friend QDataStream &operator>>( QDataStream &s, CacheEntry &e );
+ friend TQDataStream &operator>>( TQDataStream &s, CacheEntry &e );
public:
- const QDateTime &timeStamp() const { return m_timeStamp; }
+ const TQDateTime &timeStamp() const { return m_timeStamp; }
const KXMLRPC::Query::Result result() const { return m_result; }
bool isValid() const;
private:
- QDateTime m_timeStamp;
+ TQDateTime m_timeStamp;
KXMLRPC::Query::Result m_result;
};
-class Cache : public QDict<CacheEntry>
+class Cache : public TQDict<CacheEntry>
{
public:
static Cache &self();
- static QString getCacheKey( const QString &server,
- const QString &method,
- const QValueList<QVariant> &args );
+ static TQString getCacheKey( const TQString &server,
+ const TQString &method,
+ const TQValueList<TQVariant> &args );
void load();
void save();
- void touch( const QString &key );
+ void touch( const TQString &key );
- void insert( const QString &key, const KXMLRPC::Query::Result &result );
+ void insert( const TQString &key, const KXMLRPC::Query::Result &result );
private:
Cache();
@@ -67,17 +67,17 @@ class Cache : public QDict<CacheEntry>
Cache &operator=( const Cache &rhs ); // disabled
~Cache();
- QString cacheFileName() const;
+ TQString cacheFileName() const;
static Cache *m_instance;
};
-inline QDataStream &operator<<( QDataStream &s, const CacheEntry &e )
+inline TQDataStream &operator<<( TQDataStream &s, const CacheEntry &e )
{
return s << e.timeStamp() << e.result();
}
-inline QDataStream &operator>>( QDataStream &s, CacheEntry &e )
+inline TQDataStream &operator>>( TQDataStream &s, CacheEntry &e )
{
return s >> e.m_timeStamp >> e.m_result;
}