summaryrefslogtreecommitdiffstats
path: root/korn/kio_count.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /korn/kio_count.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korn/kio_count.cpp')
-rw-r--r--korn/kio_count.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/korn/kio_count.cpp b/korn/kio_count.cpp
index e82827bb4..d97fa1e92 100644
--- a/korn/kio_count.cpp
+++ b/korn/kio_count.cpp
@@ -30,12 +30,12 @@
#include <kio/slave.h>
#include <kio/global.h>
#include <kurl.h>
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
-#include <qstring.h>
+#include <tqstring.h>
-KIO_Count::KIO_Count( QObject * parent, const char * name )
- : QObject ( parent, name ),
+KIO_Count::KIO_Count( TQObject * parent, const char * name )
+ : TQObject ( parent, name ),
_kurl( 0 ),
_metadata( 0 ),
_protocol( 0 ),
@@ -95,9 +95,9 @@ void KIO_Count::count( KKioDrop *drop )
return;
}
- connect( _slave, SIGNAL( error( int, const QString& ) ), _kio, SLOT( slotConnectionError( int, const QString& ) ) );
- connect( _slave, SIGNAL( warning( const QString& ) ), _kio, SLOT( slotConnectionWarning( const QString& ) ) );
- connect( _slave, SIGNAL( infoMessage( const QString& ) ), _kio, SLOT( slotConnectionInfoMessage( const QString& ) ) );
+ connect( _slave, TQT_SIGNAL( error( int, const TQString& ) ), _kio, TQT_SLOT( slotConnectionError( int, const TQString& ) ) );
+ connect( _slave, TQT_SIGNAL( warning( const TQString& ) ), _kio, TQT_SLOT( slotConnectionWarning( const TQString& ) ) );
+ connect( _slave, TQT_SIGNAL( infoMessage( const TQString& ) ), _kio, TQT_SLOT( slotConnectionInfoMessage( const TQString& ) ) );
/*
* _protocol->recheckConnectKURL could have change kurl and metadata in order to have the right
@@ -113,7 +113,7 @@ void KIO_Count::count( KKioDrop *drop )
}
/* Blocking this function: no new counts can be started from now */
- _new_mailurls = new QValueList< KKioDrop::FileInfo >;
+ _new_mailurls = new TQValueList< KKioDrop::FileInfo >;
_protocol->recheckKURL( kurl, metadata );
@@ -125,9 +125,9 @@ void KIO_Count::count( KKioDrop *drop )
_job = KIO::listDir( kurl, false );
_job->addMetaData( metadata );
- connect( _job, SIGNAL( result( KIO::Job* ) ), this, SLOT( result( KIO::Job* ) ) );
- connect( _job, SIGNAL( entries( KIO::Job*, const KIO::UDSEntryList& ) ),
- this, SLOT( entries( KIO::Job*, const KIO::UDSEntryList& ) ) );
+ connect( _job, TQT_SIGNAL( result( KIO::Job* ) ), this, TQT_SLOT( result( KIO::Job* ) ) );
+ connect( _job, TQT_SIGNAL( entries( KIO::Job*, const KIO::UDSEntryList& ) ),
+ this, TQT_SLOT( entries( KIO::Job*, const KIO::UDSEntryList& ) ) );
if( _protocol->connectionBased() )
KIO::Scheduler::assignJobToSlave( _slave, _job );
@@ -140,9 +140,9 @@ void KIO_Count::stopActiveCount()
if( !_new_mailurls )
return;
- disconnect( _job, SIGNAL( result( KIO::Job* ) ), this, SLOT( result( KIO::Job* ) ) );
- disconnect( _job, SIGNAL( entries( KIO::Job*, const KIO::UDSEntryList& ) ),
- this, SLOT( entries( KIO::Job*, const KIO::UDSEntryList& ) ) );
+ disconnect( _job, TQT_SIGNAL( result( KIO::Job* ) ), this, TQT_SLOT( result( KIO::Job* ) ) );
+ disconnect( _job, TQT_SIGNAL( entries( KIO::Job*, const KIO::UDSEntryList& ) ),
+ this, TQT_SLOT( entries( KIO::Job*, const KIO::UDSEntryList& ) ) );
KIO::Scheduler::cancelJob( _job );
@@ -160,7 +160,7 @@ void KIO_Count::stopActiveCount()
delete _new_mailurls; _new_mailurls = 0;
}
-void KIO_Count::showPassive( const QString& id )
+void KIO_Count::showPassive( const TQString& id )
{
KURL kurl = *_kio->_kurl;
KIO::MetaData metadata = *_kio->_metadata;
@@ -175,8 +175,8 @@ void KIO_Count::showPassive( const QString& id )
_subjects_pending++;
- connect( subject, SIGNAL( readSubject( KornMailSubject* ) ), this, SLOT( addtoPassivePopup( KornMailSubject* ) ) );
- connect( subject, SIGNAL( finished( KIO_Single_Subject* ) ), this, SLOT( deleteSingleSubject( KIO_Single_Subject* ) ) );
+ connect( subject, TQT_SIGNAL( readSubject( KornMailSubject* ) ), this, TQT_SLOT( addtoPassivePopup( KornMailSubject* ) ) );
+ connect( subject, TQT_SIGNAL( finished( KIO_Single_Subject* ) ), this, TQT_SLOT( deleteSingleSubject( KIO_Single_Subject* ) ) );
}
void KIO_Count::disconnectSlave()
@@ -213,9 +213,9 @@ void KIO_Count::result( KIO::Job* job )
_kio->emitValidChanged();
}
- disconnect( job, SIGNAL( result( KIO::Job* ) ), this, SLOT( result( KIO::Job* ) ) );
- disconnect( job, SIGNAL( entries( KIO::Job*, const KIO::UDSEntryList& ) ),
- this, SLOT( entries( KIO::Job*, const KIO::UDSEntryList& ) ) );
+ disconnect( job, TQT_SIGNAL( result( KIO::Job* ) ), this, TQT_SLOT( result( KIO::Job* ) ) );
+ disconnect( job, TQT_SIGNAL( entries( KIO::Job*, const KIO::UDSEntryList& ) ),
+ this, TQT_SLOT( entries( KIO::Job*, const KIO::UDSEntryList& ) ) );
disconnectSlave();
@@ -242,7 +242,7 @@ void KIO_Count::result( KIO::Job* job )
//An file list is ready; now save it in _kio->_mailurls.
void KIO_Count::entries( KIO::Job* job, const KIO::UDSEntryList &list )
{
- QStringList old_list;
+ TQStringList old_list;
KIO::UDSEntryListConstIterator it1 ;
KIO::UDSEntry::ConstIterator it2 ;
KIO::MetaData metadata;
@@ -253,7 +253,7 @@ void KIO_Count::entries( KIO::Job* job, const KIO::UDSEntryList &list )
if( job != _job )
kdError() << i18n( "Got unknown job; something must be wrong..." ) << endl;
- for( QValueListConstIterator<KKioDrop::FileInfo> it = _kio->_mailurls->begin(); it != _kio->_mailurls->end(); ++it )
+ for( TQValueListConstIterator<KKioDrop::FileInfo> it = _kio->_mailurls->begin(); it != _kio->_mailurls->end(); ++it )
old_list.append( (*it).name );
for ( it1 = list.begin() ; it1 != list.end() ; it1++ )
@@ -264,7 +264,7 @@ void KIO_Count::entries( KIO::Job* job, const KIO::UDSEntryList &list )
*/
isFile=false;
KKioDrop::FileInfo fileinfo;
- fileinfo.name = QString::null;
+ fileinfo.name = TQString::null;
fileinfo.size = 0;
for ( it2 = (*it1).begin() ; it2 != (*it1).end() ; it2++ )
@@ -314,7 +314,7 @@ void KIO_Count::addtoPassivePopup( KornMailSubject* subject )
_total_new_messages++;
if( _subjects_pending == 0 )
{
- _kio->emitShowPassivePopup( dynamic_cast< QPtrList<KornMailSubject>* >( _popup_subjects ), _total_new_messages );
+ _kio->emitShowPassivePopup( dynamic_cast< TQPtrList<KornMailSubject>* >( _popup_subjects ), _total_new_messages );
delete _popup_subjects; _popup_subjects = 0;
_total_new_messages = 0;