summaryrefslogtreecommitdiffstats
path: root/korn/kio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korn/kio.cpp')
-rw-r--r--korn/kio.cpp72
1 files changed, 36 insertions, 36 deletions
diff --git a/korn/kio.cpp b/korn/kio.cpp
index 4677c81cf..8015595c0 100644
--- a/korn/kio.cpp
+++ b/korn/kio.cpp
@@ -46,10 +46,10 @@
#include<klocale.h>
#include<kprocess.h>
-#include<qptrlist.h>
-#include<qregexp.h>
-#include<qvaluelist.h>
-#include<qvaluevector.h>
+#include<tqptrlist.h>
+#include<tqregexp.h>
+#include<tqvaluelist.h>
+#include<tqvaluevector.h>
#include<assert.h>
#include<ctype.h>
@@ -109,7 +109,7 @@ KKioDrop::KKioDrop()
//This class can delete mails.
_delete = new KIO_Delete( this, "kio_delete" );
- _mailurls = new QValueList<FileInfo>;
+ _mailurls = new TQValueList<FileInfo>;
}
KKioDrop::KKioDrop( KConfigGroup* )
@@ -147,21 +147,21 @@ KKioDrop::KKioDrop( KConfigGroup* )
//This class can delete mails.
_delete = new KIO_Delete( this, "kio_delete" );
- _mailurls = new QValueList<FileInfo>;
+ _mailurls = new TQValueList<FileInfo>;
//readConfigGroup( *config );
}
-void KKioDrop::setKioServer( const QString & proto, const QString & server, int port )
+void KKioDrop::setKioServer( const TQString & proto, const TQString & server, int port )
{
//Settings default for last vars; could not inline because KIO::MetaData-object is not defined in header.
setKioServer( proto, server, port, KIO::MetaData(), false, true );
}
-void KKioDrop::setKioServer(const QString & proto, const QString & server, int port, const KIO::MetaData metadata, bool ssl,
+void KKioDrop::setKioServer(const TQString & proto, const TQString & server, int port, const KIO::MetaData metadata, bool ssl,
bool setProtocol )
{
- QString auth;
+ TQString auth;
if( port == -1 )
port = _protocol->defaultPort( ssl );
@@ -192,8 +192,8 @@ void KKioDrop::setKioServer(const QString & proto, const QString & server, int p
_count->stopActiveCount();
}
-void KKioDrop::setUser(const QString & user, const QString & password,
- const QString & mailbox, const QString & auth )
+void KKioDrop::setUser(const TQString & user, const TQString & password,
+ const TQString & mailbox, const TQString & auth )
{
_kurl->setUser( user );
_password = password ;
@@ -213,12 +213,12 @@ void KKioDrop::setUser(const QString & user, const QString & password,
_count->stopActiveCount();
}
-QString KKioDrop::protocol() const
+TQString KKioDrop::protocol() const
{
return _protocol->configName();
}
-QString KKioDrop::server() const
+TQString KKioDrop::server() const
{
return _kurl->host();
}
@@ -227,19 +227,19 @@ int KKioDrop::port() const
return _kurl->port();
}
-QString KKioDrop::user() const
+TQString KKioDrop::user() const
{
return _kurl->user();
}
-QString KKioDrop::password() const
+TQString KKioDrop::password() const
{
return _password ;
}
-QString KKioDrop::mailbox() const
+TQString KKioDrop::mailbox() const
{
return _kurl->path();
}
-QString KKioDrop::auth() const
+TQString KKioDrop::auth() const
{
return ( _metadata->contains("auth")?(*_metadata)["auth"]:"" );
}
@@ -287,16 +287,16 @@ bool KKioDrop::canReadSubjects( )
return (_protocol!=0?_protocol->canReadSubjects():false);
}
-QValueVector<KornMailSubject> * KKioDrop::doReadSubjects(bool * )
+TQValueVector<KornMailSubject> * KKioDrop::doReadSubjects(bool * )
{
_subjects->doReadSubjects( this );
/*
- * A empty QValueVector is made here.
+ * A empty TQValueVector is made here.
* After that, the size is expanded to the expected number of subjects.
* This way, reallocation of memmory is minimized, and thus more efficient.
*/
- QValueVector<KornMailSubject> *vector = new QValueVector<KornMailSubject>( );
+ TQValueVector<KornMailSubject> *vector = new TQValueVector<KornMailSubject>( );
vector->reserve( _mailurls->count() );
return vector;
}
@@ -306,7 +306,7 @@ bool KKioDrop::canReadMail( )
return (_protocol!=0?_protocol->canReadMail():false);
}
-bool KKioDrop::deleteMails(QPtrList<const KornMailId> * ids, bool * /*stop*/)
+bool KKioDrop::deleteMails(TQPtrList<const KornMailId> * ids, bool * /*stop*/)
{
_delete->deleteMails( ids, this );
return _delete->valid();
@@ -317,7 +317,7 @@ bool KKioDrop::canDeleteMails ()
return (_protocol!=0?_protocol->canDeleteMail():false);
}
-QString KKioDrop::readMail(const KornMailId * item, bool * )
+TQString KKioDrop::readMail(const KornMailId * item, bool * )
{
_read->readMail( item, this );
@@ -333,9 +333,9 @@ KMailDrop* KKioDrop::clone() const
return clone;
}
-bool KKioDrop::readConfigGroup( const QMap< QString, QString > &map, const Protocol* protocol )
+bool KKioDrop::readConfigGroup( const TQMap< TQString, TQString > &map, const Protocol* protocol )
{
- QString val, val2;
+ TQString val, val2;
if( !map.contains( "server" ) || !map.contains( "port" ) || !map.contains( "ssl" ) || !map.contains( "username" ) ||
!map.contains( "mailbox" ) || !map.contains( "password" ) || !map.contains( "metadata" ) || !map.contains( "name" ) )
@@ -358,8 +358,8 @@ bool KKioDrop::readConfigGroup( const QMap< QString, QString > &map, const Proto
_kurl->setPass( *map.find( "password" ) );
- QStringList list = QStringList::split( ',', *map.find( "metadata" ) );
- QStringList::Iterator it;
+ TQStringList list = TQStringList::split( ',', *map.find( "metadata" ) );
+ TQStringList::Iterator it;
for( it = list.begin(); it != list.end(); ++it )
{
int split = (*it).find( "=" );
@@ -376,7 +376,7 @@ bool KKioDrop::readConfigGroup( const QMap< QString, QString > &map, const Proto
bool KKioDrop::writeConfigGroup( KConfigBase& cfg ) const
{
KPollableDrop::writeConfigGroup( cfg );
- /*QString p;
+ /*TQString p;
if( _kurl->hasPass() ) {
p = _kurl->pass();
@@ -429,19 +429,19 @@ void KKioDrop::deleteMailsCanceled()
}
//Private slots for displaying connection errors
-void KKioDrop::slotConnectionError( int number, const QString& arg )
+void KKioDrop::slotConnectionError( int number, const TQString& arg )
{
kdError() << KIO::buildErrorString( number, arg ) << endl;
// if( passivePopup() )
emitShowPassivePopup( KIO::buildErrorString( number, arg ) );
}
-void KKioDrop::slotConnectionWarning( const QString& msg )
+void KKioDrop::slotConnectionWarning( const TQString& msg )
{
kdWarning() << msg << endl;
}
-void KKioDrop::slotConnectionInfoMessage( const QString& msg )
+void KKioDrop::slotConnectionInfoMessage( const TQString& msg )
{
kdDebug() << msg << endl; //Display only in debug modes
}
@@ -466,10 +466,10 @@ bool KKioDrop::startProcess()
// only reading stdin yet
- connect( _process,SIGNAL(receivedStdout( KProcess *, char *, int)),
- this, SLOT(receivedStdout( KProcess *,char *,int)) );
- connect( _process, SIGNAL(processExited(KProcess*)),
- this, SLOT(processExit(KProcess*)) );
+ connect( _process,TQT_SIGNAL(receivedStdout( KProcess *, char *, int)),
+ this, TQT_SLOT(receivedStdout( KProcess *,char *,int)) );
+ connect( _process, TQT_SIGNAL(processExited(KProcess*)),
+ this, TQT_SLOT(processExit(KProcess*)) );
*_process << _kurl->path();
_process->start( KProcess::NotifyOnExit, KProcess::Stdout );
@@ -529,8 +529,8 @@ void KKioDrop::receivedStdout( KProcess *proc, char * buffer, int /*len*/ )
delete [] buf;*/
//Alternatieve code
- QString buf = buffer;
- QRegExp regexp( "^(.*\\D+|\\D*)(\\d+)\\D*$" );
+ TQString buf = buffer;
+ TQRegExp regexp( "^(.*\\D+|\\D*)(\\d+)\\D*$" );
if( regexp.search( buf ) == 0 )
{ //Number found