diff options
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" ); } |