summaryrefslogtreecommitdiffstats
path: root/korn/imap_proto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korn/imap_proto.cpp')
-rw-r--r--korn/imap_proto.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/korn/imap_proto.cpp b/korn/imap_proto.cpp
index 7d0f9873..304fed5e 100644
--- a/korn/imap_proto.cpp
+++ b/korn/imap_proto.cpp
@@ -65,34 +65,34 @@ void Imap_Protocol::configFields( TQPtrVector< TQWidget >* vector, const TQObjec
void Imap_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" ) )
- map->insert( "auth", TQString( "auth=%1" ).tqarg( *metadata->tqfind( "auth" ) ) );
+ if( metadata->contains( "tls" ) )
+ map->insert( "encryption", TQString( "tls=%1" ).tqarg( *metadata->find( "tls" ) ) );
+ if( metadata->contains( "auth" ) )
+ map->insert( "auth", TQString( "auth=%1" ).tqarg( *metadata->find( "auth" ) ) );
}
void Imap_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() )
metadata += ",";
- metadata += *map->tqfind( "auth" );
+ metadata += *map->find( "auth" );
map->erase( "auth" );
}