From 7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 27 Jul 2013 16:57:53 +0200 Subject: Initial TQt conversion --- src/tor_ioslave/torioslave.cpp | 26 +++++++++++++------------- src/tor_ioslave/torioslave.h | 8 ++++---- 2 files changed, 17 insertions(+), 17 deletions(-) (limited to 'src/tor_ioslave') diff --git a/src/tor_ioslave/torioslave.cpp b/src/tor_ioslave/torioslave.cpp index 961b1d0..ac4a901 100644 --- a/src/tor_ioslave/torioslave.cpp +++ b/src/tor_ioslave/torioslave.cpp @@ -19,10 +19,10 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#include -#include -#include -#include +#include +#include +#include +#include #include #include @@ -53,7 +53,7 @@ using namespace KIO; -kio_torProtocol::kio_torProtocol(const QCString &pool_socket, const QCString &app_socket) +kio_torProtocol::kio_torProtocol(const TQCString &pool_socket, const TQCString &app_socket) : SlaveBase("kio_tor", pool_socket, app_socket) { } @@ -67,13 +67,13 @@ kio_torProtocol::~kio_torProtocol() void kio_torProtocol::get(const KURL& url ) { - QString wait; - QByteArray output; + TQString wait; + TQByteArray output; - QTextStream os( output, IO_WriteOnly ); - os.setEncoding( QTextStream::Latin1 ); // In fast ASCII + TQTextStream os( output, IO_WriteOnly ); + os.setEncoding( TQTextStream::Latin1 ); // In fast ASCII - QString cleanedurl = url.prettyURL().replace("tor://",""); + TQString cleanedurl = url.prettyURL().replace("tor://",""); cleanedurl = cleanedurl.replace("tor:/",""); cleanedurl = cleanedurl.replace("tor:",""); cleanedurl = cleanedurl.replace(" ",""); @@ -87,7 +87,7 @@ void kio_torProtocol::get(const KURL& url ) if (cantdo){ - os << QString("Tor%1 is not a valid URL for this feature. Websites only I'm afraid. And no file extensions either!").arg(cleanedurl); + os << TQString("Tor%1 is not a valid URL for this feature. Websites only I'm afraid. And no file extensions either!").arg(cleanedurl); data( output ); finished(); @@ -119,7 +119,7 @@ void kio_torProtocol::get(const KURL& url ) }else{ KProcIO *whichproc = new KProcIO(); whichproc->setUseShell(TRUE); - QString whichCommand="tork --toggleKDE"; + TQString whichCommand="tork --toggleKDE"; *whichproc<TorWill load %3 anonymously in a moment.").arg(wait).arg(cleanedurl).arg(cleanedurl); + os << TQString("TorWill load %3 anonymously in a moment.").arg(wait).arg(cleanedurl).arg(cleanedurl); data( output ); finished(); diff --git a/src/tor_ioslave/torioslave.h b/src/tor_ioslave/torioslave.h index 05e90ca..0bb1556 100644 --- a/src/tor_ioslave/torioslave.h +++ b/src/tor_ioslave/torioslave.h @@ -22,19 +22,19 @@ #ifndef _tor_H_ #define _tor_H_ -#include -#include +#include +#include #include #include #include -class QCString; +class TQCString; class kio_torProtocol : public KIO::SlaveBase { public: - kio_torProtocol(const QCString &pool_socket, const QCString &app_socket); + kio_torProtocol(const TQCString &pool_socket, const TQCString &app_socket); virtual ~kio_torProtocol(); virtual void mimetype(const KURL& url); virtual void get(const KURL& url); -- cgit v1.2.1