diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kmail/kmservertest.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-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 'kmail/kmservertest.cpp')
-rw-r--r-- | kmail/kmservertest.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kmail/kmservertest.cpp b/kmail/kmservertest.cpp index 49fb0ad8b..c184e6dfc 100644 --- a/kmail/kmservertest.cpp +++ b/kmail/kmservertest.cpp @@ -45,14 +45,14 @@ #include <kio/global.h> //----------------------------------------------------------------------------- -KMServerTest::KMServerTest( const QString & protocol, const QString & host, int port ) - : QObject(), +KMServerTest::KMServerTest( const TQString & protocol, const TQString & host, int port ) + : TQObject(), mProtocol( protocol ), mHost( host ), mSSL( false ), mJob( 0 ), mSlave( 0 ), mConnectionErrorCount( 0 ) { KIO::Scheduler::connect( - SIGNAL(slaveError(KIO::Slave *, int, const QString &)), - this, SLOT(slotSlaveResult(KIO::Slave *, int, const QString &))); + TQT_SIGNAL(slaveError(KIO::Slave *, int, const TQString &)), + this, TQT_SLOT(slotSlaveResult(KIO::Slave *, int, const TQString &))); if ( port == 993 || port == 995 || port == 465 ) port = 0; @@ -85,29 +85,29 @@ void KMServerTest::startOffSlave( int port ) { slotSlaveResult( 0, 1 ); return; } - connect( mSlave, SIGNAL(metaData(const KIO::MetaData&)), - SLOT(slotMetaData(const KIO::MetaData&)) ); + connect( mSlave, TQT_SIGNAL(metaData(const KIO::MetaData&)), + TQT_SLOT(slotMetaData(const KIO::MetaData&)) ); - QByteArray packedArgs; - QDataStream stream( packedArgs, IO_WriteOnly ); + TQByteArray packedArgs; + TQDataStream stream( packedArgs, IO_WriteOnly ); stream << (int) 'c'; mJob = KIO::special( url, packedArgs, false ); KIO::Scheduler::assignJobToSlave( mSlave, mJob ); - connect( mJob, SIGNAL(result(KIO::Job*)), SLOT(slotResult(KIO::Job*)) ); - connect( mJob, SIGNAL(infoMessage(KIO::Job*,const QString&)), - SLOT(slotData(KIO::Job*,const QString&)) ); + connect( mJob, TQT_SIGNAL(result(KIO::Job*)), TQT_SLOT(slotResult(KIO::Job*)) ); + connect( mJob, TQT_SIGNAL(infoMessage(KIO::Job*,const TQString&)), + TQT_SLOT(slotData(KIO::Job*,const TQString&)) ); } //----------------------------------------------------------------------------- -void KMServerTest::slotData(KIO::Job *, const QString &data) +void KMServerTest::slotData(KIO::Job *, const TQString &data) { if ( mSSL ) - mListSSL = QStringList::split(' ', data); + mListSSL = TQStringList::split(' ', data); else - mListNormal = QStringList::split(' ', data); + mListNormal = TQStringList::split(' ', data); } @@ -137,7 +137,7 @@ void KMServerTest::slotResult(KIO::Job *job) //----------------------------------------------------------------------------- void KMServerTest::slotSlaveResult(KIO::Slave *aSlave, int error, - const QString &errorText) + const TQString &errorText) { if (aSlave != mSlave) return; if ( mSSL && error == 0 ) { |