diff options
Diffstat (limited to 'doc/html/httpd-example.html')
-rw-r--r-- | doc/html/httpd-example.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/html/httpd-example.html b/doc/html/httpd-example.html index 32b502475..124439989 100644 --- a/doc/html/httpd-example.html +++ b/doc/html/httpd-example.html @@ -54,10 +54,10 @@ sending the page, it closes the connection. #include <<a href="qserversocket-h.html">ntqserversocket.h</a>> #include <<a href="qapplication-h.html">ntqapplication.h</a>> #include <<a href="qmainwindow-h.html">ntqmainwindow.h</a>> -#include <<a href="qtextstream-h.html">ntqtextstream.h</a>> +#include <<a href="tqtextstream-h.html">tqtextstream.h</a>> #include <<a href="qvbox-h.html">ntqvbox.h</a>> #include <<a href="qlabel-h.html">ntqlabel.h</a>> -#include <<a href="qtextview-h.html">ntqtextview.h</a>> +#include <<a href="tqtextview-h.html">tqtextview.h</a>> #include <<a href="qpushbutton-h.html">ntqpushbutton.h</a>> // HttpDaemon is the the class that implements the simple HTTP server. @@ -102,8 +102,8 @@ private slots: <a name="x727"></a> if ( socket-><a href="ntqsocket.html#canReadLine">canReadLine</a>() ) { <a name="x733"></a><a name="x730"></a> <a href="tqstringlist.html">TQStringList</a> tokens = TQStringList::<a href="tqstringlist.html#split">split</a>( TQRegExp("[ \r\n][ \r\n]*"), socket-><a href="ntqsocket.html#readLine">readLine</a>() ); if ( tokens[0] == "GET" ) { - <a href="ntqtextstream.html">TQTextStream</a> os( socket ); -<a name="x735"></a> os.<a href="ntqtextstream.html#setEncoding">setEncoding</a>( TQTextStream::UnicodeUTF8 ); + <a href="tqtextstream.html">TQTextStream</a> os( socket ); +<a name="x735"></a> os.<a href="tqtextstream.html#setEncoding">setEncoding</a>( TQTextStream::UnicodeUTF8 ); os << "HTTP/1.0 200 Ok\r\n" "Content-Type: text/html; charset=\"utf-8\"\r\n" "\r\n" @@ -139,7 +139,7 @@ public: <a name="x726"></a> ).arg( httpd-><a href="ntqserversocket.html#port">port</a>() ); <a href="ntqlabel.html">TQLabel</a> *lb = new <a href="ntqlabel.html">TQLabel</a>( itext, this ); lb-><a href="ntqlabel.html#setAlignment">setAlignment</a>( AlignHCenter ); - infoText = new <a href="ntqtextview.html">TQTextView</a>( this ); + infoText = new <a href="tqtextview.html">TQTextView</a>( this ); <a href="ntqpushbutton.html">TQPushButton</a> *quit = new <a href="ntqpushbutton.html">TQPushButton</a>( "quit" , this ); connect( httpd, TQ_SIGNAL(newConnect()), TQ_SLOT(newConnect()) ); @@ -155,19 +155,19 @@ public: private slots: void newConnect() { -<a name="x734"></a> infoText-><a href="ntqtextedit.html#append">append</a>( "New connection" ); +<a name="x734"></a> infoText-><a href="tqtextedit.html#append">append</a>( "New connection" ); } void endConnect() { - infoText-><a href="ntqtextedit.html#append">append</a>( "Connection closed\n\n" ); + infoText-><a href="tqtextedit.html#append">append</a>( "Connection closed\n\n" ); } void wroteToClient() { - infoText-><a href="ntqtextedit.html#append">append</a>( "Wrote to client" ); + infoText-><a href="tqtextedit.html#append">append</a>( "Wrote to client" ); } private: - <a href="ntqtextview.html">TQTextView</a> *infoText; + <a href="tqtextview.html">TQTextView</a> *infoText; }; |