From c663b6440964f6ac48027143ac9e63298991f9d0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:33:34 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kioslave/smtp/test_commands.cc | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'kioslave/smtp/test_commands.cc') diff --git a/kioslave/smtp/test_commands.cc b/kioslave/smtp/test_commands.cc index a6969490f..680514b10 100644 --- a/kioslave/smtp/test_commands.cc +++ b/kioslave/smtp/test_commands.cc @@ -1,9 +1,9 @@ #include #include -#include -#include -#include +#include +#include +#include //#include //using std::cout; @@ -25,19 +25,19 @@ public: bool usesSSL; bool usesTLS; int lastErrorCode; - QString lastErrorMessage; + TQString lastErrorMessage; int lastMessageBoxCode; - QString lastMessageBoxText; - QByteArray nextData; + TQString lastMessageBoxText; + TQByteArray nextData; int nextDataReturnCode; - QStringList caps; + TQStringList caps; KIO::MetaData metadata; void clear() { startTLSReturnCode = 1; usesSSL = usesTLS = false; lastErrorCode = lastMessageBoxCode = 0; - lastErrorMessage = lastMessageBoxText = QString::null; + lastErrorMessage = lastMessageBoxText = TQString::null; nextData.resize( 0 ); nextDataReturnCode = -1; caps.clear(); @@ -56,17 +56,17 @@ public: bool usingSSL() const { return usesSSL; } bool usingTLS() const { return usesTLS; } bool haveCapability( const char * cap ) const { return caps.contains( cap ); } - void error( int id, const QString & msg ) { + void error( int id, const TQString & msg ) { lastErrorCode = id; lastErrorMessage = msg; } - void messageBox( int id, const QString & msg, const QString & ) { + void messageBox( int id, const TQString & msg, const TQString & ) { lastMessageBoxCode = id; lastMessageBoxText = msg; } void dataReq() { /* noop */ } - int readData( QByteArray & ba ) { ba = nextData; return nextDataReturnCode; } - QString metaData( const QString & key ) const { return metadata[key]; } + int readData( TQByteArray & ba ) { ba = nextData; return nextDataReturnCode; } + TQString metaData( const TQString & key ) const { return metadata[key]; } }; @@ -236,7 +236,7 @@ int main( int, char** ) { // smtp.clear(); - QStrIList mechs; + TQStrIList mechs; mechs.append( "PLAIN" ); smtp.metadata["sasl"] = "PLAIN"; AuthCommand auth( &smtp, mechs, "user", "pass" ); -- cgit v1.2.1