summaryrefslogtreecommitdiffstats
path: root/src/tor_ioslave/torioslave.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tor_ioslave/torioslave.cpp')
-rw-r--r--src/tor_ioslave/torioslave.cpp26
1 files changed, 13 insertions, 13 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();