diff options
Diffstat (limited to 'korn/kio.cpp')
-rw-r--r-- | korn/kio.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/korn/kio.cpp b/korn/kio.cpp index 54d0e773d..0977eb603 100644 --- a/korn/kio.cpp +++ b/korn/kio.cpp @@ -180,11 +180,11 @@ void KKioDrop::setKioServer(const TQString & proto, const TQString & server, int _ssl = ssl; //Checking for authentication-settings. - //if( _metadata->tqcontains("auth") ) + //if( _metadata->contains("auth") ) //{ // auth = (*_metadata)["auth"]; // *_metadata = metadata; - // if( ! _metadata->tqcontains("auth") ) + // if( ! _metadata->contains("auth") ) // (*_metadata)["auth"] = auth; //} else *_metadata = metadata; @@ -201,7 +201,7 @@ void KKioDrop::setUser(const TQString & user, const TQString & password, _kurl->setPath( mailbox ); if( ! auth.isEmpty() && auth != "Plain" ) (*_metadata)["auth"] = auth; - else if( _metadata->tqcontains( "auth" ) ) + else if( _metadata->contains( "auth" ) ) _metadata->erase( "auth" ); _valid = _kurl->isValid(); @@ -241,7 +241,7 @@ TQString KKioDrop::mailbox() const } TQString KKioDrop::auth() const { - return ( _metadata->tqcontains("auth")?(*_metadata)["auth"]:"" ); + return ( _metadata->contains("auth")?(*_metadata)["auth"]:"" ); } void KKioDrop::recheck() @@ -337,32 +337,32 @@ bool KKioDrop::readConfigGroup( const TQMap< TQString, TQString > &map, const Pr { TQString val, val2; - if( !map.tqcontains( "server" ) || !map.tqcontains( "port" ) || !map.tqcontains( "ssl" ) || !map.tqcontains( "username" ) || - !map.tqcontains( "mailbox" ) || !map.tqcontains( "password" ) || !map.tqcontains( "metadata" ) || !map.tqcontains( "name" ) ) + 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" ) ) { kdWarning() << "Bug: map niet compleet" << endl; return false; } - this->setName( (*map.tqfind( "name" )).utf8() ); + this->setName( (*map.find( "name" )).utf8() ); _protocol = protocol->getKIOProtocol(); if( !_protocol ) _protocol = Protocols::firstProtocol()->getKIOProtocol(); - val = *map.tqfind( "server" ); - setKioServer( val2, val, (*map.tqfind( "port" )).toInt(), KIO::MetaData(), *map.tqfind( "ssl" ) == "true", false ); + val = *map.find( "server" ); + setKioServer( val2, val, (*map.find( "port" )).toInt(), KIO::MetaData(), *map.find( "ssl" ) == "true", false ); - _kurl->setUser( *map.tqfind( "username" ) ); - _kurl->setPath( *map.tqfind( "mailbox" ) ); + _kurl->setUser( *map.find( "username" ) ); + _kurl->setPath( *map.find( "mailbox" ) ); - _kurl->setPass( *map.tqfind( "password" ) ); + _kurl->setPass( *map.find( "password" ) ); - TQStringList list = TQStringList::split( ',', *map.tqfind( "metadata" ) ); + TQStringList list = TQStringList::split( ',', *map.find( "metadata" ) ); TQStringList::Iterator it; for( it = list.begin(); it != list.end(); ++it ) { - int split = (*it).tqfind( "=" ); + int split = (*it).find( "=" ); if( split > 0 ) _metadata->insert( (*it).left( split ), (*it).right( (*it).length() - split - 1 ) ); } |