From e6077c30d14e9d662e8843c554db86c0d366d0b6 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 6 Jun 2024 13:44:12 +0900 Subject: Rename str nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/mail-example.html | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'doc/html/mail-example.html') diff --git a/doc/html/mail-example.html b/doc/html/mail-example.html index 58677ff19..acd2640e5 100644 --- a/doc/html/mail-example.html +++ b/doc/html/mail-example.html @@ -52,7 +52,7 @@ SMTP protocol. #define SMTP_H #include <tqobject.h> -#include <ntqstring.h> +#include <tqstring.h> class TQSocket; class TQTextStream; @@ -63,12 +63,12 @@ class Smtp : public TQObject TQ_OBJECT public: - Smtp( const TQString &from, const TQString &to, - const TQString &subject, const TQString &body ); + Smtp( const TQString &from, const TQString &to, + const TQString &subject, const TQString &body ); ~Smtp(); signals: - void status( const TQString & ); + void status( const TQString & ); private slots: void dnsLookupHelper(); @@ -86,13 +86,13 @@ private: Close }; - TQString message; - TQString from; - TQString rcpt; + TQString message; + TQString from; + TQString rcpt; TQSocket *socket; TQTextStream * t; int state; - TQString response; + TQString response; TQDns * mxLookup; }; @@ -122,9 +122,9 @@ private: #include <ntqregexp.h> -Smtp::Smtp( const TQString &from, const TQString &to, - const TQString &subject, - const TQString &body ) +Smtp::Smtp( const TQString &from, const TQString &to, + const TQString &subject, + const TQString &body ) { socket = new TQSocket( this ); connect ( socket, TQ_SIGNAL( readyRead() ), @@ -132,18 +132,18 @@ private: connect ( socket, TQ_SIGNAL( connected() ), this, TQ_SLOT( connected() ) ); - mxLookup = new TQDns( to.mid( to.find( '@' )+1 ), TQDns::Mx ); + mxLookup = new TQDns( to.mid( to.find( '@' )+1 ), TQDns::Mx ); connect( mxLookup, TQ_SIGNAL(resultsReady()), this, TQ_SLOT(dnsLookupHelper()) ); - message = TQString::fromLatin1( "From: " ) + from + - TQString::fromLatin1( "\nTo: " ) + to + - TQString::fromLatin1( "\nSubject: " ) + subject + - TQString::fromLatin1( "\n\n" ) + body + "\n"; - message.replace( TQString::fromLatin1( "\n" ), - TQString::fromLatin1( "\r\n" ) ); - message.replace( TQString::fromLatin1( "\r\n.\r\n" ), - TQString::fromLatin1( "\r\n..\r\n" ) ); + message = TQString::fromLatin1( "From: " ) + from + + TQString::fromLatin1( "\nTo: " ) + to + + TQString::fromLatin1( "\nSubject: " ) + subject + + TQString::fromLatin1( "\n\n" ) + body + "\n"; + message.replace( TQString::fromLatin1( "\n" ), + TQString::fromLatin1( "\r\n" ) ); + message.replace( TQString::fromLatin1( "\r\n.\r\n" ), + TQString::fromLatin1( "\r\n..\r\n" ) ); this->from = from; rcpt = to; @@ -186,12 +186,12 @@ void Smtp::readyRead() if ( !socket->canReadLine() ) return; - TQString responseLine; + TQString responseLine; do { responseLine = socket->readLine(); response += responseLine; } while( socket->canReadLine() && responseLine[3] != ' ' ); - responseLine.truncate( 3 ); + responseLine.truncate( 3 ); if ( state == Init && responseLine[0] == '2' ) { // banner was okay, let's go on -- cgit v1.2.3