diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kioslave/smtp/response.cc | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kioslave/smtp/response.cc')
-rw-r--r-- | kioslave/smtp/response.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kioslave/smtp/response.cc b/kioslave/smtp/response.cc index b1745865a..ec5067871 100644 --- a/kioslave/smtp/response.cc +++ b/kioslave/smtp/response.cc @@ -36,7 +36,7 @@ #include <klocale.h> #include <kio/global.h> -#include <qstring.h> +#include <tqstring.h> namespace KioSMTP { @@ -59,7 +59,7 @@ namespace KioSMTP { } bool ok = false; - unsigned int code = QCString( line, 3+1 ).toUInt( &ok ); + unsigned int code = TQCString( line, 3+1 ).toUInt( &ok ); if ( !ok || code < 100 || code > 559 ) { // not a number or number out of range mValid = false; @@ -85,22 +85,22 @@ namespace KioSMTP { return; } - mLines.push_back( len > 4 ? QCString( line+4, len-4+1 ).stripWhiteSpace() : QCString() ); + mLines.push_back( len > 4 ? TQCString( line+4, len-4+1 ).stripWhiteSpace() : TQCString() ); } // hackishly fixing QCStringList flaws... - static QCString join( char sep, const QCStringList & list ) { + static TQCString join( char sep, const QCStringList & list ) { if ( list.empty() ) - return QCString(); - QCString result = list.front(); + return TQCString(); + TQCString result = list.front(); for ( QCStringList::const_iterator it = ++list.begin() ; it != list.end() ; ++it ) result += sep + *it; return result; } - QString Response::errorMessage() const { - QString msg; + TQString Response::errorMessage() const { + TQString msg; if ( lines().count() > 1 ) msg = i18n("The server responded:\n%1") .arg( join( '\n', lines() ) ); |