diff options
Diffstat (limited to 'src/hidsrvwizard.ui.h')
-rw-r--r-- | src/hidsrvwizard.ui.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/hidsrvwizard.ui.h b/src/hidsrvwizard.ui.h index 685f01f..3cb31a8 100644 --- a/src/hidsrvwizard.ui.h +++ b/src/hidsrvwizard.ui.h @@ -20,12 +20,12 @@ #include "tork.h" #include "functions.h" -#include <qtimer.h> +#include <ntqtimer.h> #include <kmessagebox.h> #include <cstdlib> bool local; -QString thttpd; +TQString thttpd; void HidSrvWizard::init() @@ -36,11 +36,11 @@ void HidSrvWizard::init() setAppropriate ( ServiceName, true ); setAppropriate ( RedirectService, true ); - QString location = getenv("HOME"); + TQString location = getenv("HOME"); location += "/.tork"; - QDir torkdir(location); + TQDir torkdir(location); if (!torkdir.exists() && !torkdir.mkdir(location)){ - KMessageBox::information (this,QString("Couldn't create directory: %1. Check the permissions!").arg(location)); + KMessageBox::information (this,TQString("Couldn't create directory: %1. Check the permissions!").arg(location)); reject(); } @@ -79,18 +79,18 @@ void HidSrvWizard::downloadThttpd_clicked() void -HidSrvWizard::showPage( QWidget *w ) //virtual +HidSrvWizard::showPage( TQWidget *w ) //virtual { - QWizard::showPage( w ); + TQWizard::showPage( w ); if (currentPage() == this->GatherDetails){ if (local) - emit createService(QString("%1/.tork/%2/").arg(getenv("HOME")).arg(Nick->text()), QString("%1 localhost:%2").arg(WebPort->text()).arg(localWebPort->text())); + emit createService(TQString("%1/.tork/%2/").arg(getenv("HOME")).arg(Nick->text()), TQString("%1 localhost:%2").arg(WebPort->text()).arg(localWebPort->text())); else - emit createService(QString("%1/.tork/%2/").arg(getenv("HOME")).arg(Nick->text()), QString("%1 %2:%3").arg(NonWebPort->text()).arg(RedirectAddress->text()).arg(RedirectPort->text())); + emit createService(TQString("%1/.tork/%2/").arg(getenv("HOME")).arg(Nick->text()), TQString("%1 %2:%3").arg(NonWebPort->text()).arg(RedirectAddress->text()).arg(RedirectPort->text())); GatheringDetailsText->setText("Please wait while Tor attempts to create the service."); - QTimer::singleShot( 3000, this, SLOT(checkServiceDetails()) ); + TQTimer::singleShot( 3000, this, SLOT(checkServiceDetails()) ); finishButton()->setEnabled(false); } @@ -100,8 +100,8 @@ void HidSrvWizard::checkServiceDetails() { - QString hostname; - QFile inf(QString("%1/.tork/%2/hostname").arg(getenv("HOME")).arg(Nick->text())); + TQString hostname; + TQFile inf(TQString("%1/.tork/%2/hostname").arg(getenv("HOME")).arg(Nick->text())); if ( inf.open(IO_ReadOnly) ) { inf.readLine(hostname,50); inf.close(); @@ -114,7 +114,7 @@ HidSrvWizard::checkServiceDetails() cancelButton()->setEnabled(false); - QString serviceDetails = "Hidden Service Hostname: "; + TQString serviceDetails = "Hidden Service Hostname: "; serviceDetails += hostname; serviceDetails += "<br>"; if (local){ @@ -126,7 +126,7 @@ HidSrvWizard::checkServiceDetails() serviceDetails += "<br>"; serviceDetails += "Tor Facing Port:"; serviceDetails += localWebPort->text(); - emit addService(Nick->text(),WebPort->text(),QString("localhost:%1").arg(localWebPort->text()),hostname,FilesToServe->url(),QString("%1/.tork/%2/").arg(getenv("HOME")).arg(Nick->text())); + emit addService(Nick->text(),WebPort->text(),TQString("localhost:%1").arg(localWebPort->text()),hostname,FilesToServe->url(),TQString("%1/.tork/%2/").arg(getenv("HOME")).arg(Nick->text())); }else{ serviceDetails += "Redirecting to:"; @@ -138,7 +138,7 @@ HidSrvWizard::checkServiceDetails() serviceDetails += "Serving Tor Network with Port:"; serviceDetails += NonWebPort->text(); serviceDetails += "<br>"; - emit addService(Nick->text(),NonWebPort->text(),QString("%1:%2").arg(RedirectAddress->text()).arg(RedirectPort->text()),hostname,"",QString("%1/.tork/%2/").arg(getenv("HOME")).arg(Nick->text())); + emit addService(Nick->text(),NonWebPort->text(),TQString("%1:%2").arg(RedirectAddress->text()).arg(RedirectPort->text()),hostname,"",TQString("%1/.tork/%2/").arg(getenv("HOME")).arg(Nick->text())); } @@ -151,13 +151,13 @@ HidSrvWizard::checkServiceDetails() void HidSrvWizard::accept() { - QDialog::accept(); + TQDialog::accept(); } void HidSrvWizard::reject() { - QDialog::reject(); + TQDialog::reject(); } |