diff options
author | Slávek Banko <[email protected]> | 2013-07-27 16:57:53 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-07-27 18:48:46 +0200 |
commit | 7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931 (patch) | |
tree | 4655c7263ca5c64d23d10167cb459dd9cb253815 /src/hiddensrvs.ui.h | |
parent | 88ea2b6cd4382627fb6efca9cc54825aee881d1e (diff) | |
download | tork-7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931.tar.gz tork-7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931.zip |
Initial TQt conversion
Diffstat (limited to 'src/hiddensrvs.ui.h')
-rw-r--r-- | src/hiddensrvs.ui.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/hiddensrvs.ui.h b/src/hiddensrvs.ui.h index 8c2e2f8..fd2930a 100644 --- a/src/hiddensrvs.ui.h +++ b/src/hiddensrvs.ui.h @@ -22,8 +22,8 @@ #include "hidsrvwizard.h" #include <klocale.h> #include <kdebug.h> -#include <qtooltip.h> -#include <qpopupmenu.h> +#include <ntqtooltip.h> +#include <ntqpopupmenu.h> #include <kurl.h> #include <kapplication.h> #include <kprocio.h> @@ -33,13 +33,13 @@ void MyHidden::init() { - QStringList hiddenServices = TorkConfig::hiddenServices(); - for ( QStringList::Iterator it = hiddenServices.begin(); it != hiddenServices.end(); ++it ) + TQStringList hiddenServices = TorkConfig::hiddenServices(); + for ( TQStringList::Iterator it = hiddenServices.begin(); it != hiddenServices.end(); ++it ) { if ((*it).isEmpty()) continue; - new QListViewItem(servicesList,(*it).section("\n",-6,-6),(*it).section("\n",-5,-5), + new TQListViewItem(servicesList,(*it).section("\n",-6,-6),(*it).section("\n",-5,-5), (*it).section("\n",-4,-4),(*it).section("\n",-3,-3),(*it).section("\n",-2,-2),(*it).section("\n",-1)); } @@ -60,12 +60,12 @@ void MyHidden::createService_clicked() if (static_cast<tork*>(this->topLevelWidget()->parentWidget())->connectedToTor()){ HidSrvWizard wizard; wizard.setCaption( i18n( "Hidden Services Wizard" )); - connect( &wizard, SIGNAL(createService(const QString&,const QString&)),this->topLevelWidget()->parent(), SLOT(createService(const QString&,const QString& )) ); - connect( &wizard, SIGNAL(addService(const QString&,const QString&,const QString&,const QString&,const QString&,const QString&)), SLOT(addService(const QString&,const QString&,const QString&,const QString&,const QString&,const QString&)) ); + connect( &wizard, SIGNAL(createService(const TQString&,const TQString&)),this->topLevelWidget()->parent(), SLOT(createService(const TQString&,const TQString& )) ); + connect( &wizard, SIGNAL(addService(const TQString&,const TQString&,const TQString&,const TQString&,const TQString&,const TQString&)), SLOT(addService(const TQString&,const TQString&,const TQString&,const TQString&,const TQString&,const TQString&)) ); wizard.exec(); }else{ - QString caption = i18n("Not Connected To Tor!"); - QString message = i18n("<p>TorK needs to be connected to Tor in order to create a hidden service. <br>" + TQString caption = i18n("Not Connected To Tor!"); + TQString message = i18n("<p>TorK needs to be connected to Tor in order to create a hidden service. <br>" "<b>To create a hidden service, first start TorK!"); KMessageBox::information (this, message, caption); } @@ -76,10 +76,10 @@ void MyHidden::createService_clicked() void MyHidden::updateServices() { if ( servicesList->childCount() > 0 ) { - QStringList v_hiddenServices; - QListViewItemIterator it( servicesList ); + TQStringList v_hiddenServices; + TQListViewItemIterator it( servicesList ); while ( it.current() ) { - QString s_hiddenServices = it.current()->text(0) + "\n" + it.current()->text(1) + TQString s_hiddenServices = it.current()->text(0) + "\n" + it.current()->text(1) + "\n" + it.current()->text(2) + "\n" + it.current()->text(3) + "\n" + it.current()->text(4)+ "\n" + it.current()->text(5); v_hiddenServices.append(s_hiddenServices); @@ -91,20 +91,20 @@ void MyHidden::updateServices() TorkConfig::writeConfig(); } -void MyHidden::addService(const QString& nick,const QString& publicport,const QString& actualaddress,const QString& toraddress,const QString& folder,const QString& servicefolder) +void MyHidden::addService(const TQString& nick,const TQString& publicport,const TQString& actualaddress,const TQString& toraddress,const TQString& folder,const TQString& servicefolder) { - new QListViewItem(servicesList,toraddress,nick,publicport,actualaddress,folder,servicefolder); + new TQListViewItem(servicesList,toraddress,nick,publicport,actualaddress,folder,servicefolder); updateServices(); } void MyHidden::deleteService_clicked() { - QString serviceDetails = servicesList->currentItem()->text(5); - QString serviceAddress = servicesList->currentItem()->text(0); + TQString serviceDetails = servicesList->currentItem()->text(5); + TQString serviceAddress = servicesList->currentItem()->text(0); delete servicesList->currentItem(); - QString caption = i18n("Service deleted!"); - QString message = i18n("<p>The hidden service %1 has been de-configured. <br>" + TQString caption = i18n("Service deleted!"); + TQString message = i18n("<p>The hidden service %1 has been de-configured. <br>" "<b>However you will need to delete the service details in %2 yourself! Please do this!").arg(serviceAddress).arg(serviceDetails); KMessageBox::information (this, message, caption); @@ -118,7 +118,7 @@ void MyHidden::startService_clicked() KProcIO* thttpdproc = new KProcIO(); thttpdproc->setUseShell(TRUE); - QString curpath = (QString) getenv("PATH"); + TQString curpath = (TQString) getenv("PATH"); thttpdproc->setEnvironment("PATH",curpath + ":/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin"); *thttpdproc << "thttpd -p " << servicesList->currentItem()->text(3).section(":",1) @@ -134,8 +134,8 @@ void MyHidden::startService_clicked() void MyHidden::thttpdprocExited(KProcess *proc) { - QString caption; - QString message; + TQString caption; + TQString message; if (proc->exitStatus() == 0){ caption = i18n("Hidden Web Service Started"); @@ -177,11 +177,11 @@ void MyHidden::testService_clicked() { if ((TorkConfig::kDEUsesTor()) && (static_cast<tork*>(this->topLevelWidget()->parentWidget())->connectedToTor())){ - KURL url = QString("http://%1").arg(servicesList->currentItem()->text(0)); + KURL url = TQString("http://%1").arg(servicesList->currentItem()->text(0)); kapp->invokeBrowser(url.url(), "0"); }else{ - QString caption = i18n("Not Connected To Tor!"); - QString message = i18n("<p>Konqueror and TorK need to be using Tor in order to test a hidden service. <br>" + TQString caption = i18n("Not Connected To Tor!"); + TQString message = i18n("<p>Konqueror and TorK need to be using Tor in order to test a hidden service. <br>" "<b>To test a hidden service, first start TorK and enable Konqueror to use Tor!"); KMessageBox::information (this, message, caption); } @@ -194,11 +194,11 @@ void MyHidden::publishService_clicked() if ((TorkConfig::kDEUsesTor()) && (static_cast<tork*>(this->topLevelWidget()->parentWidget())->connectedToTor())){ - KURL url = QString("tor:6sxoyfb3h2nvok2d.onion/tor/FrontPage?action=edit"); + KURL url = TQString("tor:6sxoyfb3h2nvok2d.onion/tor/FrontPage?action=edit"); kapp->invokeBrowser(url.url(), "0"); }else{ - QString caption = i18n("Not Connected To Tor!"); - QString message = i18n("<p>Konqueror and TorK need to be using Tor in order to publish a hidden service. <br>" + TQString caption = i18n("Not Connected To Tor!"); + TQString message = i18n("<p>Konqueror and TorK need to be using Tor in order to publish a hidden service. <br>" "<b>To publish a hidden service, first start TorK and enable Konqueror to use Tor!"); KMessageBox::information (this, message, caption); } |