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/pop3_proto.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/pop3_proto.cpp')
-rw-r--r-- | korn/pop3_proto.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/korn/pop3_proto.cpp b/korn/pop3_proto.cpp index c42076426..c4ecd6b16 100644 --- a/korn/pop3_proto.cpp +++ b/korn/pop3_proto.cpp @@ -64,34 +64,34 @@ void Pop3_Protocol::configFields( TQPtrVector< TQWidget >* vector, const TQObjec void Pop3_Protocol::readEntries( TQMap< TQString, TQString >* map, TQMap< TQString, TQString > *metadata ) const { - if( map->tqcontains( "ssl" ) && *map->tqfind( "ssl" ) == "true" ) + if( map->contains( "ssl" ) && *map->find( "ssl" ) == "true" ) map->insert( "encryption", "ssl" ); - if( metadata->tqcontains( "tls" ) ) - map->insert( "encryption", TQString( "tls=%1" ).tqarg( *metadata->tqfind( "tls" ) ) ); - if( metadata->tqcontains( "auth" ) ) + if( metadata->contains( "tls" ) ) + map->insert( "encryption", TQString( "tls=%1" ).tqarg( *metadata->find( "tls" ) ) ); + if( metadata->contains( "auth" ) ) map->insert( "auth", TQString( "auth=APOP" ) ); } void Pop3_Protocol::writeEntries( TQMap< TQString, TQString >* map ) const { TQString metadata; - if( map->tqcontains( "encryption" ) ) + if( map->contains( "encryption" ) ) { - if( *map->tqfind( "encryption" ) == "ssl" ) + if( *map->find( "encryption" ) == "ssl" ) map->insert( "ssl", "true" ); else { map->insert( "ssl", "false" ); - metadata += *map->tqfind( "encryption" ); + metadata += *map->find( "encryption" ); } map->erase( "encryption" ); } - if( map->tqcontains( "auth" ) ) + if( map->contains( "auth" ) ) { - if( !metadata.isEmpty() && ! (*map->tqfind( "auth" )).isEmpty() ) + if( !metadata.isEmpty() && ! (*map->find( "auth" )).isEmpty() ) metadata += ","; - metadata += *map->tqfind( "auth" ); + metadata += *map->find( "auth" ); map->erase( "auth" ); } |