diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /korn/imap_proto.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korn/imap_proto.cpp')
-rw-r--r-- | korn/imap_proto.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/korn/imap_proto.cpp b/korn/imap_proto.cpp index 735f5de6d..78a42b685 100644 --- a/korn/imap_proto.cpp +++ b/korn/imap_proto.cpp @@ -65,12 +65,12 @@ 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->find( "ssl" ) == "true" ) + if( map->tqcontains( "ssl" ) && *map->tqfind( "ssl" ) == "true" ) map->insert( "encryption", "ssl" ); if( metadata->tqcontains( "tls" ) ) - map->insert( "encryption", TQString( "tls=%1" ).arg( *metadata->find( "tls" ) ) ); + map->insert( "encryption", TQString( "tls=%1" ).arg( *metadata->tqfind( "tls" ) ) ); if( metadata->tqcontains( "auth" ) ) - map->insert( "auth", TQString( "auth=%1" ).arg( *metadata->find( "auth" ) ) ); + map->insert( "auth", TQString( "auth=%1" ).arg( *metadata->tqfind( "auth" ) ) ); } void Imap_Protocol::writeEntries( TQMap< TQString, TQString >* map ) const @@ -78,12 +78,12 @@ void Imap_Protocol::writeEntries( TQMap< TQString, TQString >* map ) const TQString metadata; if( map->tqcontains( "encryption" ) ) { - if( *map->find( "encryption" ) == "ssl" ) + if( *map->tqfind( "encryption" ) == "ssl" ) map->insert( "ssl", "true" ); else { map->insert( "ssl", "false" ); - metadata += *map->find( "encryption" ); + metadata += *map->tqfind( "encryption" ); } map->erase( "encryption" ); } @@ -92,7 +92,7 @@ void Imap_Protocol::writeEntries( TQMap< TQString, TQString >* map ) const { if( !metadata.isEmpty() ) metadata += ","; - metadata += *map->find( "auth" ); + metadata += *map->tqfind( "auth" ); map->erase( "auth" ); } |