summaryrefslogtreecommitdiffstats
path: root/examples/network
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-27 19:25:43 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-27 19:25:43 +0900
commitfb401a891f1b426e9419c0cb16403df407138611 (patch)
tree045b51949b3140039e37d898d8b0513016a86bea /examples/network
parenta9d178f1000475ba1727ffe123a2c54585488c01 (diff)
downloadtqt3-fb401a891f1b426e9419c0cb16403df407138611.tar.gz
tqt3-fb401a891f1b426e9419c0cb16403df407138611.zip
Rename METHOD, SIGNAL, SLOT to TQ_METHOD, TQ_SIGNAL, TQ_SLOT
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'examples/network')
-rw-r--r--examples/network/archivesearch/archivedialog.ui.h12
-rw-r--r--examples/network/archivesearch/main.cpp4
-rw-r--r--examples/network/clientserver/client/client.cpp26
-rw-r--r--examples/network/clientserver/server/server.cpp24
-rw-r--r--examples/network/ftpclient/ftpmainwindow.ui.h48
-rw-r--r--examples/network/httpd/httpd.cpp12
-rw-r--r--examples/network/infoprotocol/infoclient/client.cpp16
-rw-r--r--examples/network/infoprotocol/infoserver/server.cpp8
-rw-r--r--examples/network/infoprotocol/infourlclient/client.cpp8
-rw-r--r--examples/network/infoprotocol/infourlclient/qip.cpp8
-rw-r--r--examples/network/mail/composer.cpp10
-rw-r--r--examples/network/mail/smtp.cpp12
-rw-r--r--examples/network/networkprotocol/nntp.cpp20
-rw-r--r--examples/network/networkprotocol/view.cpp8
-rw-r--r--examples/network/remotecontrol/ipcserver.cpp10
-rw-r--r--examples/network/remotecontrol/main.cpp2
-rw-r--r--examples/network/remotecontrol/remotectrlimpl.cpp6
-rw-r--r--examples/network/remotecontrol/startup.cpp12
18 files changed, 123 insertions, 123 deletions
diff --git a/examples/network/archivesearch/archivedialog.ui.h b/examples/network/archivesearch/archivedialog.ui.h
index e5b70cb10..45c4553ee 100644
--- a/examples/network/archivesearch/archivedialog.ui.h
+++ b/examples/network/archivesearch/archivedialog.ui.h
@@ -18,12 +18,12 @@
void ArchiveDialog::init()
{
- connect(&articleSearcher, SIGNAL(done(bool)), this, SLOT(searchDone(bool)));
- connect(&articleFetcher, SIGNAL(done(bool)), this, SLOT(fetchDone(bool)));
- connect(myListView, SIGNAL(selectionChanged(TQListViewItem*)), this, SLOT(fetch(TQListViewItem*)));
- connect(myLineEdit, SIGNAL(returnPressed()), this, SLOT(search()));
- connect(myListView, SIGNAL(returnPressed(TQListViewItem*)), this, SLOT(fetch(TQListViewItem*)));
- connect(myPushButton, SIGNAL(clicked()), this, SLOT(close()));
+ connect(&articleSearcher, TQ_SIGNAL(done(bool)), this, TQ_SLOT(searchDone(bool)));
+ connect(&articleFetcher, TQ_SIGNAL(done(bool)), this, TQ_SLOT(fetchDone(bool)));
+ connect(myListView, TQ_SIGNAL(selectionChanged(TQListViewItem*)), this, TQ_SLOT(fetch(TQListViewItem*)));
+ connect(myLineEdit, TQ_SIGNAL(returnPressed()), this, TQ_SLOT(search()));
+ connect(myListView, TQ_SIGNAL(returnPressed(TQListViewItem*)), this, TQ_SLOT(fetch(TQListViewItem*)));
+ connect(myPushButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(close()));
}
void ArchiveDialog::fetch( TQListViewItem *it )
diff --git a/examples/network/archivesearch/main.cpp b/examples/network/archivesearch/main.cpp
index 9db13ff18..53e7e9289 100644
--- a/examples/network/archivesearch/main.cpp
+++ b/examples/network/archivesearch/main.cpp
@@ -16,8 +16,8 @@ int main(int argc, char **argv)
ArchiveDialog ad;
ad.show();
- TQObject::connect( &a, SIGNAL(lastWindowClosed()),
- &a, SLOT(quit()) );
+ TQObject::connect( &a, TQ_SIGNAL(lastWindowClosed()),
+ &a, TQ_SLOT(quit()) );
return a.exec();
}
diff --git a/examples/network/clientserver/client/client.cpp b/examples/network/clientserver/client/client.cpp
index cda1f571a..aba0fef02 100644
--- a/examples/network/clientserver/client/client.cpp
+++ b/examples/network/clientserver/client/client.cpp
@@ -32,20 +32,20 @@ public:
TQPushButton *close = new TQPushButton( tr("Close connection") , this );
TQPushButton *quit = new TQPushButton( tr("Quit") , this );
- connect( send, SIGNAL(clicked()), SLOT(sendToServer()) );
- connect( close, SIGNAL(clicked()), SLOT(closeConnection()) );
- connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) );
+ connect( send, TQ_SIGNAL(clicked()), TQ_SLOT(sendToServer()) );
+ connect( close, TQ_SIGNAL(clicked()), TQ_SLOT(closeConnection()) );
+ connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) );
// create the socket and connect various of its signals
socket = new TQSocket( this );
- connect( socket, SIGNAL(connected()),
- SLOT(socketConnected()) );
- connect( socket, SIGNAL(connectionClosed()),
- SLOT(socketConnectionClosed()) );
- connect( socket, SIGNAL(readyRead()),
- SLOT(socketReadyRead()) );
- connect( socket, SIGNAL(error(int)),
- SLOT(socketError(int)) );
+ connect( socket, TQ_SIGNAL(connected()),
+ TQ_SLOT(socketConnected()) );
+ connect( socket, TQ_SIGNAL(connectionClosed()),
+ TQ_SLOT(socketConnectionClosed()) );
+ connect( socket, TQ_SIGNAL(readyRead()),
+ TQ_SLOT(socketReadyRead()) );
+ connect( socket, TQ_SIGNAL(error(int)),
+ TQ_SLOT(socketError(int)) );
// connect to the server
infoText->append( tr("Trying to connect to the server\n") );
@@ -62,8 +62,8 @@ private slots:
socket->close();
if ( socket->state() == TQSocket::Closing ) {
// We have a delayed close.
- connect( socket, SIGNAL(delayedCloseFinished()),
- SLOT(socketClosed()) );
+ connect( socket, TQ_SIGNAL(delayedCloseFinished()),
+ TQ_SLOT(socketClosed()) );
} else {
// The socket is closed.
socketClosed();
diff --git a/examples/network/clientserver/server/server.cpp b/examples/network/clientserver/server/server.cpp
index e2b04e4a8..3d974cb50 100644
--- a/examples/network/clientserver/server/server.cpp
+++ b/examples/network/clientserver/server/server.cpp
@@ -32,10 +32,10 @@ public:
TQSocket( parent, name )
{
line = 0;
- connect( this, SIGNAL(readyRead()),
- SLOT(readClient()) );
- connect( this, SIGNAL(connectionClosed()),
- SLOT(deleteLater()) );
+ connect( this, TQ_SIGNAL(readyRead()),
+ TQ_SLOT(readClient()) );
+ connect( this, TQ_SIGNAL(connectionClosed()),
+ TQ_SLOT(deleteLater()) );
setSocket( sock );
}
@@ -120,10 +120,10 @@ public:
infoText = new TQTextView( this );
TQPushButton *quit = new TQPushButton( tr("Quit") , this );
- connect( server, SIGNAL(newConnect(ClientSocket*)),
- SLOT(newConnect(ClientSocket*)) );
- connect( quit, SIGNAL(clicked()), tqApp,
- SLOT(quit()) );
+ connect( server, TQ_SIGNAL(newConnect(ClientSocket*)),
+ TQ_SLOT(newConnect(ClientSocket*)) );
+ connect( quit, TQ_SIGNAL(clicked()), tqApp,
+ TQ_SLOT(quit()) );
}
~ServerInfo()
@@ -134,10 +134,10 @@ private slots:
void newConnect( ClientSocket *s )
{
infoText->append( tr("New connection\n") );
- connect( s, SIGNAL(logText(const TQString&)),
- infoText, SLOT(append(const TQString&)) );
- connect( s, SIGNAL(connectionClosed()),
- SLOT(connectionClosed()) );
+ connect( s, TQ_SIGNAL(logText(const TQString&)),
+ infoText, TQ_SLOT(append(const TQString&)) );
+ connect( s, TQ_SIGNAL(connectionClosed()),
+ TQ_SLOT(connectionClosed()) );
}
void connectionClosed()
diff --git a/examples/network/ftpclient/ftpmainwindow.ui.h b/examples/network/ftpclient/ftpmainwindow.ui.h
index 8f3cde07c..ded8b2600 100644
--- a/examples/network/ftpclient/ftpmainwindow.ui.h
+++ b/examples/network/ftpclient/ftpmainwindow.ui.h
@@ -36,18 +36,18 @@ void FtpMainWindow::init()
statusBar()->addWidget( stateFtp, 0, TRUE );
ftp = new TQFtp( this );
- connect( ftp, SIGNAL(commandStarted(int)),
- SLOT(ftp_commandStarted()) );
- connect( ftp, SIGNAL(commandFinished(int,bool)),
- SLOT(ftp_commandFinished()) );
- connect( ftp, SIGNAL(done(bool)),
- SLOT(ftp_done(bool)) );
- connect( ftp, SIGNAL(stateChanged(int)),
- SLOT(ftp_stateChanged(int)) );
- connect( ftp, SIGNAL(listInfo(const TQUrlInfo &)),
- SLOT(ftp_listInfo(const TQUrlInfo &)) );
- connect( ftp, SIGNAL(rawCommandReply(int, const TQString &)),
- SLOT(ftp_rawCommandReply(int, const TQString &)) );
+ connect( ftp, TQ_SIGNAL(commandStarted(int)),
+ TQ_SLOT(ftp_commandStarted()) );
+ connect( ftp, TQ_SIGNAL(commandFinished(int,bool)),
+ TQ_SLOT(ftp_commandFinished()) );
+ connect( ftp, TQ_SIGNAL(done(bool)),
+ TQ_SLOT(ftp_done(bool)) );
+ connect( ftp, TQ_SIGNAL(stateChanged(int)),
+ TQ_SLOT(ftp_stateChanged(int)) );
+ connect( ftp, TQ_SIGNAL(listInfo(const TQUrlInfo &)),
+ TQ_SLOT(ftp_listInfo(const TQUrlInfo &)) );
+ connect( ftp, TQ_SIGNAL(rawCommandReply(int, const TQString &)),
+ TQ_SLOT(ftp_rawCommandReply(int, const TQString &)) );
}
void FtpMainWindow::destroy()
@@ -82,12 +82,12 @@ void FtpMainWindow::uploadFile()
this,
"upload progress dialog",
TRUE );
- connect( ftp, SIGNAL(dataTransferProgress(int,int)),
- &progress, SLOT(setProgress(int,int)) );
- connect( ftp, SIGNAL(commandFinished(int,bool)),
- &progress, SLOT(reset()) );
- connect( &progress, SIGNAL(cancelled()),
- ftp, SLOT(abort()) );
+ connect( ftp, TQ_SIGNAL(dataTransferProgress(int,int)),
+ &progress, TQ_SLOT(setProgress(int,int)) );
+ connect( ftp, TQ_SIGNAL(commandFinished(int,bool)),
+ &progress, TQ_SLOT(reset()) );
+ connect( &progress, TQ_SIGNAL(cancelled()),
+ ftp, TQ_SLOT(abort()) );
TQFileInfo fi( fileName );
ftp->put( file, fi.fileName() );
@@ -128,12 +128,12 @@ void FtpMainWindow::downloadFile()
this,
"download progress dialog",
TRUE );
- connect( ftp, SIGNAL(dataTransferProgress(int,int)),
- &progress, SLOT(setProgress(int,int)) );
- connect( ftp, SIGNAL(commandFinished(int,bool)),
- &progress, SLOT(reset()) );
- connect( &progress, SIGNAL(cancelled()),
- ftp, SLOT(abort()) );
+ connect( ftp, TQ_SIGNAL(dataTransferProgress(int,int)),
+ &progress, TQ_SLOT(setProgress(int,int)) );
+ connect( ftp, TQ_SIGNAL(commandFinished(int,bool)),
+ &progress, TQ_SLOT(reset()) );
+ connect( &progress, TQ_SIGNAL(cancelled()),
+ ftp, TQ_SLOT(abort()) );
ftp->get( item->text(0), file );
progress.exec(); // ### takes a lot of time!!!
diff --git a/examples/network/httpd/httpd.cpp b/examples/network/httpd/httpd.cpp
index 28e0bd37a..09942bcc3 100644
--- a/examples/network/httpd/httpd.cpp
+++ b/examples/network/httpd/httpd.cpp
@@ -39,8 +39,8 @@ public:
// works asynchronouslyl, this means that all the communication is done
// in the two slots readClient() and discardClient().
TQSocket* s = new TQSocket( this );
- connect( s, SIGNAL(readyRead()), this, SLOT(readClient()) );
- connect( s, SIGNAL(delayedCloseFinished()), this, SLOT(discardClient()) );
+ connect( s, TQ_SIGNAL(readyRead()), this, TQ_SLOT(readClient()) );
+ connect( s, TQ_SIGNAL(delayedCloseFinished()), this, TQ_SLOT(discardClient()) );
s->setSocket( socket );
emit newConnect();
}
@@ -100,10 +100,10 @@ public:
infoText = new TQTextView( this );
TQPushButton *quit = new TQPushButton( "quit" , this );
- connect( httpd, SIGNAL(newConnect()), SLOT(newConnect()) );
- connect( httpd, SIGNAL(endConnect()), SLOT(endConnect()) );
- connect( httpd, SIGNAL(wroteToClient()), SLOT(wroteToClient()) );
- connect( quit, SIGNAL(pressed()), tqApp, SLOT(quit()) );
+ connect( httpd, TQ_SIGNAL(newConnect()), TQ_SLOT(newConnect()) );
+ connect( httpd, TQ_SIGNAL(endConnect()), TQ_SLOT(endConnect()) );
+ connect( httpd, TQ_SIGNAL(wroteToClient()), TQ_SLOT(wroteToClient()) );
+ connect( quit, TQ_SIGNAL(pressed()), tqApp, TQ_SLOT(quit()) );
}
~HttpInfo()
diff --git a/examples/network/infoprotocol/infoclient/client.cpp b/examples/network/infoprotocol/infoclient/client.cpp
index 7bff123b4..c1d05b6c5 100644
--- a/examples/network/infoprotocol/infoclient/client.cpp
+++ b/examples/network/infoprotocol/infoclient/client.cpp
@@ -25,10 +25,10 @@ ClientInfo::ClientInfo( TQWidget *parent, const char *name ) :
edHost->setText( "localhost" );
edPort->setText( TQString::number( (uint)infoPort ) );
- connect( infoList, SIGNAL(selected(const TQString&)), SLOT(selectItem(const TQString&)) );
- connect( btnConnect, SIGNAL(clicked()), SLOT(connectToServer()) );
- connect( btnBack, SIGNAL(clicked()), SLOT(stepBack()) );
- connect( btnQuit, SIGNAL(clicked()), tqApp, SLOT(quit()) );
+ connect( infoList, TQ_SIGNAL(selected(const TQString&)), TQ_SLOT(selectItem(const TQString&)) );
+ connect( btnConnect, TQ_SIGNAL(clicked()), TQ_SLOT(connectToServer()) );
+ connect( btnBack, TQ_SIGNAL(clicked()), TQ_SLOT(stepBack()) );
+ connect( btnQuit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) );
}
@@ -36,10 +36,10 @@ void ClientInfo::connectToServer()
{
delete socket;
socket = new TQSocket( this );
- connect( socket, SIGNAL(connected()), SLOT(socketConnected()) );
- connect( socket, SIGNAL(connectionClosed()), SLOT(socketConnectionClosed()) );
- connect( socket, SIGNAL(readyRead()), SLOT(socketReadyRead()) );
- connect( socket, SIGNAL(error(int)), SLOT(socketError(int)) );
+ connect( socket, TQ_SIGNAL(connected()), TQ_SLOT(socketConnected()) );
+ connect( socket, TQ_SIGNAL(connectionClosed()), TQ_SLOT(socketConnectionClosed()) );
+ connect( socket, TQ_SIGNAL(readyRead()), TQ_SLOT(socketReadyRead()) );
+ connect( socket, TQ_SIGNAL(error(int)), TQ_SLOT(socketError(int)) );
socket->connectToHost( edHost->text(), edPort->text().toInt() );
}
diff --git a/examples/network/infoprotocol/infoserver/server.cpp b/examples/network/infoprotocol/infoserver/server.cpp
index a405fd8ba..d71de6590 100644
--- a/examples/network/infoprotocol/infoserver/server.cpp
+++ b/examples/network/infoprotocol/infoserver/server.cpp
@@ -22,8 +22,8 @@ ServerInfo::ServerInfo( TQ_UINT16 port, TQWidget *parent, const char *name ) :
ServerInfoBase( parent, name )
{
SimpleServer *server = new SimpleServer( port, this, "simple server" );
- connect( server, SIGNAL(newConnect()), SLOT(newConnect()) );
- connect( btnQuit, SIGNAL(clicked()), tqApp, SLOT(quit()) );
+ connect( server, TQ_SIGNAL(newConnect()), TQ_SLOT(newConnect()) );
+ connect( btnQuit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) );
}
void ServerInfo::newConnect()
@@ -51,8 +51,8 @@ void SimpleServer::newConnection( int socket )
ClientSocket::ClientSocket( int sock, InfoData *i, TQObject *parent, const char *name ) :
TQSocket( parent, name ), info( i )
{
- connect( this, SIGNAL(readyRead()), SLOT(readClient()) );
- connect( this, SIGNAL(connectionClosed()), SLOT(connectionClosed()) );
+ connect( this, TQ_SIGNAL(readyRead()), TQ_SLOT(readClient()) );
+ connect( this, TQ_SIGNAL(connectionClosed()), TQ_SLOT(connectionClosed()) );
setSocket( sock );
}
diff --git a/examples/network/infoprotocol/infourlclient/client.cpp b/examples/network/infoprotocol/infourlclient/client.cpp
index 992880dd3..c3101639f 100644
--- a/examples/network/infoprotocol/infourlclient/client.cpp
+++ b/examples/network/infoprotocol/infourlclient/client.cpp
@@ -21,10 +21,10 @@
ClientInfo::ClientInfo( TQWidget *parent, const char *name ) :
ClientInfoBase( parent, name )
{
- connect( btnOpen, SIGNAL(clicked()), SLOT(downloadFile()) );
- connect( btnQuit, SIGNAL(clicked()), tqApp, SLOT(quit()) );
- connect( &op, SIGNAL( data( const TQByteArray &, TQNetworkOperation * ) ),
- this, SLOT( newData( const TQByteArray & ) ) );
+ connect( btnOpen, TQ_SIGNAL(clicked()), TQ_SLOT(downloadFile()) );
+ connect( btnQuit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) );
+ connect( &op, TQ_SIGNAL( data( const TQByteArray &, TQNetworkOperation * ) ),
+ this, TQ_SLOT( newData( const TQByteArray & ) ) );
}
void ClientInfo::downloadFile()
diff --git a/examples/network/infoprotocol/infourlclient/qip.cpp b/examples/network/infoprotocol/infourlclient/qip.cpp
index aa1535013..aed848388 100644
--- a/examples/network/infoprotocol/infourlclient/qip.cpp
+++ b/examples/network/infoprotocol/infourlclient/qip.cpp
@@ -19,10 +19,10 @@ Qip::Qip()
{
state = Start;
socket = new TQSocket( this );
- connect( socket, SIGNAL(connected()), SLOT(socketConnected()) );
- connect( socket, SIGNAL(connectionClosed()), SLOT(socketConnectionClosed()) );
- connect( socket, SIGNAL(readyRead()), SLOT(socketReadyRead()) );
- connect( socket, SIGNAL(error(int)), SLOT(socketError(int)) );
+ connect( socket, TQ_SIGNAL(connected()), TQ_SLOT(socketConnected()) );
+ connect( socket, TQ_SIGNAL(connectionClosed()), TQ_SLOT(socketConnectionClosed()) );
+ connect( socket, TQ_SIGNAL(readyRead()), TQ_SLOT(socketReadyRead()) );
+ connect( socket, TQ_SIGNAL(error(int)), TQ_SLOT(socketError(int)) );
}
int Qip::supportedOperations() const
diff --git a/examples/network/mail/composer.cpp b/examples/network/mail/composer.cpp
index cee25929a..51f690126 100644
--- a/examples/network/mail/composer.cpp
+++ b/examples/network/mail/composer.cpp
@@ -38,7 +38,7 @@ Composer::Composer( TQWidget *parent )
send = new TQPushButton( tr( "&Send" ), this );
layout->addWidget( send, 4, 0 );
- connect( send, SIGNAL( clicked() ), this, SLOT( sendMessage() ) );
+ connect( send, TQ_SIGNAL( clicked() ), this, TQ_SLOT( sendMessage() ) );
sendStatus = new TQLabel( this );
layout->addWidget( sendStatus, 4, 1 );
@@ -52,10 +52,10 @@ void Composer::sendMessage()
Smtp *smtp = new Smtp( from->text(), to->text(),
subject->text(),
message->text() );
- connect( smtp, SIGNAL(destroyed()),
- this, SLOT(enableSend()) );
- connect( smtp, SIGNAL(status(const TQString &)),
- sendStatus, SLOT(setText(const TQString &)) );
+ connect( smtp, TQ_SIGNAL(destroyed()),
+ this, TQ_SLOT(enableSend()) );
+ connect( smtp, TQ_SIGNAL(status(const TQString &)),
+ sendStatus, TQ_SLOT(setText(const TQString &)) );
}
diff --git a/examples/network/mail/smtp.cpp b/examples/network/mail/smtp.cpp
index 3a288fc0d..e9a34b281 100644
--- a/examples/network/mail/smtp.cpp
+++ b/examples/network/mail/smtp.cpp
@@ -23,14 +23,14 @@ Smtp::Smtp( const TQString &from, const TQString &to,
const TQString &body )
{
socket = new TQSocket( this );
- connect ( socket, SIGNAL( readyRead() ),
- this, SLOT( readyRead() ) );
- connect ( socket, SIGNAL( connected() ),
- this, SLOT( connected() ) );
+ connect ( socket, TQ_SIGNAL( readyRead() ),
+ this, TQ_SLOT( readyRead() ) );
+ connect ( socket, TQ_SIGNAL( connected() ),
+ this, TQ_SLOT( connected() ) );
mxLookup = new TQDns( to.mid( to.find( '@' )+1 ), TQDns::Mx );
- connect( mxLookup, SIGNAL(resultsReady()),
- this, SLOT(dnsLookupHelper()) );
+ connect( mxLookup, TQ_SIGNAL(resultsReady()),
+ this, TQ_SLOT(dnsLookupHelper()) );
message = TQString::fromLatin1( "From: " ) + from +
TQString::fromLatin1( "\nTo: " ) + to +
diff --git a/examples/network/networkprotocol/nntp.cpp b/examples/network/networkprotocol/nntp.cpp
index 1fe31dda4..833718ada 100644
--- a/examples/network/networkprotocol/nntp.cpp
+++ b/examples/network/networkprotocol/nntp.cpp
@@ -20,16 +20,16 @@ Nntp::Nntp()
{
// create the command socket and connect to its signals
commandSocket = new TQSocket( this );
- connect( commandSocket, SIGNAL( hostFound() ),
- this, SLOT( hostFound() ) );
- connect( commandSocket, SIGNAL( connected() ),
- this, SLOT( connected() ) );
- connect( commandSocket, SIGNAL( connectionClosed() ),
- this, SLOT( closed() ) );
- connect( commandSocket, SIGNAL( readyRead() ),
- this, SLOT( readyRead() ) );
- connect( commandSocket, SIGNAL( error( int ) ),
- this, SLOT( error( int ) ) );
+ connect( commandSocket, TQ_SIGNAL( hostFound() ),
+ this, TQ_SLOT( hostFound() ) );
+ connect( commandSocket, TQ_SIGNAL( connected() ),
+ this, TQ_SLOT( connected() ) );
+ connect( commandSocket, TQ_SIGNAL( connectionClosed() ),
+ this, TQ_SLOT( closed() ) );
+ connect( commandSocket, TQ_SIGNAL( readyRead() ),
+ this, TQ_SLOT( readyRead() ) );
+ connect( commandSocket, TQ_SIGNAL( error( int ) ),
+ this, TQ_SLOT( error( int ) ) );
}
Nntp::~Nntp()
diff --git a/examples/network/networkprotocol/view.cpp b/examples/network/networkprotocol/view.cpp
index 3c24e03d9..070b8a7cd 100644
--- a/examples/network/networkprotocol/view.cpp
+++ b/examples/network/networkprotocol/view.cpp
@@ -40,15 +40,15 @@ View::View()
"for downloading a news article start with an url like "
"<u>nntp://news.tu-graz.ac.at</u> " ) );
TQPushButton *b = new TQPushButton( tr( "Open a file..." ), this );
- connect( b, SIGNAL( clicked() ),
- this, SLOT( downloadFile() ) );
+ connect( b, TQ_SIGNAL( clicked() ),
+ this, TQ_SLOT( downloadFile() ) );
fileView = new TQMultiLineEdit( this );
fileView->setReadOnly( TRUE );
// if new data comes in, display it
- connect( &op, SIGNAL( data( const TQByteArray &, TQNetworkOperation * ) ),
- this, SLOT( newData( const TQByteArray & ) ) );
+ connect( &op, TQ_SIGNAL( data( const TQByteArray &, TQNetworkOperation * ) ),
+ this, TQ_SLOT( newData( const TQByteArray & ) ) );
}
void View::downloadFile()
diff --git a/examples/network/remotecontrol/ipcserver.cpp b/examples/network/remotecontrol/ipcserver.cpp
index e7cbc2c55..4bd7b6423 100644
--- a/examples/network/remotecontrol/ipcserver.cpp
+++ b/examples/network/remotecontrol/ipcserver.cpp
@@ -14,7 +14,7 @@ public:
IpcSocket( TQObject *parent) : TQSocket( parent )
{
packetSize = 0;
- connect( this, SIGNAL(readyRead()), SLOT(read()) );
+ connect( this, TQ_SIGNAL(readyRead()), TQ_SLOT(read()) );
}
signals:
@@ -75,10 +75,10 @@ void IpcServer::newConnection( int socket )
{
IpcSocket *s = new IpcSocket( this );
s->setSocket( socket );
- connect( s, SIGNAL(receivedText(const TQString&)),
- SIGNAL(receivedText(const TQString&)) );
- connect( s, SIGNAL(receivedPixmap(const TQPixmap&)),
- SIGNAL(receivedPixmap(const TQPixmap&)) );
+ connect( s, TQ_SIGNAL(receivedText(const TQString&)),
+ TQ_SIGNAL(receivedText(const TQString&)) );
+ connect( s, TQ_SIGNAL(receivedPixmap(const TQPixmap&)),
+ TQ_SIGNAL(receivedPixmap(const TQPixmap&)) );
}
#include "ipcserver.moc"
diff --git a/examples/network/remotecontrol/main.cpp b/examples/network/remotecontrol/main.cpp
index 76072217c..914d56855 100644
--- a/examples/network/remotecontrol/main.cpp
+++ b/examples/network/remotecontrol/main.cpp
@@ -6,6 +6,6 @@ int main( int argc, char **argv )
{
TQApplication a( argc, argv );
StartUp s;
- TQObject::connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
+ TQObject::connect( &a, TQ_SIGNAL(lastWindowClosed()), &a, TQ_SLOT(quit()) );
return a.exec();
}
diff --git a/examples/network/remotecontrol/remotectrlimpl.cpp b/examples/network/remotecontrol/remotectrlimpl.cpp
index ac1f01678..68e0a3c7a 100644
--- a/examples/network/remotecontrol/remotectrlimpl.cpp
+++ b/examples/network/remotecontrol/remotectrlimpl.cpp
@@ -10,9 +10,9 @@
RemoteCtrlImpl::RemoteCtrlImpl( TQSocket *s )
{
socket = s;
- connect( sImage, SIGNAL(clicked()), SLOT(sendImage()) );
- connect( sText, SIGNAL(clicked()), SLOT(sendText()) );
- connect( sPalette, SIGNAL(clicked()), SLOT(sendPalette()) );
+ connect( sImage, TQ_SIGNAL(clicked()), TQ_SLOT(sendImage()) );
+ connect( sText, TQ_SIGNAL(clicked()), TQ_SLOT(sendText()) );
+ connect( sPalette, TQ_SIGNAL(clicked()), TQ_SLOT(sendPalette()) );
}
void RemoteCtrlImpl::sendPacket( const TQVariant &v )
diff --git a/examples/network/remotecontrol/startup.cpp b/examples/network/remotecontrol/startup.cpp
index 11b9d2273..95e33e260 100644
--- a/examples/network/remotecontrol/startup.cpp
+++ b/examples/network/remotecontrol/startup.cpp
@@ -14,8 +14,8 @@ StartUp::StartUp()
mainDialog = 0;
socket = new TQSocket( this );
- connect( socket, SIGNAL(connected()), SLOT(startRemoteCtrl()) );
- connect( socket, SIGNAL(error(int)), SLOT(startMainDialog()) );
+ connect( socket, TQ_SIGNAL(connected()), TQ_SLOT(startRemoteCtrl()) );
+ connect( socket, TQ_SIGNAL(error(int)), TQ_SLOT(startMainDialog()) );
socket->connectToHost( "localhost", ipcPort );
}
@@ -38,8 +38,8 @@ void StartUp::startMainDialog()
IpcServer *server = new IpcServer( ipcPort, this );
- connect( server, SIGNAL(receivedText(const TQString&)),
- mainDialog->description, SLOT(setText(const TQString&)) );
- connect( server, SIGNAL(receivedPixmap(const TQPixmap&)),
- mainDialog->image, SLOT(setPixmap(const TQPixmap&)) );
+ connect( server, TQ_SIGNAL(receivedText(const TQString&)),
+ mainDialog->description, TQ_SLOT(setText(const TQString&)) );
+ connect( server, TQ_SIGNAL(receivedPixmap(const TQPixmap&)),
+ mainDialog->image, TQ_SLOT(setPixmap(const TQPixmap&)) );
}