diff options
Diffstat (limited to 'doc/html/mail-example.html')
-rw-r--r-- | doc/html/mail-example.html | 44 |
1 files changed, 22 insertions, 22 deletions
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 <<a href="tqobject-h.html">tqobject.h</a>> -#include <<a href="qstring-h.html">ntqstring.h</a>> +#include <<a href="tqstring-h.html">tqstring.h</a>> class TQSocket; class TQTextStream; @@ -63,12 +63,12 @@ class Smtp : public <a href="tqobject.html">TQObject</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> public: - Smtp( const <a href="ntqstring.html">TQString</a> &from, const <a href="ntqstring.html">TQString</a> &to, - const <a href="ntqstring.html">TQString</a> &subject, const <a href="ntqstring.html">TQString</a> &body ); + Smtp( const <a href="tqstring.html">TQString</a> &from, const <a href="tqstring.html">TQString</a> &to, + const <a href="tqstring.html">TQString</a> &subject, const <a href="tqstring.html">TQString</a> &body ); ~Smtp(); signals: - void status( const <a href="ntqstring.html">TQString</a> & ); + void status( const <a href="tqstring.html">TQString</a> & ); private slots: void dnsLookupHelper(); @@ -86,13 +86,13 @@ private: Close }; - <a href="ntqstring.html">TQString</a> message; - <a href="ntqstring.html">TQString</a> from; - <a href="ntqstring.html">TQString</a> rcpt; + <a href="tqstring.html">TQString</a> message; + <a href="tqstring.html">TQString</a> from; + <a href="tqstring.html">TQString</a> rcpt; <a href="ntqsocket.html">TQSocket</a> *socket; <a href="ntqtextstream.html">TQTextStream</a> * t; int state; - <a href="ntqstring.html">TQString</a> response; + <a href="tqstring.html">TQString</a> response; <a href="ntqdns.html">TQDns</a> * mxLookup; }; @@ -122,9 +122,9 @@ private: #include <<a href="qregexp-h.html">ntqregexp.h</a>> -<a name="f297"></a>Smtp::Smtp( const <a href="ntqstring.html">TQString</a> &from, const <a href="ntqstring.html">TQString</a> &to, - const <a href="ntqstring.html">TQString</a> &subject, - const <a href="ntqstring.html">TQString</a> &body ) +<a name="f297"></a>Smtp::Smtp( const <a href="tqstring.html">TQString</a> &from, const <a href="tqstring.html">TQString</a> &to, + const <a href="tqstring.html">TQString</a> &subject, + const <a href="tqstring.html">TQString</a> &body ) { socket = new <a href="ntqsocket.html">TQSocket</a>( this ); <a name="x714"></a> <a href="tqobject.html#connect">connect</a> ( socket, TQ_SIGNAL( <a href="ntqsocket.html#readyRead">readyRead</a>() ), @@ -132,18 +132,18 @@ private: <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="x717"></a><a name="x715"></a> mxLookup = new <a href="ntqdns.html">TQDns</a>( to.<a href="tqstring.html#mid">mid</a>( to.<a href="tqstring.html#find">find</a>( '@' )+1 ), TQDns::Mx ); <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 + - TQString::<a href="ntqstring.html#fromLatin1">fromLatin1</a>( "\nTo: " ) + to + - TQString::<a href="ntqstring.html#fromLatin1">fromLatin1</a>( "\nSubject: " ) + subject + - TQString::<a href="ntqstring.html#fromLatin1">fromLatin1</a>( "\n\n" ) + body + "\n"; - message.replace( TQString::<a href="ntqstring.html#fromLatin1">fromLatin1</a>( "\n" ), - TQString::<a href="ntqstring.html#fromLatin1">fromLatin1</a>( "\r\n" ) ); - message.replace( TQString::<a href="ntqstring.html#fromLatin1">fromLatin1</a>( "\r\n.\r\n" ), - TQString::<a href="ntqstring.html#fromLatin1">fromLatin1</a>( "\r\n..\r\n" ) ); +<a name="x716"></a> message = TQString::<a href="tqstring.html#fromLatin1">fromLatin1</a>( "From: " ) + from + + TQString::<a href="tqstring.html#fromLatin1">fromLatin1</a>( "\nTo: " ) + to + + TQString::<a href="tqstring.html#fromLatin1">fromLatin1</a>( "\nSubject: " ) + subject + + TQString::<a href="tqstring.html#fromLatin1">fromLatin1</a>( "\n\n" ) + body + "\n"; + message.replace( TQString::<a href="tqstring.html#fromLatin1">fromLatin1</a>( "\n" ), + TQString::<a href="tqstring.html#fromLatin1">fromLatin1</a>( "\r\n" ) ); + message.replace( TQString::<a href="tqstring.html#fromLatin1">fromLatin1</a>( "\r\n.\r\n" ), + TQString::<a href="tqstring.html#fromLatin1">fromLatin1</a>( "\r\n..\r\n" ) ); this->from = from; rcpt = to; @@ -186,12 +186,12 @@ void <a name="f300"></a>Smtp::readyRead() <a name="x709"></a> if ( !socket-><a href="ntqsocket.html#canReadLine">canReadLine</a>() ) return; - <a href="ntqstring.html">TQString</a> responseLine; + <a href="tqstring.html">TQString</a> responseLine; do { <a name="x713"></a> responseLine = socket-><a href="ntqsocket.html#readLine">readLine</a>(); response += responseLine; } while( socket-><a href="ntqsocket.html#canReadLine">canReadLine</a>() && responseLine[3] != ' ' ); -<a name="x718"></a> responseLine.<a href="ntqstring.html#truncate">truncate</a>( 3 ); +<a name="x718"></a> responseLine.<a href="tqstring.html#truncate">truncate</a>( 3 ); if ( state == Init && responseLine[0] == '2' ) { // banner was okay, let's go on |