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/smtp.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'kioslave/smtp/smtp.h') diff --git a/kioslave/smtp/smtp.h b/kioslave/smtp/smtp.h index 571375bd4..435fea8b1 100644 --- a/kioslave/smtp/smtp.h +++ b/kioslave/smtp/smtp.h @@ -33,13 +33,13 @@ #include "capabilities.h" -#include -#include +#include +#include class KURL; class QCString; template class QMemArray; -typedef QMemArray QByteArray; +typedef TQMemArray QByteArray; namespace KioSMTP { class Response; @@ -50,13 +50,13 @@ namespace KioSMTP { class SMTPProtocol : public KIO::TCPSlaveBase { friend class KioSMTP::Command; public: - SMTPProtocol(const QCString & pool, const QCString & app, bool useSSL); + SMTPProtocol(const TQCString & pool, const TQCString & app, bool useSSL); virtual ~ SMTPProtocol(); - virtual void setHost(const QString & host, int port, - const QString & user, const QString & pass); + virtual void setHost(const TQString & host, int port, + const TQString & user, const TQString & pass); - virtual void special(const QByteArray & aData); + virtual void special(const TQByteArray & aData); virtual void put(const KURL & url, int permissions, bool overwrite, bool resume); virtual void stat(const KURL & url); @@ -65,7 +65,7 @@ public: protected: - bool smtp_open(const QString& fakeHostname = QString::null); + bool smtp_open(const TQString& fakeHostname = TQString::null); /** Closes the connection. If @p nice is true (default), then QUIT is sent and it's reponse waited for. */ @@ -100,8 +100,8 @@ protected: bool authenticate(); void parseFeatures( const KioSMTP::Response & ehloResponse ); - bool sendCommandLine( const QCString & cmd ); - QCString collectPipelineCommands( KioSMTP::TransactionState * ts ); + bool sendCommandLine( const TQCString & cmd ); + TQCString collectPipelineCommands( KioSMTP::TransactionState * ts ); bool batchProcessResponses( KioSMTP::TransactionState * ts ); /** This is a pure convenience wrapper around @@ -120,7 +120,7 @@ protected: /** This is a pure convenience wrapper around @ref KioSMTP::Capabilities::createSpecialResponse */ - QString createSpecialResponse() const { + TQString createSpecialResponse() const { return mCapabilities.createSpecialResponse( usingTLS() || haveCapability( "STARTTLS" ) ); } @@ -131,14 +131,14 @@ protected: unsigned short m_iOldPort; bool m_opened; - QString m_sServer, m_sOldServer; - QString m_sUser, m_sOldUser; - QString m_sPass, m_sOldPass; - QString m_hostname; + TQString m_sServer, m_sOldServer; + TQString m_sUser, m_sOldUser; + TQString m_sPass, m_sOldPass; + TQString m_hostname; KioSMTP::Capabilities mCapabilities; - typedef QPtrQueue CommandQueue; + typedef TQPtrQueue CommandQueue; CommandQueue mPendingCommandQueue; CommandQueue mSentCommandQueue; }; -- cgit v1.2.1