summaryrefslogtreecommitdiffstats
path: root/src/firewallsproxies.ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/firewallsproxies.ui.h')
-rw-r--r--src/firewallsproxies.ui.h70
1 files changed, 35 insertions, 35 deletions
diff --git a/src/firewallsproxies.ui.h b/src/firewallsproxies.ui.h
index 751b54c..f9ce6a5 100644
--- a/src/firewallsproxies.ui.h
+++ b/src/firewallsproxies.ui.h
@@ -20,8 +20,8 @@
#include "torkconfig.h"
#include <klocale.h>
-#include <qtooltip.h>
-#include <qpopupmenu.h>
+#include <ntqtooltip.h>
+#include <ntqpopupmenu.h>
#include <kdebug.h>
#include <khtml_part.h>
#include <dom/html_misc.h>
@@ -34,28 +34,28 @@ void FirewallsProxies::init()
filelist = new KHTMLPart();
- QStringList existingMaps = TorkConfig::reachableAddresses();
- QListViewItem *tm;
- for ( QStringList::Iterator it = existingMaps.begin(); it != existingMaps.end(); ++it )
+ TQStringList existingMaps = TorkConfig::reachableAddresses();
+ TQListViewItem *tm;
+ for ( TQStringList::Iterator it = existingMaps.begin(); it != existingMaps.end(); ++it )
{
if ((*it).isEmpty())
continue;
- QString entry = (*it).section(":",0,0);
- QString port = (*it).section(":",1,1);
+ TQString entry = (*it).section(":",0,0);
+ TQString port = (*it).section(":",1,1);
- tm = new QListViewItem(ReachableAddresses,port);
+ tm = new TQListViewItem(ReachableAddresses,port);
}
existingMaps = TorkConfig::bridge();
- for ( QStringList::Iterator it = existingMaps.begin(); it != existingMaps.end(); ++it )
+ for ( TQStringList::Iterator it = existingMaps.begin(); it != existingMaps.end(); ++it )
{
if ((*it).isEmpty())
continue;
- QString entry = (*it).section(":",0,0);
- QString port = (*it).section(" ",0,0).section(":",1,1);
- QString key = (*it).section(" ",1);
+ TQString entry = (*it).section(":",0,0);
+ TQString port = (*it).section(" ",0,0).section(":",1,1);
+ TQString key = (*it).section(" ",1);
- tm = new QListViewItem(Bridge,entry,port,key);
+ tm = new TQListViewItem(Bridge,entry,port,key);
}
if (TorkConfig::currentTorVersion().left(3) == "0.1"){
@@ -65,16 +65,16 @@ void FirewallsProxies::init()
}
void FirewallsProxies::pushAdd_clicked()
{
- new QListViewItem(ReachableAddresses,Port->text());
+ new TQListViewItem(ReachableAddresses,Port->text());
}
-void FirewallsProxies::ReachableAddresses_contextMenuRequested( QListViewItem *, const QPoint &point, int )
+void FirewallsProxies::ReachableAddresses_contextMenuRequested( TQListViewItem *, const TQPoint &point, int )
{
- QPopupMenu *menu = new QPopupMenu( ReachableAddresses );
+ TQPopupMenu *menu = new TQPopupMenu( ReachableAddresses );
menu->clear();
menu->insertItem( "Delete Entry", this,SLOT(slotDeleteEntry()) );
@@ -85,14 +85,14 @@ void FirewallsProxies::ReachableAddresses_contextMenuRequested( QListViewItem *,
void FirewallsProxies::slotDeleteEntry( )
{
- QValueList<QListViewItem*> itemsToDelete;
- QListViewItemIterator it(ReachableAddresses, QListViewItemIterator::Selected);
+ TQValueList<TQListViewItem*> itemsToDelete;
+ TQListViewItemIterator it(ReachableAddresses, TQListViewItemIterator::Selected);
while ( it.current() ) {
itemsToDelete << it.current();
++it;
}
- for ( QValueList<QListViewItem*>::Iterator itt = itemsToDelete.begin();
+ for ( TQValueList<TQListViewItem*>::Iterator itt = itemsToDelete.begin();
itt != itemsToDelete.end(); ++itt ){
delete (*itt);
}
@@ -109,7 +109,7 @@ void FirewallsProxies::kcfg_UseProxy_toggled( bool on)
Proxies->setEnabled(on);
}
-void FirewallsProxies::kcfg_HttpProxyHost_textChanged( const QString & text)
+void FirewallsProxies::kcfg_HttpProxyHost_textChanged( const TQString & text)
{
kcfg_HttpsProxyHost->setText(text);
}
@@ -121,13 +121,13 @@ void FirewallsProxies::kcfg_HttpProxyPort_valueChanged( int text)
}
-void FirewallsProxies::kcfg_HttpProxyAuthenticatorUserName_textChanged( const QString & text)
+void FirewallsProxies::kcfg_HttpProxyAuthenticatorUserName_textChanged( const TQString & text)
{
kcfg_HttpsProxyAuthenticatorUserName->setText(text);
}
-void FirewallsProxies::kcfg_HttpProxyAuthenticatorPassword_textChanged( const QString & text)
+void FirewallsProxies::kcfg_HttpProxyAuthenticatorPassword_textChanged( const TQString & text)
{
kcfg_HttpsProxyAuthenticatorPassword->setText(text);
}
@@ -137,7 +137,7 @@ void FirewallsProxies::kcfg_HttpProxyAuthenticatorPassword_textChanged( const QS
void FirewallsProxies::pushBridgeAdd_clicked()
{
- new QListViewItem(Bridge,BridgeAddress->text(),BridgePort->text(),BridgeKey->text());
+ new TQListViewItem(Bridge,BridgeAddress->text(),BridgePort->text(),BridgeKey->text());
}
@@ -149,9 +149,9 @@ void FirewallsProxies::kcfg_UseBridges_toggled( bool on)
}
-void FirewallsProxies::Bridge_contextMenuRequested( QListViewItem *, const QPoint & point, int )
+void FirewallsProxies::Bridge_contextMenuRequested( TQListViewItem *, const TQPoint & point, int )
{
- QPopupMenu *menu = new QPopupMenu( Bridge );
+ TQPopupMenu *menu = new TQPopupMenu( Bridge );
menu->clear();
menu->insertItem( "Delete Entry", this,SLOT(slotDeleteBridgesEntry()) );
@@ -162,14 +162,14 @@ void FirewallsProxies::Bridge_contextMenuRequested( QListViewItem *, const QPoin
void FirewallsProxies::slotDeleteBridgesEntry( )
{
- QValueList<QListViewItem*> itemsToDelete;
- QListViewItemIterator it(Bridge, QListViewItemIterator::Selected);
+ TQValueList<TQListViewItem*> itemsToDelete;
+ TQListViewItemIterator it(Bridge, TQListViewItemIterator::Selected);
while ( it.current() ) {
itemsToDelete << it.current();
++it;
}
- for ( QValueList<QListViewItem*>::Iterator itt = itemsToDelete.begin();
+ for ( TQValueList<TQListViewItem*>::Iterator itt = itemsToDelete.begin();
itt != itemsToDelete.end(); ++itt ){
delete (*itt);
}
@@ -206,17 +206,17 @@ void FirewallsProxies::parseBridges()
DOM::HTMLElement elem = static_cast<DOM::HTMLElement>( linkNode );
if (elem.getAttribute("id") == "bridges"){
- QStringList bridges = QStringList::split("bridge ",elem.innerText().string());
+ TQStringList bridges = TQStringList::split("bridge ",elem.innerText().string());
- for ( QStringList::Iterator it = bridges.begin(); it != bridges.end(); ++it )
+ for ( TQStringList::Iterator it = bridges.begin(); it != bridges.end(); ++it )
{
if ((*it).isEmpty())
continue;
- QString entry = (*it).section(":",0,0);
- QString port = (*it).section(" ",0,0).section(":",1,1);
- QString key = (*it).section(" ",1);
- if (((QListViewItem*) Bridge->findItem(key,2)) == 0)
- new QListViewItem(Bridge,entry,port,key);
+ TQString entry = (*it).section(":",0,0);
+ TQString port = (*it).section(" ",0,0).section(":",1,1);
+ TQString key = (*it).section(" ",1);
+ if (((TQListViewItem*) Bridge->findItem(key,2)) == 0)
+ new TQListViewItem(Bridge,entry,port,key);
else
KMessageBox::information (this,i18n( "Already have server :%1" ).arg((*it)));
}