summaryrefslogtreecommitdiffstats
path: root/kmail/messagecopyhelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/messagecopyhelper.cpp')
-rw-r--r--kmail/messagecopyhelper.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kmail/messagecopyhelper.cpp b/kmail/messagecopyhelper.cpp
index 2a36c53a7..e0a27fc35 100644
--- a/kmail/messagecopyhelper.cpp
+++ b/kmail/messagecopyhelper.cpp
@@ -26,18 +26,18 @@
using namespace KMail;
using namespace KPIM;
-MessageCopyHelper::MessageCopyHelper( const QValueList< Q_UINT32 > & msgs,
- KMFolder * dest, bool move, QObject * parent ) :
- QObject( parent )
+MessageCopyHelper::MessageCopyHelper( const TQValueList< Q_UINT32 > & msgs,
+ KMFolder * dest, bool move, TQObject * parent ) :
+ TQObject( parent )
{
if ( msgs.isEmpty() || !dest )
return;
KMFolder *f = 0;
int index;
- QPtrList<KMMsgBase> list;
+ TQPtrList<KMMsgBase> list;
- for ( QValueList<Q_UINT32>::ConstIterator it = msgs.constBegin(); it != msgs.constEnd(); ++it ) {
+ for ( TQValueList<Q_UINT32>::ConstIterator it = msgs.constBegin(); it != msgs.constEnd(); ++it ) {
KMMsgDict::instance()->getLocation( *it, &f, &index );
if ( !f ) // not found
continue;
@@ -62,7 +62,7 @@ MessageCopyHelper::MessageCopyHelper( const QValueList< Q_UINT32 > & msgs,
command = new KMCopyCommand( dest, list );
}
- connect( command, SIGNAL(completed(KMCommand*)), SLOT(copyCompleted(KMCommand*)) );
+ connect( command, TQT_SIGNAL(completed(KMCommand*)), TQT_SLOT(copyCompleted(KMCommand*)) );
command->start();
}
@@ -71,7 +71,7 @@ void MessageCopyHelper::copyCompleted(KMCommand * cmd)
Q_UNUSED( cmd );
// close all folders we opened
- for ( QMap<QGuardedPtr<KMFolder>, int>::ConstIterator it = mOpenFolders.constBegin();
+ for ( TQMap<TQGuardedPtr<KMFolder>, int>::ConstIterator it = mOpenFolders.constBegin();
it != mOpenFolders.constEnd(); ++it ) {
it.key()->close( "messagecopyhelper" );
}
@@ -79,17 +79,17 @@ void MessageCopyHelper::copyCompleted(KMCommand * cmd)
deleteLater();
}
-QValueList< Q_UINT32 > MessageCopyHelper::serNumListFromMailList(const KPIM::MailList & list)
+TQValueList< Q_UINT32 > MessageCopyHelper::serNumListFromMailList(const KPIM::MailList & list)
{
- QValueList<Q_UINT32> rv;
+ TQValueList<Q_UINT32> rv;
for ( MailList::ConstIterator it = list.constBegin(); it != list.constEnd(); ++it )
rv.append( (*it).serialNumber() );
return rv;
}
-QValueList< Q_UINT32 > MessageCopyHelper::serNumListFromMsgList(QPtrList< KMMsgBase > list)
+TQValueList< Q_UINT32 > MessageCopyHelper::serNumListFromMsgList(TQPtrList< KMMsgBase > list)
{
- QValueList<Q_UINT32> rv;
+ TQValueList<Q_UINT32> rv;
KMMsgBase* msg = list.first();
while( msg ) {
rv.append( msg->getMsgSerNum() );
@@ -98,11 +98,11 @@ QValueList< Q_UINT32 > MessageCopyHelper::serNumListFromMsgList(QPtrList< KMMsgB
return rv;
}
-bool MessageCopyHelper::inReadOnlyFolder(const QValueList< Q_UINT32 > & sernums)
+bool MessageCopyHelper::inReadOnlyFolder(const TQValueList< Q_UINT32 > & sernums)
{
KMFolder *f = 0;
int index;
- for ( QValueList<Q_UINT32>::ConstIterator it = sernums.begin(); it != sernums.end(); ++it ) {
+ for ( TQValueList<Q_UINT32>::ConstIterator it = sernums.begin(); it != sernums.end(); ++it ) {
KMMsgDict::instance()->getLocation( *it, &f, &index );
if ( !f ) // not found
continue;