summaryrefslogtreecommitdiffstats
path: root/examples/network/infoprotocol
diff options
context:
space:
mode:
Diffstat (limited to 'examples/network/infoprotocol')
-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
4 files changed, 20 insertions, 20 deletions
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