diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2013-07-27 16:57:53 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-07-27 18:48:46 +0200 |
commit | 7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931 (patch) | |
tree | 4655c7263ca5c64d23d10167cb459dd9cb253815 /src/testprivacyproxy.h | |
parent | 88ea2b6cd4382627fb6efca9cc54825aee881d1e (diff) | |
download | tork-7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931.tar.gz tork-7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931.zip |
Initial TQt conversion
Diffstat (limited to 'src/testprivacyproxy.h')
-rw-r--r-- | src/testprivacyproxy.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/testprivacyproxy.h b/src/testprivacyproxy.h index c139edb..7f74c9a 100644 --- a/src/testprivacyproxy.h +++ b/src/testprivacyproxy.h @@ -21,7 +21,7 @@ ** ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. ** -** This file is part of an example program for Qt. This example +** This file is part of an example program for TQt. This example ** program may be used, distributed and modified without limitation. ** *****************************************************************************/ @@ -29,15 +29,15 @@ #ifndef _TESTPRIVACYPROXY_H_ #define _TESTPRIVACYPROXY_H_ -#include <qsocket.h> -#include <qtextstream.h> +#include <ntqsocket.h> +#include <ntqtextstream.h> #include <kdebug.h> #include <kconfigskeleton.h> -#include <qlistview.h> +#include <ntqlistview.h> #include "torkconfig.h" -class TestPrivoxy : public QObject +class TestPrivoxy : public TQObject { Q_OBJECT public: @@ -46,11 +46,11 @@ public: virtual ~TestPrivoxy(); - void sendToServer(const QString &string) + void sendToServer(const TQString &string) { if (!socket) return; - QTextStream os(socket); + TQTextStream os(socket); os << string << "\r\n"; } @@ -60,7 +60,7 @@ public slots: void closeConnection() { socket->close(); - if ( socket->state() == QSocket::Closing ) { + if ( socket->state() == TQSocket::Closing ) { // We have a delayed close. connect( socket, SIGNAL(delayedCloseFinished()), SLOT(socketClosed()) ); @@ -70,7 +70,7 @@ public slots: } } - void connectTo(const QString &host, Q_UINT16 port); + void connectTo(const TQString &host, TQ_UINT16 port); signals: @@ -97,14 +97,14 @@ private slots: void socketError( int e ) { - if ( e == QSocket::ErrHostNotFound || - e == QSocket::ErrConnectionRefused ) + if ( e == TQSocket::ErrHostNotFound || + e == TQSocket::ErrConnectionRefused ) emit fatalError(); } private: - QSocket *socket; + TQSocket *socket; }; #endif // |