summaryrefslogtreecommitdiffstats
path: root/src/newfirstrunwizard.ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/newfirstrunwizard.ui.h')
-rw-r--r--src/newfirstrunwizard.ui.h122
1 files changed, 61 insertions, 61 deletions
diff --git a/src/newfirstrunwizard.ui.h b/src/newfirstrunwizard.ui.h
index 32d33a4..0480bec 100644
--- a/src/newfirstrunwizard.ui.h
+++ b/src/newfirstrunwizard.ui.h
@@ -24,9 +24,9 @@
#include "torclient.h"
#include <kapplication.h>
-#include <qpushbutton.h>
-#include <qpixmap.h>
-#include <qtimer.h>
+#include <ntqpushbutton.h>
+#include <ntqpixmap.h>
+#include <ntqtimer.h>
#include <stdlib.h>
#include <kstandarddirs.h>
#include <kurl.h>
@@ -38,7 +38,7 @@
#include <kmessagebox.h>
#include <klocale.h>
#include <krun.h>
-#include <qvaluevector.h>
+#include <ntqvaluevector.h>
#include "functions.h"
@@ -46,31 +46,31 @@ TorClient* client;
KProcIO *whichproc;
bool torRunning;
bool privoxyRunning;
-QString tor;
-QString privoxy;
-QString netstat;
-QString torknetstat;
-
-QString OriginalHttpProxy;
-QString OriginalHttpsProxy;
-QString OriginalFtpProxy;
-QString OriginalProxyType;
-
-QString KonqHttpProxy;
-QString KonqHttpsProxy;
-QString KonqFtpProxy;
+TQString tor;
+TQString privoxy;
+TQString netstat;
+TQString torknetstat;
+
+TQString OriginalHttpProxy;
+TQString OriginalHttpsProxy;
+TQString OriginalFtpProxy;
+TQString OriginalProxyType;
+
+TQString KonqHttpProxy;
+TQString KonqHttpsProxy;
+TQString KonqFtpProxy;
uint KonqHttpProxyPort;
uint KonqHttpsProxyPort;
uint KonqFtpProxyPort;
-QString OriginalCookies;
-QString OriginalUseCache;
-QString OriginalSendUserAgent;
-QString OriginalEnableJavascript;
-QString OriginalEnableJava;
-QString OriginalEnablePlugins;
+TQString OriginalCookies;
+TQString OriginalUseCache;
+TQString OriginalSendUserAgent;
+TQString OriginalEnableJavascript;
+TQString OriginalEnableJava;
+TQString OriginalEnablePlugins;
-QValueVector<QString> descriptions(6);
+TQValueVector<TQString> descriptions(6);
void
FirstRunWizard::init()
@@ -128,13 +128,13 @@ FirstRunWizard::init()
serverName->setText("TorKServer");
- KConfig emailConf( QString::fromLatin1("emaildefaults") );
- emailConf.setGroup(QString::fromLatin1("Defaults"));
- QString profile = QString::fromLatin1("PROFILE_");
- profile += emailConf.readEntry(QString::fromLatin1("Profile"), QString::fromLatin1("Default"));
+ KConfig emailConf( TQString::fromLatin1("emaildefaults") );
+ emailConf.setGroup(TQString::fromLatin1("Defaults"));
+ TQString profile = TQString::fromLatin1("PROFILE_");
+ profile += emailConf.readEntry(TQString::fromLatin1("Profile"), TQString::fromLatin1("Default"));
emailConf.setGroup(profile);
- contactMail->setText(emailConf.readEntry(QString::fromLatin1("EmailAddress")));
+ contactMail->setText(emailConf.readEntry(TQString::fromLatin1("EmailAddress")));
guessDataDir();
//aesthetics
@@ -144,7 +144,7 @@ FirstRunWizard::init()
whichproc = new KProcIO();
whichproc->setUseShell(TRUE);
- QString whichCommand="ps -C tor;ps -C privoxy";
+ TQString whichCommand="ps -C tor;ps -C privoxy";
*whichproc<<whichCommand;
@@ -199,7 +199,7 @@ void FirstRunWizard::torStartsManually_toggled( bool state)
void FirstRunWizard::processWhich(KProcIO *whichproc)
{
- QString item = "";
+ TQString item = "";
int pos;
while ((pos = (whichproc->readln(item,true))) != -1) {
@@ -213,9 +213,9 @@ void FirstRunWizard::processWhich(KProcIO *whichproc)
}
void
-FirstRunWizard::showPage( QWidget *w ) //virtual
+FirstRunWizard::showPage( TQWidget *w ) //virtual
{
- QWizard::showPage( w );
+ TQWizard::showPage( w );
if (currentPage() == HowDoesTorStart){
@@ -289,7 +289,7 @@ void
FirstRunWizard::accept()
{
- QString paths;
+ TQString paths;
paths = ":/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin";
paths.replace("::",":");
@@ -354,12 +354,12 @@ FirstRunWizard::accept()
}
TorkConfig::writeConfig();
- QDialog::accept();
+ TQDialog::accept();
}
void
FirstRunWizard::reject()
{
- QDialog::reject();
+ TQDialog::reject();
}
void FirstRunWizard::WizardQuickConfigure_activated( int item)
@@ -424,7 +424,7 @@ FirstRunWizard::saveAnonymousProxySettings()
}
-void FirstRunWizard::TorLocation_textChanged( const QString & text)
+void FirstRunWizard::TorLocation_textChanged( const TQString & text)
{
if (text.contains("tor"))
setNextEnabled ( Locate_Tor,true );
@@ -460,7 +460,7 @@ void FirstRunWizard::testTorAgain_clicked()
void FirstRunWizard::testTor()
{
kdDebug() << "testing tor" << endl;
- QString host;
+ TQString host;
int port;
if (monitorRemote->isChecked()){
host = RemoteTorAddress->text();
@@ -557,7 +557,7 @@ void FirstRunWizard::contactedTor()
testTorAgain->setEnabled(true);
TorkConfig::setGenerateRandomPassword(true);
// if (!monitorRemote->isChecked())
-// QTimer::singleShot( 3000, this, SLOT(examineConfigFiles()) );
+// TQTimer::singleShot( 3000, this, SLOT(examineConfigFiles()) );
}
@@ -567,7 +567,7 @@ void FirstRunWizard::examineConfigFiles()
bool foundone = false;
for (unsigned int index = 0; index != configCandidates->count(); ++index){
- if (QFile::exists(configCandidates->item(index)->text()))
+ if (TQFile::exists(configCandidates->item(index)->text()))
{
appendControlDirective(configCandidates->item(index)->text());
foundone = true;
@@ -596,28 +596,28 @@ void FirstRunWizard::pushButton6_clicked()
void FirstRunWizard::rootifyNetstat()
{
- QString newnetstat = QString(netstat).replace("netstat","torknetstat");
+ TQString newnetstat = TQString(netstat).replace("netstat","torknetstat");
KProcIO *catproc = new KProcIO();
catproc->setUseShell(TRUE);
- QString whichCommand= QString("kdesu -t -c 'cp %1 %2;chmod u+s %3'").arg(netstat).arg(newnetstat).arg(newnetstat);
+ TQString whichCommand= TQString("kdesu -t -c 'cp %1 %2;chmod u+s %3'").arg(netstat).arg(newnetstat).arg(newnetstat);
*catproc<<whichCommand;
catproc->start(KProcIO::NotifyOnExit,TRUE);
}
-void FirstRunWizard::sighupTor(const QString& text)
+void FirstRunWizard::sighupTor(const TQString& text)
{
KProcIO *catproc = new KProcIO();
catproc->setUseShell(TRUE);
- QString whichCommand= QString("killall -s HUP %1").arg(text);
+ TQString whichCommand= TQString("killall -s HUP %1").arg(text);
*catproc<<whichCommand;
catproc->start(KProcIO::NotifyOnExit,TRUE);
}
-void FirstRunWizard::appendControlDirective(const QString& text)
+void FirstRunWizard::appendControlDirective(const TQString& text)
{
int result = KMessageBox::questionYesNo(this,
@@ -630,10 +630,10 @@ void FirstRunWizard::appendControlDirective(const QString& text)
return;
}
- QFile inf(text);
+ TQFile inf(text);
if ( inf.open(IO_WriteOnly | IO_Append) ) {
- QTextStream ts( &inf );
+ TQTextStream ts( &inf );
ts << "ControlPort 9051" << "\n";
@@ -642,10 +642,10 @@ void FirstRunWizard::appendControlDirective(const QString& text)
}else{
- QString directory = KURL(text).directory();
+ TQString directory = KURL(text).directory();
KProcIO *catproc = new KProcIO();
catproc->setUseShell(TRUE);
- QString whichCommand= QString("kdesu -c \"sh -c 'mkdir -p %1;printf \\\"ControlPort 9051\\n\\\""
+ TQString whichCommand= TQString("kdesu -c \"sh -c 'mkdir -p %1;printf \\\"ControlPort 9051\\n\\\""
" >> %2;killall -s HUP tor'\"").arg(directory).arg(text);
*catproc<<whichCommand;
catproc->start(KProcIO::NotifyOnExit,TRUE);
@@ -658,12 +658,12 @@ void FirstRunWizard::appendControlDirective(const QString& text)
void FirstRunWizard::guessDataDir( )
{
- QStringList dataDirCands;
- dataDirCands << QString("%1/.tor/").arg(getenv("HOME"));
- dataDirCands << QString("/var/lib/tor/");
+ TQStringList dataDirCands;
+ dataDirCands << TQString("%1/.tor/").arg(getenv("HOME"));
+ dataDirCands << TQString("/var/lib/tor/");
- for ( QStringList::Iterator it = dataDirCands.begin(); it != dataDirCands.end(); ++it ) {
- QDir inf((*it));
+ for ( TQStringList::Iterator it = dataDirCands.begin(); it != dataDirCands.end(); ++it ) {
+ TQDir inf((*it));
if ( inf.exists() ) {
TorkConfig::setDataDirectory((*it));
return;
@@ -672,7 +672,7 @@ void FirstRunWizard::guessDataDir( )
}
-void FirstRunWizard::RemoteTorAddress_textChanged( const QString & text)
+void FirstRunWizard::RemoteTorAddress_textChanged( const TQString & text)
{
if ((text == "127.0.0.1") || (text == "localhost"))
TorPassword->setEnabled(false);
@@ -692,7 +692,7 @@ void FirstRunWizard::examinePrivoxyConfigFiles()
bool foundone = false;
for (unsigned int index = 0; index != configCandidatesPrivoxy->count(); ++index){
- if (QFile::exists(configCandidatesPrivoxy->item(index)->text()))
+ if (TQFile::exists(configCandidatesPrivoxy->item(index)->text()))
{
appendPrivoxyConfig(configCandidatesPrivoxy->item(index)->text());
foundone = true;
@@ -712,10 +712,10 @@ void FirstRunWizard::examinePrivoxyConfigFiles()
}
}
-void FirstRunWizard::appendPrivoxyConfig(const QString& text)
+void FirstRunWizard::appendPrivoxyConfig(const TQString& text)
{
- QString privoxyConf = QString(
+ TQString privoxyConf = TQString(
"confdir %1\\n"
"logdir .\\n"
"listen-address %2:%3\\n"
@@ -744,10 +744,10 @@ void FirstRunWizard::appendPrivoxyConfig(const QString& text)
return;
}
- QFile inf(text);
+ TQFile inf(text);
if ( inf.open(IO_WriteOnly | IO_Append) ) {
- QTextStream ts( &inf );
+ TQTextStream ts( &inf );
ts << privoxyConf;
@@ -758,7 +758,7 @@ void FirstRunWizard::appendPrivoxyConfig(const QString& text)
KProcIO *catproc = new KProcIO();
catproc->setUseShell(TRUE);
- QString whichCommand= QString("kdesu -c \"sh -c 'printf \\\"%1\\\""
+ TQString whichCommand= TQString("kdesu -c \"sh -c 'printf \\\"%1\\\""
" >> %2;killall -s HUP privoxy'\"")
.arg(privoxyConf)
.arg(text);