diff options
Diffstat (limited to 'src/tork.cpp')
-rw-r--r-- | src/tork.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/tork.cpp b/src/tork.cpp index 528fe58..8357211 100644 --- a/src/tork.cpp +++ b/src/tork.cpp @@ -52,7 +52,7 @@ #include <tdeaction.h> #include <kstdaction.h> #include <tdepopupmenu.h> -#include <kprocio.h> +#include <tdeprocio.h> #include <tdemessagebox.h> #include <dcopref.h> #include <tdeconfig.h> @@ -1275,21 +1275,21 @@ tork::configureSecurity( int id ) //SLOT cmd += "echo run"; - filterproc = new KProcIO(); + filterproc = new TDEProcIO(); filterproc->setUseShell(TRUE); TQString filterCommand= TQString("tdesu --noignorebutton --miniicon tork --caption '%1' -t -i %2 -d -c " "'%3'").arg(filterRequest).arg(iconstring).arg(cmd); - connect( filterproc, TQ_SIGNAL(readReady(KProcIO * )), - TQ_SLOT(processFilter(KProcIO * )) ); + connect( filterproc, TQ_SIGNAL(readReady(TDEProcIO * )), + TQ_SLOT(processFilter(TDEProcIO * )) ); connect( filterproc, TQ_SIGNAL(processExited(TDEProcess *)), TQ_SLOT(filterExited()) ); *filterproc<<filterCommand; - filterproc->start(KProcIO::NotifyOnExit,TRUE); + filterproc->start(TDEProcIO::NotifyOnExit,TRUE); } -void tork::processFilter(KProcIO *filterproc) +void tork::processFilter(TDEProcIO *filterproc) { TQString item = ""; int pos; @@ -1933,7 +1933,7 @@ void tork::startTor() sayWhatImDoing("Starting Tor.."); - childproc = new KProcIO(); + childproc = new TDEProcIO(); childproc->setUseShell(TRUE); TQString torConfFile = writeConf(); @@ -1944,10 +1944,10 @@ void tork::startTor() connect( childproc, TQ_SIGNAL(processExited(TDEProcess *)), TQ_SLOT(childExited()) ); - connect( childproc, TQ_SIGNAL(readReady(KProcIO *)), - TQ_SLOT(receivedOutput(KProcIO *)) ); + connect( childproc, TQ_SIGNAL(readReady(TDEProcIO *)), + TQ_SLOT(receivedOutput(TDEProcIO *)) ); - childproc->start(KProcIO::NotifyOnExit) ; + childproc->start(TDEProcIO::NotifyOnExit) ; } @@ -2570,16 +2570,16 @@ bool tork::noSpecialProcessing(const TDEConfigSkeletonItem* it, TQTextStream &ts TQString tork::doHashPassword() { - hashproc = new KProcIO(); + hashproc = new TDEProcIO(); hashproc->setUseShell(TRUE); m_hashedpassword = ""; TQString hashCommand=TQString("tor --hash-password %1").arg(TorkConfig::hashedControlPassword()); *hashproc<<hashCommand; - connect( hashproc, TQ_SIGNAL(readReady(KProcIO * )), - TQ_SLOT(processHashProc(KProcIO * )) ); - hashproc->start(KProcIO::NotifyOnExit,TRUE); + connect( hashproc, TQ_SIGNAL(readReady(TDEProcIO * )), + TQ_SLOT(processHashProc(TDEProcIO * )) ); + hashproc->start(TDEProcIO::NotifyOnExit,TRUE); while (hashproc->isRunning() && m_hashedpassword.isEmpty()) kapp->processEvents(); @@ -2587,7 +2587,7 @@ TQString tork::doHashPassword() return m_hashedpassword; } -void tork::processHashProc(KProcIO *hashproc) +void tork::processHashProc(TDEProcIO *hashproc) { TQString item = ""; int pos; @@ -2754,7 +2754,7 @@ void tork::startPrivoxy() privoxyproc = 0L; } - privoxyproc = new KProcIO(); + privoxyproc = new TDEProcIO(); privoxyproc->setUseShell(TRUE); TQString curpath = (TQString) getenv("PATH"); @@ -2775,7 +2775,7 @@ void tork::startPrivoxy() connect( privoxyproc, TQ_SIGNAL(processExited(TDEProcess *)), TQ_SLOT(privoxyExited()) ); - privoxyproc->start(KProcIO::NotifyOnExit) ; + privoxyproc->start(TDEProcIO::NotifyOnExit) ; } @@ -3035,7 +3035,7 @@ void tork::startFromBeginning() } -void tork::receivedOutput(KProcIO *) +void tork::receivedOutput(TDEProcIO *) { int pos; TQString item2; @@ -3175,7 +3175,7 @@ void tork::reconnectWithCookie() void tork::copyCookie() { - KProcIO *catproc = new KProcIO(); + TDEProcIO *catproc = new TDEProcIO(); catproc->setUseShell(TRUE); TQString whichCommand= TQString( "tdesu -c '" @@ -3189,7 +3189,7 @@ void tork::copyCookie() .arg(getenv("USER")).arg(getenv("HOME")); *catproc<<whichCommand; - catproc->start(KProcIO::NotifyOnExit,TRUE); + catproc->start(TDEProcIO::NotifyOnExit,TRUE); } @@ -3944,7 +3944,7 @@ void tork::startNetStat() || !TorkConfig::clientOnly()) return; - netstatproc = new KProcIO(); + netstatproc = new TDEProcIO(); netstatproc->setUseShell(TRUE); TQString netstatcmd = "netstat -ntucpe"; @@ -3955,10 +3955,10 @@ void tork::startNetStat() connect( netstatproc, TQ_SIGNAL(processExited(TDEProcess *)), TQ_SLOT(netStatExited()) ); - connect( netstatproc, TQ_SIGNAL(readReady(KProcIO *)), - TQ_SLOT(receivedNetStatOutput(KProcIO *)) ); + connect( netstatproc, TQ_SIGNAL(readReady(TDEProcIO *)), + TQ_SLOT(receivedNetStatOutput(TDEProcIO *)) ); - netstatproc->start(KProcIO::NotifyOnExit) ; + netstatproc->start(TDEProcIO::NotifyOnExit) ; } @@ -3981,7 +3981,7 @@ void tork::netStatExited() } -void tork::receivedNetStatOutput(KProcIO *) +void tork::receivedNetStatOutput(TDEProcIO *) { int pos; TQString item2; @@ -4335,11 +4335,11 @@ void tork::setTorCaption(const TQString& caption) void tork::resetTor() { - KProcIO *catproc = new KProcIO(); + TDEProcIO *catproc = new TDEProcIO(); catproc->setUseShell(TRUE); TQString whichCommand= "tdesu -c 'killall -s HUP tor'"; *catproc<<whichCommand; - catproc->start(KProcIO::NotifyOnExit,TRUE); + catproc->start(TDEProcIO::NotifyOnExit,TRUE); connect( catproc, TQ_SIGNAL(processExited(TDEProcess *)), TQ_SLOT(resetExited()) ); |