diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 4c6f8d69e2d1501837affb472c4eb8fec4462240 (patch) | |
tree | 766a8ad7939fcf3eec534184c36bd0e0f80489e2 /korn/kio.cpp | |
parent | 469cc56a805bd3d6940d54adbef554877c29853c (diff) | |
download | tdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.tar.gz tdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 54d0e773..0977eb60 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 ) ); } |