summaryrefslogtreecommitdiffstats
path: root/dcoprss/cache.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /dcoprss/cache.h
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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;
}