summaryrefslogtreecommitdiffstats
path: root/src/tork.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-03-22 13:43:44 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-03-22 13:43:44 +0900
commitddecb73086f438148d61910e8fb0a8340d3cf86b (patch)
tree39d3ac86845c6921fd3b497d9a81ac656167090e /src/tork.cpp
parentd012930907802f42dbc4d6452220eaeb4f9c206d (diff)
downloadtork-ddecb73086f438148d61910e8fb0a8340d3cf86b.tar.gz
tork-ddecb73086f438148d61910e8fb0a8340d3cf86b.zip
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/tork.cpp')
-rw-r--r--src/tork.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/tork.cpp b/src/tork.cpp
index 00f97d2..d848ae9 100644
--- a/src/tork.cpp
+++ b/src/tork.cpp
@@ -1276,7 +1276,7 @@ tork::configureSecurity( int id ) //SLOT
cmd += "echo run";
filterproc = new TDEProcIO();
- filterproc->setUseShell(TRUE);
+ 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(TDEProcIO * )),
@@ -1285,7 +1285,7 @@ tork::configureSecurity( int id ) //SLOT
TQ_SLOT(filterExited()) );
*filterproc<<filterCommand;
- filterproc->start(TDEProcIO::NotifyOnExit,TRUE);
+ filterproc->start(TDEProcIO::NotifyOnExit,true);
}
@@ -1934,7 +1934,7 @@ void tork::startTor()
sayWhatImDoing("Starting Tor..");
childproc = new TDEProcIO();
- childproc->setUseShell(TRUE);
+ childproc->setUseShell(true);
TQString torConfFile = writeConf();
@@ -2571,7 +2571,7 @@ TQString tork::doHashPassword()
{
hashproc = new TDEProcIO();
- hashproc->setUseShell(TRUE);
+ hashproc->setUseShell(true);
m_hashedpassword = "";
TQString hashCommand=TQString("tor --hash-password %1").arg(TorkConfig::hashedControlPassword());
@@ -2579,7 +2579,7 @@ TQString tork::doHashPassword()
connect( hashproc, TQ_SIGNAL(readReady(TDEProcIO * )),
TQ_SLOT(processHashProc(TDEProcIO * )) );
- hashproc->start(TDEProcIO::NotifyOnExit,TRUE);
+ hashproc->start(TDEProcIO::NotifyOnExit,true);
while (hashproc->isRunning() && m_hashedpassword.isEmpty())
tdeApp->processEvents();
@@ -2755,7 +2755,7 @@ void tork::startPrivoxy()
}
privoxyproc = new TDEProcIO();
- privoxyproc->setUseShell(TRUE);
+ privoxyproc->setUseShell(true);
TQString curpath = (TQString) getenv("PATH");
privoxyproc->setEnvironment("PATH",curpath +
@@ -3176,7 +3176,7 @@ void tork::copyCookie()
{
TDEProcIO *catproc = new TDEProcIO();
- catproc->setUseShell(TRUE);
+ catproc->setUseShell(true);
TQString whichCommand= TQString(
"tdesu -c '"
"mkdir -p -m 600 %1/.tor;"
@@ -3189,7 +3189,7 @@ void tork::copyCookie()
.arg(getenv("USER")).arg(getenv("HOME"));
*catproc<<whichCommand;
- catproc->start(TDEProcIO::NotifyOnExit,TRUE);
+ catproc->start(TDEProcIO::NotifyOnExit,true);
}
@@ -3945,7 +3945,7 @@ void tork::startNetStat()
return;
netstatproc = new TDEProcIO();
- netstatproc->setUseShell(TRUE);
+ netstatproc->setUseShell(true);
TQString netstatcmd = "netstat -ntucpe";
if (!TorkConfig::netstatLocation().isEmpty())
@@ -4324,7 +4324,7 @@ void tork::setTorCaption(const TQString& caption)
if (caption.left(3) == "0.1"){
m_view->streamList->hideColumn(1);
- m_view->streamList->header()->setResizeEnabled(FALSE, 1);
+ m_view->streamList->header()->setResizeEnabled(false, 1);
m_view->streamList->setResizeMode( TQListView::NoColumn );
m_UnCensorButton->unplug( toolBar("TorToolBar") );
m_SecurityButton->unplug( toolBar("MoreToolBar") );
@@ -4336,10 +4336,10 @@ void tork::setTorCaption(const TQString& caption)
void tork::resetTor()
{
TDEProcIO *catproc = new TDEProcIO();
- catproc->setUseShell(TRUE);
+ catproc->setUseShell(true);
TQString whichCommand= "tdesu -c 'killall -s HUP tor'";
*catproc<<whichCommand;
- catproc->start(TDEProcIO::NotifyOnExit,TRUE);
+ catproc->start(TDEProcIO::NotifyOnExit,true);
connect( catproc, TQ_SIGNAL(processExited(TDEProcess *)),
TQ_SLOT(resetExited()) );