diff options
Diffstat (limited to 'doc/html/mail-example.html')
-rw-r--r-- | doc/html/mail-example.html | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/html/mail-example.html b/doc/html/mail-example.html index edee5f5e9..312d72e34 100644 --- a/doc/html/mail-example.html +++ b/doc/html/mail-example.html @@ -51,14 +51,14 @@ SMTP protocol. #ifndef SMTP_H #define SMTP_H -#include <<a href="qobject-h.html">ntqobject.h</a>> +#include <<a href="tqobject-h.html">tqobject.h</a>> #include <<a href="qstring-h.html">ntqstring.h</a>> class TQSocket; class TQTextStream; class TQDns; -class Smtp : public <a href="ntqobject.html">TQObject</a> +class Smtp : public <a href="tqobject.html">TQObject</a> { <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> @@ -127,13 +127,13 @@ private: const <a href="ntqstring.html">TQString</a> &body ) { socket = new <a href="ntqsocket.html">TQSocket</a>( this ); -<a name="x714"></a> <a href="ntqobject.html#connect">connect</a> ( socket, TQ_SIGNAL( <a href="ntqsocket.html#readyRead">readyRead</a>() ), +<a name="x714"></a> <a href="tqobject.html#connect">connect</a> ( socket, TQ_SIGNAL( <a href="ntqsocket.html#readyRead">readyRead</a>() ), this, TQ_SLOT( readyRead() ) ); -<a name="x711"></a> <a href="ntqobject.html#connect">connect</a> ( socket, TQ_SIGNAL( <a href="ntqsocket.html#connected">connected</a>() ), +<a name="x711"></a> <a href="tqobject.html#connect">connect</a> ( socket, TQ_SIGNAL( <a href="ntqsocket.html#connected">connected</a>() ), this, TQ_SLOT( connected() ) ); <a name="x717"></a><a name="x715"></a> mxLookup = new <a href="ntqdns.html">TQDns</a>( to.<a href="ntqstring.html#mid">mid</a>( to.<a href="ntqstring.html#find">find</a>( '@' )+1 ), TQDns::Mx ); -<a name="x707"></a> <a href="ntqobject.html#connect">connect</a>( mxLookup, TQ_SIGNAL(<a href="ntqdns.html#resultsReady">resultsReady</a>()), +<a name="x707"></a> <a href="tqobject.html#connect">connect</a>( mxLookup, TQ_SIGNAL(<a href="ntqdns.html#resultsReady">resultsReady</a>()), this, TQ_SLOT(dnsLookupHelper()) ); <a name="x716"></a> message = TQString::<a href="ntqstring.html#fromLatin1">fromLatin1</a>( "From: " ) + from + @@ -164,11 +164,11 @@ void <a name="f298"></a>Smtp::dnsLookupHelper() <a name="x706"></a> <a href="ntqvaluelist.html">TQValueList</a><TQDns::MailServer> s = mxLookup-><a href="ntqdns.html#mailServers">mailServers</a>(); <a name="x720"></a> if ( s.<a href="ntqvaluelist.html#isEmpty">isEmpty</a>() ) { <a name="x705"></a> if ( !mxLookup-><a href="ntqdns.html#isWorking">isWorking</a>() ) - emit status( <a href="ntqobject.html#tr">tr</a>( "Error in MX record lookup" ) ); + emit status( <a href="tqobject.html#tr">tr</a>( "Error in MX record lookup" ) ); return; } -<a name="x719"></a> emit status( <a href="ntqobject.html#tr">tr</a>( "Connecting to %1" ).arg( s.<a href="ntqvaluelist.html#first">first</a>().name ) ); +<a name="x719"></a> emit status( <a href="tqobject.html#tr">tr</a>( "Connecting to %1" ).arg( s.<a href="ntqvaluelist.html#first">first</a>().name ) ); <a name="x710"></a> socket-><a href="ntqsocket.html#connectToHost">connectToHost</a>( s.<a href="ntqvaluelist.html#first">first</a>().name, 25 ); t = new <a href="ntqtextstream.html">TQTextStream</a>( socket ); @@ -177,7 +177,7 @@ void <a name="f298"></a>Smtp::dnsLookupHelper() void <a name="f299"></a>Smtp::connected() { -<a name="x712"></a> emit status( <a href="ntqobject.html#tr">tr</a>( "Connected to %1" ).arg( socket-><a href="ntqsocket.html#peerName">peerName</a>() ) ); +<a name="x712"></a> emit status( <a href="tqobject.html#tr">tr</a>( "Connected to %1" ).arg( socket-><a href="ntqsocket.html#peerName">peerName</a>() ) ); } void <a name="f300"></a>Smtp::readyRead() @@ -214,15 +214,15 @@ void <a name="f300"></a>Smtp::readyRead() *t << "QUIT\r\n"; // here, we just close. state = Close; - emit status( <a href="ntqobject.html#tr">tr</a>( "Message sent" ) ); + emit status( <a href="tqobject.html#tr">tr</a>( "Message sent" ) ); } else if ( state == Close ) { - <a href="ntqobject.html#deleteLater">deleteLater</a>(); + <a href="tqobject.html#deleteLater">deleteLater</a>(); return; } else { // something broke. <a name="x708"></a><a name="x704"></a> TQMessageBox::<a href="ntqmessagebox.html#warning">warning</a>( tqApp-><a href="ntqapplication.html#activeWindow">activeWindow</a>(), - <a href="ntqobject.html#tr">tr</a>( "TQt Mail Example" ), - <a href="ntqobject.html#tr">tr</a>( "Unexpected reply from SMTP server:\n\n" ) + + <a href="tqobject.html#tr">tr</a>( "TQt Mail Example" ), + <a href="tqobject.html#tr">tr</a>( "Unexpected reply from SMTP server:\n\n" ) + response ); state = Close; } |