summaryrefslogtreecommitdiffstats
path: root/src/tor_ioslave
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2013-07-27 16:57:53 +0200
committerSlávek Banko <[email protected]>2013-07-27 18:48:46 +0200
commit7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931 (patch)
tree4655c7263ca5c64d23d10167cb459dd9cb253815 /src/tor_ioslave
parent88ea2b6cd4382627fb6efca9cc54825aee881d1e (diff)
downloadtork-7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931.tar.gz
tork-7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931.zip
Initial TQt conversion
Diffstat (limited to 'src/tor_ioslave')
-rw-r--r--src/tor_ioslave/torioslave.cpp26
-rw-r--r--src/tor_ioslave/torioslave.h8
2 files changed, 17 insertions, 17 deletions
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 <qcstring.h>
-#include <qsocket.h>
-#include <qdatetime.h>
-#include <qbitarray.h>
+#include <ntqcstring.h>
+#include <ntqsocket.h>
+#include <ntqdatetime.h>
+#include <ntqbitarray.h>
#include <stdlib.h>
#include <math.h>
@@ -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("<html><head><title>Tor</title></head><body>%1 is not a valid URL for this feature. Websites only I'm afraid. And no file extensions either!</body></html>").arg(cleanedurl);
+ os << TQString("<html><head><title>Tor</title></head><body>%1 is not a valid URL for this feature. Websites only I'm afraid. And no file extensions either!</body></html>").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<<whichCommand;
@@ -130,7 +130,7 @@ void kio_torProtocol::get(const KURL& url )
}
- os << QString("<html><head><title>Tor</title><META HTTP-EQUIV='Refresh' CONTENT='%1; URL=%2'></head><body>Will load %3 anonymously in a moment.</body></html>").arg(wait).arg(cleanedurl).arg(cleanedurl);
+ os << TQString("<html><head><title>Tor</title><META HTTP-EQUIV='Refresh' CONTENT='%1; URL=%2'></head><body>Will load %3 anonymously in a moment.</body></html>").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 <qstring.h>
-#include <qcstring.h>
+#include <ntqstring.h>
+#include <ntqcstring.h>
#include <kurl.h>
#include <kio/global.h>
#include <kio/slavebase.h>
-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);