summaryrefslogtreecommitdiffstats
path: root/kmail/messageproperty.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/messageproperty.cpp')
-rw-r--r--kmail/messageproperty.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kmail/messageproperty.cpp b/kmail/messageproperty.cpp
index b1e02161b..e9897cd64 100644
--- a/kmail/messageproperty.cpp
+++ b/kmail/messageproperty.cpp
@@ -35,21 +35,21 @@
#include "messageproperty.h"
using namespace KMail;
-TQMap<Q_UINT32, TQGuardedPtr<KMFolder> > MessageProperty::sFolders;
-TQMap<Q_UINT32, TQGuardedPtr<ActionScheduler> > MessageProperty::sHandlers;
-TQMap<Q_UINT32, int > MessageProperty::sTransfers;
+TQMap<TQ_UINT32, TQGuardedPtr<KMFolder> > MessageProperty::sFolders;
+TQMap<TQ_UINT32, TQGuardedPtr<ActionScheduler> > MessageProperty::sHandlers;
+TQMap<TQ_UINT32, int > MessageProperty::sTransfers;
TQMap<const KMMsgBase*, long > MessageProperty::sSerialCache;
-bool MessageProperty::filtering( Q_UINT32 serNum )
+bool MessageProperty::filtering( TQ_UINT32 serNum )
{
- return sFolders.contains( serNum );
+ return sFolders.tqcontains( serNum );
}
-void MessageProperty::setFiltering( Q_UINT32 serNum, bool filter )
+void MessageProperty::setFiltering( TQ_UINT32 serNum, bool filter )
{
assert(!filtering(serNum) || !filter);
if (filter && !filtering(serNum))
- sFolders.replace(serNum, TQGuardedPtr<KMFolder>(0) );
+ sFolders.tqreplace(serNum, TQGuardedPtr<KMFolder>(0) );
else if (!filter)
sFolders.remove(serNum);
}
@@ -64,13 +64,13 @@ void MessageProperty::setFiltering( const KMMsgBase *msgBase, bool filter )
setFiltering( msgBase->getMsgSerNum(), filter );
}
-KMFolder* MessageProperty::filterFolder( Q_UINT32 serNum )
+KMFolder* MessageProperty::filterFolder( TQ_UINT32 serNum )
{
- TQMap<Q_UINT32, TQGuardedPtr<KMFolder> >::const_iterator it = sFolders.find( serNum );
+ TQMap<TQ_UINT32, TQGuardedPtr<KMFolder> >::const_iterator it = sFolders.find( serNum );
return it == sFolders.constEnd() ? 0 : (*it).operator->();
}
-void MessageProperty::setFilterFolder( Q_UINT32 serNum, KMFolder* folder )
+void MessageProperty::setFilterFolder( TQ_UINT32 serNum, KMFolder* folder )
{
sFolders.insert(serNum, TQGuardedPtr<KMFolder>(folder) );
}
@@ -85,13 +85,13 @@ void MessageProperty::setFilterFolder( const KMMsgBase *msgBase, KMFolder* folde
setFilterFolder( msgBase->getMsgSerNum(), folder );
}
-ActionScheduler* MessageProperty::filterHandler( Q_UINT32 serNum )
+ActionScheduler* MessageProperty::filterHandler( TQ_UINT32 serNum )
{
- TQMap<Q_UINT32, TQGuardedPtr<ActionScheduler> >::const_iterator it = sHandlers.find( serNum );
+ TQMap<TQ_UINT32, TQGuardedPtr<ActionScheduler> >::const_iterator it = sHandlers.find( serNum );
return it == sHandlers.constEnd() ? 0 : (*it).operator->();
}
-void MessageProperty::setFilterHandler( Q_UINT32 serNum, ActionScheduler* handler )
+void MessageProperty::setFilterHandler( TQ_UINT32 serNum, ActionScheduler* handler )
{
if (handler)
sHandlers.insert( serNum, TQGuardedPtr<ActionScheduler>(handler) );
@@ -109,16 +109,16 @@ void MessageProperty::setFilterHandler( const KMMsgBase *msgBase, ActionSchedule
setFilterHandler( msgBase->getMsgSerNum(), handler );
}
-bool MessageProperty::transferInProgress( Q_UINT32 serNum )
+bool MessageProperty::transferInProgress( TQ_UINT32 serNum )
{
- TQMap<Q_UINT32, int >::const_iterator it = sTransfers.find( serNum );
+ TQMap<TQ_UINT32, int >::const_iterator it = sTransfers.find( serNum );
return it == sTransfers.constEnd() ? false : *it;
}
-void MessageProperty::setTransferInProgress( Q_UINT32 serNum, bool transfer, bool force )
+void MessageProperty::setTransferInProgress( TQ_UINT32 serNum, bool transfer, bool force )
{
int transferInProgress = 0;
- TQMap<Q_UINT32, int >::const_iterator it = sTransfers.find( serNum );
+ TQMap<TQ_UINT32, int >::const_iterator it = sTransfers.find( serNum );
if (it != sTransfers.constEnd())
transferInProgress = *it;
if ( force && !transfer )
@@ -143,13 +143,13 @@ void MessageProperty::setTransferInProgress( const KMMsgBase *msgBase, bool tran
setTransferInProgress( msgBase->getMsgSerNum(), transfer, force );
}
-Q_UINT32 MessageProperty::serialCache( const KMMsgBase *msgBase )
+TQ_UINT32 MessageProperty::serialCache( const KMMsgBase *msgBase )
{
TQMap<const KMMsgBase*, long >::const_iterator it = sSerialCache.find( msgBase );
return it == sSerialCache.constEnd() ? 0 : *it;
}
-void MessageProperty::setSerialCache( const KMMsgBase *msgBase, Q_UINT32 serNum )
+void MessageProperty::setSerialCache( const KMMsgBase *msgBase, TQ_UINT32 serNum )
{
if (serNum)
sSerialCache.insert( msgBase, serNum );
@@ -159,7 +159,7 @@ void MessageProperty::setSerialCache( const KMMsgBase *msgBase, Q_UINT32 serNum
void MessageProperty::forget( const KMMsgBase *msgBase )
{
- Q_UINT32 serNum = serialCache( msgBase );
+ TQ_UINT32 serNum = serialCache( msgBase );
if (serNum) {
Q_ASSERT( !transferInProgress( serNum ) );
sTransfers.remove( serNum );