From 87d29563e3ccdeb7fea0197e262e667ef323ff9c Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 7 Jul 2024 14:56:09 +0900 Subject: Rename utility class nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/networkprotocol-example.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'doc/html/networkprotocol-example.html') diff --git a/doc/html/networkprotocol-example.html b/doc/html/networkprotocol-example.html index b511608dd..e47d8020d 100644 --- a/doc/html/networkprotocol-example.html +++ b/doc/html/networkprotocol-example.html @@ -108,7 +108,7 @@ protected slots: #include <stdlib.h> #include <ntqurloperator.h> #include <tqstringlist.h> -#include <ntqregexp.h> +#include <tqregexp.h> Nntp::Nntp() : TQNetworkProtocol(), connectionReady( FALSE ), @@ -251,16 +251,16 @@ void Nntp::readyRead() } // read the new data from the socket - TQCString s; - s.resize( commandSocket->bytesAvailable() + 1 ); - commandSocket->readBlock( s.data(), commandSocket->bytesAvailable() ); + TQCString s; + s.resize( commandSocket->bytesAvailable() + 1 ); + commandSocket->readBlock( s.data(), commandSocket->bytesAvailable() ); if ( !url() ) return; // of the code of the server response was 200, we know that the // server is ready to get commands from us now - if ( s.left( 3 ) == "200" ) + if ( s.left( 3 ) == "200" ) connectionReady = TRUE; } @@ -285,7 +285,7 @@ void Nntp::parseGroups() // if the code of the server response is 215 or 211 // the next line will be the first group or article (depending on what we read). // So let others know that we start reading now... - if ( s.left( 3 ) == "215" || s.left( 3 ) == "211" ) { + if ( s.left( 3 ) == "215" || s.left( 3 ) == "211" ) { operationInProgress()->setState( StInProgress ); emit start( operationInProgress() ); continue; @@ -293,8 +293,8 @@ void Nntp::parseGroups() // parse the line and create a TQUrlInfo object // which describes the child (group or article) - bool tab = s.find( '\t' ) != -1; - TQString group = s.mid( 0, s.find( tab ? '\t' : ' ' ) ); + bool tab = s.find( '\t' ) != -1; + TQString group = s.mid( 0, s.find( tab ? '\t' : ' ' ) ); TQUrlInfo inf; inf.setName( group ); TQString path = url()->path(); @@ -327,8 +327,8 @@ void Nntp::parseArticle() return; } - if ( s.right( 1 ) == "\n" ) - s.remove( s.length() - 1, 1 ); + if ( s.right( 1 ) == "\n" ) + s.remove( s.length() - 1, 1 ); // emit the new data of the article which we read emit data( TQCString( s.ascii() ), operationInProgress() ); -- cgit v1.2.3