summaryrefslogtreecommitdiffstats
path: root/dcoprss/cache.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /dcoprss/cache.cpp
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'dcoprss/cache.cpp')
-rw-r--r--dcoprss/cache.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/dcoprss/cache.cpp b/dcoprss/cache.cpp
index c4a566aa..1e7d260c 100644
--- a/dcoprss/cache.cpp
+++ b/dcoprss/cache.cpp
@@ -35,7 +35,7 @@ bool CacheEntry::isValid() const
{
// Cache entries get invalid after on hour. One shouldn't hardcode this
// but for now it'll do.
- return m_timeStamp.secsTo( TQDateTime::currentDateTime() ) < 3600;
+ return m_timeStamp.secsTo( TQDateTime::tqcurrentDateTime() ) < 3600;
}
Cache *Cache::m_instance = 0;
@@ -51,8 +51,8 @@ TQString Cache::getCacheKey( const TQString &server, const TQString &method,
const TQValueList<TQVariant> &args )
{
TQString key;
- key = server + TQString::fromLatin1( "__" );
- key += method + TQString::fromLatin1( "__" );
+ key = server + TQString::tqfromLatin1( "__" );
+ key += method + TQString::tqfromLatin1( "__" );
TQValueList<TQVariant>::ConstIterator it = args.begin();
TQValueList<TQVariant>::ConstIterator end = args.end();
for ( ; it != end; ++it )
@@ -108,16 +108,16 @@ void Cache::save()
void Cache::touch( const TQString &key )
{
- CacheEntry *entry = find( key );
+ CacheEntry *entry = tqfind( key );
if ( !entry )
return;
- entry->m_timeStamp = TQDateTime::currentDateTime();
+ entry->m_timeStamp = TQDateTime::tqcurrentDateTime();
}
void Cache::insert( const TQString &key, const KXMLRPC::Query::Result &result )
{
CacheEntry *entry = new CacheEntry;
- entry->m_timeStamp = TQDateTime::currentDateTime();
+ entry->m_timeStamp = TQDateTime::tqcurrentDateTime();
entry->m_result = result;
TQDict<CacheEntry>::insert( key, entry );
}