summaryrefslogtreecommitdiffstats
path: root/examples/sslservtest
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sslservtest')
-rw-r--r--examples/sslservtest/sslservtest.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/examples/sslservtest/sslservtest.cpp b/examples/sslservtest/sslservtest.cpp
index f2c5a05..bff45bf 100644
--- a/examples/sslservtest/sslservtest.cpp
+++ b/examples/sslservtest/sslservtest.cpp
@@ -115,17 +115,17 @@ public:
SecureServerTest(int _port) : QServerSocket(_port), port(_port)
{
sock = new TQSocket;
- connect(sock, SIGNAL(readyRead()), SLOT(sock_readyRead()));
- connect(sock, SIGNAL(connectionClosed()), SLOT(sock_connectionClosed()));
- connect(sock, SIGNAL(error(int)), SLOT(sock_error(int)));
- connect(sock, SIGNAL(bytesWritten(int)), SLOT(sock_bytesWritten(int)));
+ connect(sock, TQ_SIGNAL(readyRead()), TQ_SLOT(sock_readyRead()));
+ connect(sock, TQ_SIGNAL(connectionClosed()), TQ_SLOT(sock_connectionClosed()));
+ connect(sock, TQ_SIGNAL(error(int)), TQ_SLOT(sock_error(int)));
+ connect(sock, TQ_SIGNAL(bytesWritten(int)), TQ_SLOT(sock_bytesWritten(int)));
ssl = new QCA::TLS;
- connect(ssl, SIGNAL(handshaken()), SLOT(ssl_handshaken()));
- connect(ssl, SIGNAL(readyRead()), SLOT(ssl_readyRead()));
- connect(ssl, SIGNAL(readyReadOutgoing(int)), SLOT(ssl_readyReadOutgoing(int)));
- connect(ssl, SIGNAL(closed()), SLOT(ssl_closed()));
- connect(ssl, SIGNAL(error(int)), SLOT(ssl_error(int)));
+ connect(ssl, TQ_SIGNAL(handshaken()), TQ_SLOT(ssl_handshaken()));
+ connect(ssl, TQ_SIGNAL(readyRead()), TQ_SLOT(ssl_readyRead()));
+ connect(ssl, TQ_SIGNAL(readyReadOutgoing(int)), TQ_SLOT(ssl_readyReadOutgoing(int)));
+ connect(ssl, TQ_SIGNAL(closed()), TQ_SLOT(ssl_closed()));
+ connect(ssl, TQ_SIGNAL(error(int)), TQ_SLOT(ssl_error(int)));
cert.fromPEM(pemdata_cert);
privkey.fromPEM(pemdata_privkey);
@@ -143,12 +143,12 @@ public:
{
if(cert.isNull() || privkey.isNull()) {
printf("Error loading cert and/or private key!\n");
- TQTimer::singleShot(0, this, SIGNAL(quit()));
+ TQTimer::singleShot(0, this, TQ_SIGNAL(quit()));
return;
}
if(!ok()) {
printf("Error binding to port %d!\n", port);
- TQTimer::singleShot(0, this, SIGNAL(quit()));
+ TQTimer::singleShot(0, this, TQ_SIGNAL(quit()));
return;
}
printf("Listening on port %d ...\n", port);
@@ -285,7 +285,7 @@ int main(int argc, char **argv)
}
SecureServerTest *s = new SecureServerTest(port);
- TQObject::connect(s, SIGNAL(quit()), &app, SLOT(quit()));
+ TQObject::connect(s, TQ_SIGNAL(quit()), &app, TQ_SLOT(quit()));
s->start();
app.exec();
delete s;