From a915aa74dc1acdd12de97f9d95a848b3b2a17abb Mon Sep 17 00:00:00 2001 From: Slávek Banko Date: Sat, 27 Jul 2013 17:13:06 +0200 Subject: Initial TDE conversion --- src/Makefile.am | 2 +- src/arkollon/Makefile.am | 2 +- src/arkollon/torkarkollon.cpp | 2 +- src/arkollon/wizard.cpp | 4 +- src/configdialog.cpp | 22 +-- src/configdialog.h | 6 +- src/crashhandler.cpp | 10 +- src/dndlistview.cpp | 2 +- src/firewallsproxies.ui.h | 10 +- src/functions.cpp | 12 +- src/hiddensrvs.ui | 2 +- src/hiddensrvs.ui.h | 12 +- src/hidsrvwizard.ui.h | 2 +- src/hitwidget.cpp | 12 +- src/kerrylabel.cpp | 6 +- src/konqplugin/Makefile.am | 12 +- src/konqplugin/tork_plug_in.cpp | 56 +++--- src/konqplugin/tork_plug_in.desktop | 22 +-- src/konqplugin/tork_plug_in.h | 8 +- src/konqplugin/tork_plug_in.rc | 2 +- src/kwidgetlistbox.cpp | 14 +- src/likeback.cpp | 76 ++++---- src/likeback.h | 36 ++-- src/likeback_private.h | 6 +- src/main.cpp | 24 +-- src/maxmin.ui.h | 4 +- src/mixminion.ui | 4 +- src/mixminion.ui.h | 8 +- src/newfirstrunwizard.ui.h | 32 ++-- src/newstreamosd.cpp | 18 +- src/newstreamosd.h | 6 +- src/paranoia.ui.h | 2 +- src/quickconfig.ui.h | 8 +- src/running.ui.h | 2 +- src/server.ui.h | 2 +- src/serverwizard.ui.h | 4 +- src/testprivacyproxy.cpp | 2 +- src/testprivacyproxy.h | 2 +- src/tor_ioslave/Makefile.am | 10 +- src/tor_ioslave/torioslave.cpp | 32 ++-- src/tor_ioslave/torioslave.h | 10 +- src/tor_ioslave/torioslave.protocol | 26 +-- src/torclient.cpp | 12 +- src/torclient.h | 10 +- src/tork.cpp | 306 ++++++++++++++++----------------- src/tork.desktop | 2 +- src/tork.h | 150 ++++++++-------- src/tork.kcfgc | 2 +- src/tork_downloadwithfirefox.desktop | 2 +- src/tork_downloadwithkonqueror.desktop | 2 +- src/tork_downloadwithopera.desktop | 2 +- src/torkactivelabel.cpp | 2 +- src/torkapplet/Makefile.am | 2 +- src/torkapplet/tork_mnu.cpp | 12 +- src/torkapplet/torkmenu.desktop | 4 +- src/torkconfig.kcfgc | 2 +- src/torkview.cpp | 48 +++--- src/torkview_base.ui | 2 +- src/torkview_base.ui.h | 16 +- src/torservers.ui.h | 2 +- src/trayicon.cpp | 8 +- src/trayicon.h | 4 +- src/update.cpp | 30 ++-- src/update.h | 14 +- src/upnp/exitoperation.cpp | 6 +- src/upnp/exitoperation.h | 8 +- src/upnp/upnpmcastsocket.cpp | 4 +- src/upnp/upnprouter.cpp | 24 +-- src/upnp/upnprouter.h | 8 +- src/upnpmanager.cpp | 4 +- src/usability.ui.h | 2 +- 71 files changed, 612 insertions(+), 612 deletions(-) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index 07decfb..0c40e0c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -28,7 +28,7 @@ METASOURCES = AUTO tork_LDFLAGS = $(KDE_RPATH) $(all_libraries) # the libraries to link against. -tork_LDADD = $(LIB_KIO) $(LIB_KFILE) $(LIB_KHTML) $(geoiplib) $(LIB_KDEUI) $(LIB_KDECORE) -lDCOP $(LIB_QT) \ +tork_LDADD = $(LIB_KIO) $(LIB_KFILE) $(LIB_TDEHTML) $(geoiplib) $(LIB_TDEUI) $(LIB_TDECORE) -lDCOP $(LIB_QT) \ upnp/libktupnp.la $(CRYPTO_LIBS) # which sources should be compiled for tork diff --git a/src/arkollon/Makefile.am b/src/arkollon/Makefile.am index ef01542..e0af4ce 100644 --- a/src/arkollon/Makefile.am +++ b/src/arkollon/Makefile.am @@ -26,7 +26,7 @@ torkarkollon_LDFLAGS = $(all_libraries) LIBS = #torkarkollon_LDFLAGS = #torkarkollon_LDADD = $(LIB_QT) $(LIB_KFILE) -torkarkollon_LDADD = $(LIB_KFILE) $(LIB_QT) $(LIB_KDECORE) +torkarkollon_LDADD = $(LIB_KFILE) $(LIB_QT) $(LIB_TDECORE) # let automoc handle all of the meta source files (moc) METASOURCES = AUTO diff --git a/src/arkollon/torkarkollon.cpp b/src/arkollon/torkarkollon.cpp index fa4a3d4..c4e6c30 100644 --- a/src/arkollon/torkarkollon.cpp +++ b/src/arkollon/torkarkollon.cpp @@ -39,7 +39,7 @@ int main(int argc, char *argv[]) // Check if we're root if (getuid() != 0) { - TQString command = "kdesu -t -i tork -n -c \""; + TQString command = "tdesu -t -i tork -n -c \""; for (int i=0 ; iaddArgument("kde-config"); + kdeDirProcess->addArgument("tde-config"); kdeDirProcess->addArgument("--prefix"); if (!kdeDirProcess->start()) getInstalledComponents(); @@ -923,7 +923,7 @@ void Wizard::errorOccured() TQString Wizard::sub(TQString s) { TQString tmp = s; - tmp.replace(TQRegExp("\\$KDEDIR"), kdeDir); + tmp.replace(TQRegExp("\\$TDEDIR"), kdeDir); tmp.replace(TQRegExp("\\$HOMEDIR"), TQDir::homeDirPath()); tmp.replace(TQRegExp("~"), TQDir::homeDirPath()); tmp.replace(TQRegExp("\\$PREFIX"), "/usr/local"); diff --git a/src/configdialog.cpp b/src/configdialog.cpp index 341ab58..c53930f 100644 --- a/src/configdialog.cpp +++ b/src/configdialog.cpp @@ -67,23 +67,23 @@ email : markey@web.de #include #include -#include //kapp +#include //kapp #include #include #include -#include +#include #include #include #include -#include -#include +#include +#include ////////////////////////////////////////////////////////////////////////////////////////// // PUBLIC ////////////////////////////////////////////////////////////////////////////////////////// -TorkConfigDialog::TorkConfigDialog( TQWidget *parent, const char* name, KConfigSkeleton *config ) - : KConfigDialog( parent, name, config ),m_parent(parent) +TorkConfigDialog::TorkConfigDialog( TQWidget *parent, const char* name, TDEConfigSkeleton *config ) + : TDEConfigDialog( parent, name, config ),m_parent(parent) { setWFlags( WDestructiveClose ); @@ -137,7 +137,7 @@ TorkConfigDialog::TorkConfigDialog( TQWidget *parent, const char* name, KConfigS static_cast(label)->setPixmap( TQMessageBox::standardIcon( TQMessageBox::Information ) ); delete list; - //stop KFont Requesters getting stupidly large + //stop TDEFont Requesters getting stupidly large list = queryList( "TQLabel", "m_sampleLabel" ); for( TQObject *label = list->first(); label; label = list->next() ) static_cast(label)->setMaximumWidth( 250 ); @@ -229,19 +229,19 @@ void TorkConfigDialog::showPage( const TQCString& page ) { for( uint index = 0; index < m_pageList.count(); index++ ) { if ( m_pageList[index]->name() == page ) { - KConfigDialog::showPage( index ); + TDEConfigDialog::showPage( index ); return; } } } -/** Reimplemented from KConfigDialog */ +/** Reimplemented from TDEConfigDialog */ void TorkConfigDialog::addPage( TQWidget *page, const TQString &itemName, const TQString &pixmapName, const TQString &header, bool manage ) { // Add the widget pointer to our list, for later reference m_pageList << page; - KConfigDialog::addPage( page, itemName, pixmapName, header, manage ); + TDEConfigDialog::addPage( page, itemName, pixmapName, header, manage ); } @@ -258,7 +258,7 @@ void TorkConfigDialog::updateCustomSettings() //When settings are changed in the config dialog, this is called //to update all possibly changed values and apply them to Tor. - //TQListViews need to be handled outside of kconfigxt + //TQListViews need to be handled outside of tdeconfigxt TorkConfig::setQuickConfigure( m_quickconfig->QuickConfigure->currentItem() ); TorkConfig::setAccountingStart(m_myserver->AccountingStart->currentText()); diff --git a/src/configdialog.h b/src/configdialog.h index 45d4824..5e310b9 100644 --- a/src/configdialog.h +++ b/src/configdialog.h @@ -21,18 +21,18 @@ email : markey@web.de #include #include -#include +#include class TQComboBox; class TQGroupBox; class TQVBox; -class TorkConfigDialog : public KConfigDialog +class TorkConfigDialog : public TDEConfigDialog { Q_OBJECT public: - TorkConfigDialog( TQWidget *parent, const char* name, KConfigSkeleton *config ); + TorkConfigDialog( TQWidget *parent, const char* name, TDEConfigSkeleton *config ); ~TorkConfigDialog(); void addPage( TQWidget *page, const TQString &itemName, const TQString &pixmapName, diff --git a/src/crashhandler.cpp b/src/crashhandler.cpp index 7505f6a..98b3bd6 100644 --- a/src/crashhandler.cpp +++ b/src/crashhandler.cpp @@ -14,11 +14,11 @@ #include "torkconfig.h" #include "crashhandler.h" -#include //invokeMailer() +#include //invokeMailer() #include //kdBacktrace() -#include -#include -#include +#include +#include +#include #include #include @@ -95,7 +95,7 @@ namespace torK "Version: " TORK_VERSION "\n" "Build date: " __DATE__ "\n" "CC version: " __VERSION__ "\n" //assuming we're using GCC - "KDElibs: " KDE_VERSION_STRING "\n" + "KDElibs: " TDE_VERSION_STRING "\n" "TQt: %2\n" "CPU count: %6\n"; diff --git a/src/dndlistview.cpp b/src/dndlistview.cpp index a218c9e..65fe852 100644 --- a/src/dndlistview.cpp +++ b/src/dndlistview.cpp @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include #include diff --git a/src/firewallsproxies.ui.h b/src/firewallsproxies.ui.h index f9ce6a5..77f5ff8 100644 --- a/src/firewallsproxies.ui.h +++ b/src/firewallsproxies.ui.h @@ -19,20 +19,20 @@ ***************************************************************************/ #include "torkconfig.h" -#include +#include #include #include #include -#include +#include #include -#include +#include -KHTMLPart *filelist; +TDEHTMLPart *filelist; void FirewallsProxies::init() { - filelist = new KHTMLPart(); + filelist = new TDEHTMLPart(); TQStringList existingMaps = TorkConfig::reachableAddresses(); TQListViewItem *tm; diff --git a/src/functions.cpp b/src/functions.cpp index 694f905..cf0ec8d 100644 --- a/src/functions.cpp +++ b/src/functions.cpp @@ -21,8 +21,8 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #include -#include -#include +#include +#include #include #include #include @@ -39,7 +39,7 @@ namespace tk TQString BytesToString(Uint64 bytes,int precision) { - KLocale* loc = KGlobal::locale(); + TDELocale* loc = TDEGlobal::locale(); if (bytes >= 1024 * 1024 * 1024) return i18n("%1 GB").arg(loc->formatNumber(bytes / TO_GIG,precision < 0 ? 2 : precision)); else if (bytes >= 1024*1024) @@ -52,7 +52,7 @@ namespace tk TQString BytesPerSecToString(double bytes,int precision) { - KLocale* loc = KGlobal::locale(); + TDELocale* loc = TDEGlobal::locale(); if (bytes >= 1024 * 1024 * 1024) return i18n("%1 GB/s").arg(loc->formatNumber(bytes / TO_GIG,precision < 0 ? 2 : precision)); else if (bytes >= 1024*1024) @@ -65,14 +65,14 @@ namespace tk TQString KBytesPerSecToString(double speed,int precision) { - KLocale* loc = KGlobal::locale(); + TDELocale* loc = TDEGlobal::locale(); return i18n("%1 KB/s").arg(loc->formatNumber(speed,precision)); } TQString DurationToString(Uint32 nsecs) { - KLocale* loc = KGlobal::locale(); + TDELocale* loc = TDEGlobal::locale(); TQTime t; int ndays = nsecs / 86400; t = t.addSecs(nsecs % 86400); diff --git a/src/hiddensrvs.ui b/src/hiddensrvs.ui index cb86f1c..d9c2f31 100644 --- a/src/hiddensrvs.ui +++ b/src/hiddensrvs.ui @@ -226,7 +226,7 @@ addService( const TQString & nick, const TQString & publicport, const TQString & actualaddress, const TQString & toraddress, const TQString & folder, const TQString & servicefolder ) deleteService_clicked() startService_clicked() - thttpdprocExited(KProcess *proc) + thttpdprocExited(TDEProcess *proc) servicesList_selectionChanged() startAllServices_clicked() testService_clicked() diff --git a/src/hiddensrvs.ui.h b/src/hiddensrvs.ui.h index fd2930a..e2c10aa 100644 --- a/src/hiddensrvs.ui.h +++ b/src/hiddensrvs.ui.h @@ -20,14 +20,14 @@ #include "torkconfig.h" #include "tork.h" #include "hidsrvwizard.h" -#include +#include #include #include #include #include -#include +#include #include -#include +#include #include void MyHidden::init() @@ -125,14 +125,14 @@ void MyHidden::startService_clicked() << "-h " << servicesList->currentItem()->text(3).section(":",0,0) << "-d " << servicesList->currentItem()->text(4); - connect( thttpdproc, SIGNAL(processExited(KProcess *)), - SLOT(thttpdprocExited(KProcess *)) ); + connect( thttpdproc, SIGNAL(processExited(TDEProcess *)), + SLOT(thttpdprocExited(TDEProcess *)) ); thttpdproc->start(KProcIO::NotifyOnExit) ; } -void MyHidden::thttpdprocExited(KProcess *proc) +void MyHidden::thttpdprocExited(TDEProcess *proc) { TQString caption; TQString message; diff --git a/src/hidsrvwizard.ui.h b/src/hidsrvwizard.ui.h index 3cb31a8..2cb1090 100644 --- a/src/hidsrvwizard.ui.h +++ b/src/hidsrvwizard.ui.h @@ -21,7 +21,7 @@ #include "tork.h" #include "functions.h" #include -#include +#include #include bool local; diff --git a/src/hitwidget.cpp b/src/hitwidget.cpp index f62d68e..dfd8c7c 100644 --- a/src/hitwidget.cpp +++ b/src/hitwidget.cpp @@ -24,9 +24,9 @@ #include #include #include -#include +#include #include -#include +#include #include /*#include */ #include @@ -59,9 +59,9 @@ void HitWidget::setIcon(const TQString name) { m_icon = name; if (m_collapsed) - icon->setPixmap(KGlobal::iconLoader()->loadIcon(m_icon, KIcon::NoGroup, KIcon::SizeSmall)); + icon->setPixmap(TDEGlobal::iconLoader()->loadIcon(m_icon, TDEIcon::NoGroup, TDEIcon::SizeSmall)); else - icon->setPixmap(KGlobal::iconLoader()->loadIcon(m_icon, KIcon::NoGroup, KIcon::SizeLarge)); + icon->setPixmap(TDEGlobal::iconLoader()->loadIcon(m_icon, TDEIcon::NoGroup, TDEIcon::SizeLarge)); } void HitWidget::toggleCollapsed() @@ -77,7 +77,7 @@ void HitWidget::setCollapsed(bool collapsed) if (collapsed) { toolButton1->setEnabled(true); m_was_collapsed = true; - icon->setPixmap(KGlobal::iconLoader()->loadIcon(m_icon, KIcon::NoGroup, KIcon::SizeSmall)); + icon->setPixmap(TDEGlobal::iconLoader()->loadIcon(m_icon, TDEIcon::NoGroup, TDEIcon::SizeSmall)); #if 0 i18n("Expand"); i18n("Collapse"); @@ -94,7 +94,7 @@ void HitWidget::setCollapsed(bool collapsed) m_collapsed = collapsed; } else { - icon->setPixmap(KGlobal::iconLoader()->loadIcon(m_icon, KIcon::NoGroup, KIcon::SizeLarge)); + icon->setPixmap(TDEGlobal::iconLoader()->loadIcon(m_icon, TDEIcon::NoGroup, TDEIcon::SizeLarge)); toolButton1->setIconSet(SmallIconSet("2uparrow")); description->setHidden(false); properties->setHidden(false); diff --git a/src/kerrylabel.cpp b/src/kerrylabel.cpp index 9c85025..f758ffc 100644 --- a/src/kerrylabel.cpp +++ b/src/kerrylabel.cpp @@ -22,7 +22,7 @@ #include "hitwidget.h" #include -#include +#include #include #include /* @@ -59,7 +59,7 @@ void KerryLabel::mousePressEvent(TQMouseEvent* ev) void KerryLabel::mouseMoveEvent(TQMouseEvent* ev) { if (dragInfo.state == diPending) { - int distance = KGlobalSettings::dndEventDelay(); + int distance = TDEGlobalSettings::dndEventDelay(); if ( ev->x() > dragInfo.start.x() + distance || ev->x() < dragInfo.start.x() - distance || ev->y() > dragInfo.start.y() + distance || ev->y() < dragInfo.start.y() - distance) { doDrag(); @@ -94,7 +94,7 @@ void KerryLabel::doDrag() // _items.append( &item ); // // const KURL kurl(url()); -// KActionCollection act(this); +// TDEActionCollection act(this); // // KonqPopupMenu * popupMenu = new KonqPopupMenu( KonqBookmarkManager::self(), _items, // kurl, act, (KNewMenu*)NULL, this, diff --git a/src/konqplugin/Makefile.am b/src/konqplugin/Makefile.am index a00dedd..49b67ce 100644 --- a/src/konqplugin/Makefile.am +++ b/src/konqplugin/Makefile.am @@ -1,14 +1,14 @@ INCLUDES = $(all_includes) -kde_module_LTLIBRARIES = khtml_tork.la +kde_module_LTLIBRARIES = tdehtml_tork.la -khtml_tork_la_METASOURCES = AUTO -khtml_tork_la_SOURCES = tork_plug_in.cpp -khtml_tork_la_LIBADD = $(LIB_KHTML) -khtml_tork_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) -module +tdehtml_tork_la_METASOURCES = AUTO +tdehtml_tork_la_SOURCES = tork_plug_in.cpp +tdehtml_tork_la_LIBADD = $(LIB_TDEHTML) +tdehtml_tork_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) -module KDE_ICON = AUTO part_DATA = tork_plug_in.rc tork_plug_in.desktop -partdir = $(kde_datadir)/khtml/kpartplugins +partdir = $(kde_datadir)/tdehtml/kpartplugins diff --git a/src/konqplugin/tork_plug_in.cpp b/src/konqplugin/tork_plug_in.cpp index 5064279..9d1f825 100644 --- a/src/konqplugin/tork_plug_in.cpp +++ b/src/konqplugin/tork_plug_in.cpp @@ -40,21 +40,21 @@ #include #include #include -#include +#include #include -#include -#include +#include +#include #include -#include -#include -#include +#include +#include +#include #include #include #include #include -#include +#include #include @@ -62,32 +62,32 @@ Tork_plug_in::Tork_plug_in( TQObject* parent, const char* name ) : Plugin( parent, name ) { - TQPixmap pix = KGlobal::iconLoader()->loadIcon("tork", - KIcon::MainToolbar); - KActionMenu *menu = new KActionMenu( i18n("Anonymity Manager"), pix, + TQPixmap pix = TDEGlobal::iconLoader()->loadIcon("tork", + TDEIcon::MainToolbar); + TDEActionMenu *menu = new TDEActionMenu( i18n("Anonymity Manager"), pix, actionCollection(), "tork_menu" ); menu->setDelayed( false ); connect( menu->popupMenu(), SIGNAL( aboutToShow() ), SLOT( showPopup() )); - m_paToggleKDE=new KAction(i18n("Anonymize KDE"), - KGlobal::iconLoader()->loadIconSet("tork_konqueroroff", KIcon::Small), - KShortcut(), + m_paToggleKDE=new TDEAction(i18n("Anonymize KDE"), + TDEGlobal::iconLoader()->loadIconSet("tork_konqueroroff", TDEIcon::Small), + TDEShortcut(), this, SLOT(toggleKDE()), actionCollection(), "tork_konqueroron" ); menu->insert( m_paToggleKDE ); - KAction *m_firefox=new KAction(i18n("Re-Open Anonymously with Firefox"), - KGlobal::iconLoader()->loadIconSet("tork_firefox", KIcon::Small), - KShortcut(), + TDEAction *m_firefox=new TDEAction(i18n("Re-Open Anonymously with Firefox"), + TDEGlobal::iconLoader()->loadIconSet("tork_firefox", TDEIcon::Small), + TDEShortcut(), this, SLOT(openWithFirefox()), actionCollection(), "tork_firefox" ); menu->insert( m_firefox ); - KAction *m_opera=new KAction(i18n("Re-Open Anonymously with Opera"), - KGlobal::iconLoader()->loadIconSet("tork_opera", KIcon::Small), - KShortcut(), + TDEAction *m_opera=new TDEAction(i18n("Re-Open Anonymously with Opera"), + TDEGlobal::iconLoader()->loadIconSet("tork_opera", TDEIcon::Small), + TDEShortcut(), this, SLOT(openWithOpera()), actionCollection(), "tork_opera" ); menu->insert( m_opera ); @@ -115,12 +115,12 @@ void Tork_plug_in::showPopup() } if (anonymized){ - m_paToggleKDE->setIconSet( KGlobal::iconLoader()->loadIconSet("tork_konqueroroff", - KIcon::Small) ); + m_paToggleKDE->setIconSet( TDEGlobal::iconLoader()->loadIconSet("tork_konqueroroff", + TDEIcon::Small) ); m_paToggleKDE->setText( "De-Anonymize KDE" ); }else{ - m_paToggleKDE->setIconSet( KGlobal::iconLoader()->loadIconSet("tork_konqueroron", - KIcon::Small) ); + m_paToggleKDE->setIconSet( TDEGlobal::iconLoader()->loadIconSet("tork_konqueroron", + TDEIcon::Small) ); m_paToggleKDE->setText( "Anonymize KDE" ); } } @@ -141,7 +141,7 @@ void Tork_plug_in::openWithOpera() void Tork_plug_in::openWithBrowser(const TQString &browser) { - KHTMLPart *htmlPart = static_cast( parent() ); + TDEHTMLPart *htmlPart = static_cast( parent() ); TQString url = htmlPart->toplevelURL().url(); if (p_dcopServer->isApplicationRegistered ("tork")){ @@ -168,7 +168,7 @@ void Tork_plug_in::toggleKDE() KPluginFactory::KPluginFactory( TQObject* parent, const char* name ) : KLibFactory( parent, name ) { - s_instance = new KInstance("KPluginFactory"); + s_instance = new TDEInstance("KPluginFactory"); } TQObject* KPluginFactory::createObject( TQObject* parent, const char* name, const char*, const TQStringList & ) @@ -184,14 +184,14 @@ KPluginFactory::~KPluginFactory() extern "C" { - KDE_EXPORT void* init_khtml_tork() + KDE_EXPORT void* init_tdehtml_tork() { - KGlobal::locale()->insertCatalogue("tork"); + TDEGlobal::locale()->insertCatalogue("tork"); return new KPluginFactory; } } -KInstance* KPluginFactory::s_instance = 0L; +TDEInstance* KPluginFactory::s_instance = 0L; #include "tork_plug_in.moc" diff --git a/src/konqplugin/tork_plug_in.desktop b/src/konqplugin/tork_plug_in.desktop index 4b2c518..8355388 100644 --- a/src/konqplugin/tork_plug_in.desktop +++ b/src/konqplugin/tork_plug_in.desktop @@ -1,15 +1,15 @@ [Desktop Entry] -X-KDE-Library=khtml_tork -X-KDE-PluginInfo-Author=Robert Hogan -X-KDE-PluginInfo-Email=robert@roberthogan.net -X-KDE-PluginInfo-Name=tork -X-KDE-PluginInfo-Version=3.4 -X-KDE-PluginInfo-Website=http://tork.sourceforge.net -X-KDE-PluginInfo-Category=Tools -X-KDE-PluginInfo-Depends= -X-KDE-PluginInfo-License=GPL -X-KDE-PluginInfo-EnabledByDefault=true +X-TDE-Library=tdehtml_tork +X-TDE-PluginInfo-Author=Robert Hogan +X-TDE-PluginInfo-Email=robert@roberthogan.net +X-TDE-PluginInfo-Name=tork +X-TDE-PluginInfo-Version=3.4 +X-TDE-PluginInfo-Website=http://tork.sourceforge.net +X-TDE-PluginInfo-Category=Tools +X-TDE-PluginInfo-Depends= +X-TDE-PluginInfo-License=GPL +X-TDE-PluginInfo-EnabledByDefault=true Name=TorK Type=Application Comment=Anonymity Manager -Icon=khtml_tork +Icon=tdehtml_tork diff --git a/src/konqplugin/tork_plug_in.h b/src/konqplugin/tork_plug_in.h index 63b9216..93d2069 100644 --- a/src/konqplugin/tork_plug_in.h +++ b/src/konqplugin/tork_plug_in.h @@ -38,19 +38,19 @@ #ifndef __plugin_tork_plug_in_h #define __plugin_tork_plug_in_h -#include +#include #include #include #include -class KInstance; +class TDEInstance; class Tork_plug_in : public KParts::Plugin { Q_OBJECT public: Tork_plug_in( TQObject* parent = 0, const char* name = 0 ); - KAction *m_paToggleKDE ; + TDEAction *m_paToggleKDE ; DCOPClient* p_dcopServer; virtual ~Tork_plug_in(); @@ -75,7 +75,7 @@ public: const TQStringList &args = TQStringList() ); private: - static KInstance* s_instance; + static TDEInstance* s_instance; }; #endif diff --git a/src/konqplugin/tork_plug_in.rc b/src/konqplugin/tork_plug_in.rc index 8b803b5..5a61d95 100644 --- a/src/konqplugin/tork_plug_in.rc +++ b/src/konqplugin/tork_plug_in.rc @@ -1,5 +1,5 @@ - + &Tools diff --git a/src/kwidgetlistbox.cpp b/src/kwidgetlistbox.cpp index fd4ec78..23300de 100644 --- a/src/kwidgetlistbox.cpp +++ b/src/kwidgetlistbox.cpp @@ -19,7 +19,7 @@ #include "kwidgetlistbox.h" #include -#include +#include #include KWidgetListbox::KWidgetListbox(TQWidget *parent, const char *name) @@ -177,19 +177,19 @@ void KWidgetListbox::setItemColors(int index, bool even) if(index == selected()) { - itm->setPaletteBackgroundColor(KGlobalSettings::highlightColor()); - itm->setPaletteForegroundColor(KGlobalSettings::highlightedTextColor()); + itm->setPaletteBackgroundColor(TDEGlobalSettings::highlightColor()); + itm->setPaletteForegroundColor(TDEGlobalSettings::highlightedTextColor()); } else if(even) { - itm->setPaletteBackgroundColor(KGlobalSettings::baseColor()); - itm->setPaletteForegroundColor(KGlobalSettings::textColor()); + itm->setPaletteBackgroundColor(TDEGlobalSettings::baseColor()); + itm->setPaletteForegroundColor(TDEGlobalSettings::textColor()); } else { itm->setPaletteBackgroundColor( - KGlobalSettings::alternateBackgroundColor()); - itm->setPaletteForegroundColor(KGlobalSettings::textColor()); + TDEGlobalSettings::alternateBackgroundColor()); + itm->setPaletteForegroundColor(TDEGlobalSettings::textColor()); } } diff --git a/src/likeback.cpp b/src/likeback.cpp index aade7ca..4ffb58e 100644 --- a/src/likeback.cpp +++ b/src/likeback.cpp @@ -18,15 +18,15 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * ***************************************************************************/ -#include -#include -#include -#include +#include +#include +#include +#include #include -#include -#include +#include +#include #include -#include +#include #include #include #include @@ -65,10 +65,10 @@ LikeBackBar::LikeBackBar(LikeBack *likeBack) { TQHBoxLayout *layout = new TQHBoxLayout(this); - TQIconSet likeIconSet = kapp->iconLoader()->loadIconSet("likeback_like_tork", KIcon::Small); - TQIconSet dislikeIconSet = kapp->iconLoader()->loadIconSet("likeback_dislike_tork", KIcon::Small); - TQIconSet bugIconSet = kapp->iconLoader()->loadIconSet("likeback_bug_tork", KIcon::Small); - TQIconSet featureIconSet = kapp->iconLoader()->loadIconSet("likeback_feature_tork", KIcon::Small); + TQIconSet likeIconSet = kapp->iconLoader()->loadIconSet("likeback_like_tork", TDEIcon::Small); + TQIconSet dislikeIconSet = kapp->iconLoader()->loadIconSet("likeback_dislike_tork", TDEIcon::Small); + TQIconSet bugIconSet = kapp->iconLoader()->loadIconSet("likeback_bug_tork", TDEIcon::Small); + TQIconSet featureIconSet = kapp->iconLoader()->loadIconSet("likeback_feature_tork", TDEIcon::Small); m_likeButton = new TQToolButton(this, "likeback_like_tork"); m_likeButton->setIconSet(likeIconSet); @@ -208,7 +208,7 @@ LikeBackPrivate::~LikeBackPrivate() /********** class LikeBack: **********/ /*************************************/ -LikeBack::LikeBack(Button buttons, bool showBarByDefault, KConfig *config, const KAboutData *aboutData) +LikeBack::LikeBack(Button buttons, bool showBarByDefault, TDEConfig *config, const TDEAboutData *aboutData) : TQObject() { // Initialize properties (1/2): @@ -218,7 +218,7 @@ LikeBack::LikeBack(Button buttons, bool showBarByDefault, KConfig *config, const d->aboutData = aboutData; d->showBarByDefault = showBarByDefault; - // Use default KApplication config and aboutData if not provided: + // Use default TDEApplication config and aboutData if not provided: if (d->config == 0) d->config = kapp->config(); if (d->aboutData == 0) @@ -364,20 +364,20 @@ LikeBack::Button LikeBack::buttons() return d->buttons; } -const KAboutData* LikeBack::aboutData() +const TDEAboutData* LikeBack::aboutData() { return d->aboutData; } -KConfig* LikeBack::config() +TDEConfig* LikeBack::config() { return d->config; } -KAction* LikeBack::sendACommentAction(KActionCollection *parent) +TDEAction* LikeBack::sendACommentAction(TDEActionCollection *parent) { if (d->action == 0) - d->action = new KAction( + d->action = new TDEAction( i18n("&Send a Comment to Developers"), /*icon=*/"mail_new", /*shortcut=*/"", this, SLOT(execCommentDialog()), parent, "likeback_send_a_comment" @@ -412,10 +412,10 @@ void LikeBack::setUserWantsToShowBar(bool showBar) void LikeBack::showInformationMessage() { // Load and register the images needed by the message: - TQPixmap likeIcon = kapp->iconLoader()->loadIcon("likeback_like_tork", KIcon::Small); - TQPixmap dislikeIcon = kapp->iconLoader()->loadIcon("likeback_dislike_tork", KIcon::Small); - TQPixmap bugIcon = kapp->iconLoader()->loadIcon("likeback_bug_tork", KIcon::Small); - TQPixmap featureIcon = kapp->iconLoader()->loadIcon("likeback_feature_tork", KIcon::Small); + TQPixmap likeIcon = kapp->iconLoader()->loadIcon("likeback_like_tork", TDEIcon::Small); + TQPixmap dislikeIcon = kapp->iconLoader()->loadIcon("likeback_dislike_tork", TDEIcon::Small); + TQPixmap bugIcon = kapp->iconLoader()->loadIcon("likeback_bug_tork", TDEIcon::Small); + TQPixmap featureIcon = kapp->iconLoader()->loadIcon("likeback_feature_tork", TDEIcon::Small); TQMimeSourceFactory::defaultFactory()->setPixmap("likeback_icon_like", likeIcon); TQMimeSourceFactory::defaultFactory()->setPixmap("likeback_icon_dislike", dislikeIcon); TQMimeSourceFactory::defaultFactory()->setPixmap("likeback_icon_bug", bugIcon); @@ -566,7 +566,7 @@ void LikeBack::askEmailAddress() setEmailAddress(email); } -// FIXME: Should be moved to KAboutData? Cigogne will also need it. +// FIXME: Should be moved to TDEAboutData? Cigogne will also need it. bool LikeBack::isDevelopmentVersion(const TQString &version) { return version.find("alpha", /*index=*/0, /*caseSensitive=*/false) != -1 || @@ -577,17 +577,17 @@ bool LikeBack::isDevelopmentVersion(const TQString &version) } /** - * Code from KBugReport::slotConfigureEmail() in kdeui/kbugreport.cpp: + * Code from KBugReport::slotConfigureEmail() in tdeui/kbugreport.cpp: */ /*void LikeBack::beginFetchingEmail() { if (m_process) return; - m_process = new KProcess(); - *m_process << TQString::fromLatin1("kcmshell") << TQString::fromLatin1("kcm_useraccount"); - connect( m_process, SIGNAL(processExited(KProcess*)), SLOT(fetchUserEmail()) ); + m_process = new TDEProcess(); + *m_process << TQString::fromLatin1("tdecmshell") << TQString::fromLatin1("kcm_useraccount"); + connect( m_process, SIGNAL(processExited(TDEProcess*)), SLOT(fetchUserEmail()) ); if (!m_process->start()) { - kdDebug() << "Couldn't start kcmshell.." << endl; + kdDebug() << "Couldn't start tdecmshell.." << endl; delete m_process; m_process = 0; return; @@ -596,7 +596,7 @@ bool LikeBack::isDevelopmentVersion(const TQString &version) }*/ /** - * Code from KBugReport::slotSetFrom() in kdeui/kbugreport.cpp: + * Code from KBugReport::slotSetFrom() in tdeui/kbugreport.cpp: */ void LikeBack::fetchUserEmail() { @@ -604,8 +604,8 @@ void LikeBack::fetchUserEmail() // m_process = 0; // m_configureEmail->setEnabled(true); - // ### KDE4: why oh why is KEmailSettings in kio? - KConfig emailConf( TQString::fromLatin1("emaildefaults") ); + // ### KDE4: why oh why is KEmailSettings in tdeio? + TDEConfig emailConf( TQString::fromLatin1("emaildefaults") ); // find out the default profile emailConf.setGroup(TQString::fromLatin1("Defaults")); @@ -668,7 +668,7 @@ LikeBackDialog::LikeBackDialog(LikeBack::Button reason, const TQString &initialC TQWidget *buttons = new TQWidget(box); TQGridLayout *buttonsGrid = new TQGridLayout(buttons, /*nbRows=*/4, /*nbColumns=*/2, /*margin=*/0, spacingHint()); if (m_likeBack->buttons() & LikeBack::Like) { - TQPixmap likePixmap = kapp->iconLoader()->loadIcon("likeback_like_tork", KIcon::NoGroup, 16, KIcon::DefaultState, 0L, true); + TQPixmap likePixmap = kapp->iconLoader()->loadIcon("likeback_like_tork", TDEIcon::NoGroup, 16, TDEIcon::DefaultState, 0L, true); TQLabel *likeIcon = new TQLabel(buttons); likeIcon->setPixmap(likePixmap); likeIcon->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed); @@ -678,7 +678,7 @@ LikeBackDialog::LikeBackDialog(LikeBack::Button reason, const TQString &initialC m_group->insert(likeButton, LikeBack::Like); } if (m_likeBack->buttons() & LikeBack::Dislike) { - TQPixmap dislikePixmap = kapp->iconLoader()->loadIcon("likeback_dislike_tork", KIcon::NoGroup, 16, KIcon::DefaultState, 0L, true); + TQPixmap dislikePixmap = kapp->iconLoader()->loadIcon("likeback_dislike_tork", TDEIcon::NoGroup, 16, TDEIcon::DefaultState, 0L, true); TQLabel *dislikeIcon = new TQLabel(buttons); dislikeIcon->setPixmap(dislikePixmap); dislikeIcon->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed); @@ -688,7 +688,7 @@ LikeBackDialog::LikeBackDialog(LikeBack::Button reason, const TQString &initialC m_group->insert(dislikeButton, LikeBack::Dislike); } if (m_likeBack->buttons() & LikeBack::Bug) { - TQPixmap bugPixmap = kapp->iconLoader()->loadIcon("likeback_bug_tork", KIcon::NoGroup, 16, KIcon::DefaultState, 0L, true); + TQPixmap bugPixmap = kapp->iconLoader()->loadIcon("likeback_bug_tork", TDEIcon::NoGroup, 16, TDEIcon::DefaultState, 0L, true); TQLabel *bugIcon = new TQLabel(buttons); bugIcon->setPixmap(bugPixmap); bugIcon->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed); @@ -698,7 +698,7 @@ LikeBackDialog::LikeBackDialog(LikeBack::Button reason, const TQString &initialC m_group->insert(bugButton, LikeBack::Bug); } if (m_likeBack->buttons() & LikeBack::Feature) { - TQPixmap featurePixmap = kapp->iconLoader()->loadIcon("likeback_feature_tork", KIcon::NoGroup, 16, KIcon::DefaultState, 0L, true); + TQPixmap featurePixmap = kapp->iconLoader()->loadIcon("likeback_feature_tork", TDEIcon::NoGroup, 16, TDEIcon::DefaultState, 0L, true); TQLabel *featureIcon = new TQLabel(buttons); featureIcon->setPixmap(featurePixmap); featureIcon->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed); @@ -749,11 +749,11 @@ TQString LikeBackDialog::introductionText() TQStringList locales = m_likeBack->acceptedLocales(); for (TQStringList::Iterator it = locales.begin(); it != locales.end(); ++it) { TQString locale = *it; - if (KGlobal::locale()->language().startsWith(locale)) + if (TDEGlobal::locale()->language().startsWith(locale)) languagesMessage = ""; } } else { - if (!KGlobal::locale()->language().startsWith("en")) + if (!TDEGlobal::locale()->language().startsWith("en")) languagesMessage = i18n("Please write in English."); } @@ -761,7 +761,7 @@ TQString LikeBackDialog::introductionText() // TODO: Replace the URL with a localized one: text += languagesMessage + " " + i18n("You may be able to use an online translation tool.") - .arg("http://www.google.com/language_tools?hl=" + KGlobal::locale()->language()) + .arg("http://www.google.com/language_tools?hl=" + TDEGlobal::locale()->language()) + " "; // If both "I Like" and "I Dislike" buttons are shown and one is clicked: @@ -811,7 +811,7 @@ void LikeBackDialog::send() "protocol=" + KURL::encode_string("1.0") + '&' + "type=" + KURL::encode_string(type) + '&' + "version=" + KURL::encode_string(m_likeBack->aboutData()->version()) + '&' + - "locale=" + KURL::encode_string(KGlobal::locale()->language()) + '&' + + "locale=" + KURL::encode_string(TDEGlobal::locale()->language()) + '&' + "window=" + KURL::encode_string(m_windowPath) + '&' + "context=" + KURL::encode_string(m_context) + '&' + "comment=" + KURL::encode_string(m_comment->text()) + '&' + diff --git a/src/likeback.h b/src/likeback.h index e5d383a..e319e8d 100644 --- a/src/likeback.h +++ b/src/likeback.h @@ -23,10 +23,10 @@ #include -class KConfig; -class KAboutData; -class KAction; -class KActionCollection; +class TDEConfig; +class TDEAboutData; +class TDEAction; +class TDEActionCollection; class LikeBackPrivate; class LikeBackBar; @@ -48,7 +48,7 @@ class LikeBackDialog; * * The LikeBack system has 5 components: * @li In the application: The comment dialog, where the user write a comment, select a type of comment, etc. - * @li In the application: The KAction to plug in the Help menu. This action displays the comment dialog. + * @li In the application: The TDEAction to plug in the Help menu. This action displays the comment dialog. * @li In the application: The button-bar, that floats bellow titlebar of every windows of the application, and let the user to quickly show the comment dialog. * The button-bar can be hidden. * @li On the server: A PHP script that collects every comments that users send. The LikeBack object should be configured to contact that server. @@ -64,7 +64,7 @@ class LikeBackDialog; * // Comment the following line once you are sure all your windows have a name: * likeBack->setWindowNamesListing(LikeBack::WarnUnnamedWindows); * - * // This line should be called early in your KMainWindow constructor because it references actionCollection(). + * // This line should be called early in your TDEMainWindow constructor because it references actionCollection(). * // It should be called before createGUI() for the action to be plugged in the Help menu: * likeBack->sendACommentAction(actionCollection()); * @endcode @@ -117,18 +117,18 @@ class LikeBack : public TQObject * The button-bar display is stored by version. On a new version, your default value will take effect again. * This allow you to disable the button-bar once the version is stable enought to be released as final. * @param config Set the configuration file where to store the user email address and if the button-bar should be shown. - * By default (null), the KApplication configuration object is used. - * @param aboutData Set the KAboutData instance used to get the application name and version. By default (null), the KApplication about data object is used. + * By default (null), the TDEApplication configuration object is used. + * @param aboutData Set the TDEAboutData instance used to get the application name and version. By default (null), the TDEApplication about data object is used. * The application name is only used in the first-use information message. * The version is used to store the button-bar visibility per version (can be shown in a development version but not in a final one...) * and to send with the comment, so you can filter per version and know if a comment refers the latest version of the application or not. */ - LikeBack(Button buttons = DefaultButtons, bool showBarByDefault = false, KConfig *config = 0, const KAboutData *aboutData = 0); + LikeBack(Button buttons = DefaultButtons, bool showBarByDefault = false, TDEConfig *config = 0, const TDEAboutData *aboutData = 0); /** * Destructor. * Also hide the button-bar, if it was shown. - * Be careful, the KAction is deleted. Do not use it afterward, and take care to unplug it before destroying this LikeBack instance. + * Be careful, the TDEAction is deleted. Do not use it afterward, and take care to unplug it before destroying this LikeBack instance. */ ~LikeBack(); @@ -209,7 +209,7 @@ class LikeBack : public TQObject TQ_UINT16 hostPort(); /** - * Get the KAction letting user to show the comment dialog. + * Get the TDEAction letting user to show the comment dialog. * You should plug it in your Help menu, just bellow the "Report a Bug" action, or replace it. * Adding the action below "Report a Bug" or replacing "Report a Bug" depends on your application and if you have a Bugzilla account. * If you do not have a Bugzilla account, LikeBack is a good way for your small application to get bug reports: remove "Report a Bug". @@ -219,7 +219,7 @@ class LikeBack : public TQObject * * @endcode */ - KAction* sendACommentAction(KActionCollection *parent = 0); + TDEAction* sendACommentAction(TDEActionCollection *parent = 0); /** * @Returns The path of the currently active window. Each windows are separated with "~~". @@ -280,7 +280,7 @@ class LikeBack : public TQObject * @param windowPath The window path to send with the comment. If empty (the default), the current window path is took. * Separate window names with "~~". For instance "MainWindow~~NewFile~~FileOpen". * If you popup the dialog after an error occurred, you can put the error name in that field (if the window path has no sense in that context). - * When the dialog is popuped up from the sendACommentAction() KAction, this value is "HelpMenu", because there is no way to know if the user + * When the dialog is popuped up from the sendACommentAction() TDEAction, this value is "HelpMenu", because there is no way to know if the user * is commenting a thing he found/thinked about in a sub-dialog. * @param context Not used for the moment. Will allow more fine-grained application status report. */ @@ -302,7 +302,7 @@ class LikeBack : public TQObject private slots: /** - * Slot triggered by the "Help -> Send a Comment to Developers" KAction. + * Slot triggered by the "Help -> Send a Comment to Developers" TDEAction. * It popups the comment dialog, and set the window path to "HelpMenuAction", * because current window path has no meaning in that case. */ @@ -323,16 +323,16 @@ class LikeBack : public TQObject void setUserWantsToShowBar(bool showBar); /** - * @Returns A pointer to the KAboutData used to determin the application name and version. + * @Returns A pointer to the TDEAboutData used to determin the application name and version. * @See The LikeBack constructor for more information. */ - const KAboutData *aboutData(); + const TDEAboutData *aboutData(); /** - * @Returns A pointer to the KConfig used to store user configuration (email address, if the button-bar should be shown). + * @Returns A pointer to the TDEConfig used to store user configuration (email address, if the button-bar should be shown). * @See The LikeBack constructor for more information. */ - KConfig *config(); + TDEConfig *config(); /** * During the first comment sending, the user is invited to enter his email address for the developers to be able to contact him back. diff --git a/src/likeback_private.h b/src/likeback_private.h index d7be942..8f0e386 100644 --- a/src/likeback_private.h +++ b/src/likeback_private.h @@ -38,8 +38,8 @@ class LikeBackPrivate LikeBackPrivate(); ~LikeBackPrivate(); LikeBackBar *bar; - KConfig *config; - const KAboutData *aboutData; + TDEConfig *config; + const TDEAboutData *aboutData; LikeBack::Button buttons; TQString hostName; TQString remotePath; @@ -51,7 +51,7 @@ class LikeBackPrivate bool showBar; int disabledCount; TQString fetchedEmail; - KAction *action; + TDEAction *action; }; class LikeBackBar : public TQWidget diff --git a/src/main.cpp b/src/main.cpp index 55dfefd..7caf450 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -25,11 +25,11 @@ #include "torkconfig.h" #include "functions.h" #include "newfirstrunwizard.h" -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include static const char description[] = I18N_NOOP("TorK - An Anonymity Manager for the KDE Desktop.\n" @@ -40,7 +40,7 @@ static const char description[] = static const char version[] = ""; static const char title[] = "TorK 0.33"; -static KCmdLineOptions options[] = +static TDECmdLineOptions options[] = { { "+[URL]", I18N_NOOP( "Document to open." ), 0 }, { "toggleKDE", I18N_NOOP("Toggle Anonymous KDE"), 0 }, @@ -58,8 +58,8 @@ static KCmdLineOptions options[] = int main(int argc, char **argv) { - KAboutData about("tork", I18N_NOOP(title), version, description, - KAboutData::License_GPL, "(C) 2006 - 2008 Robert Hogan", 0, 0, "tork-users@lists.sf.net"); + TDEAboutData about("tork", I18N_NOOP(title), version, description, + TDEAboutData::License_GPL, "(C) 2006 - 2008 Robert Hogan", 0, 0, "tork-users@lists.sf.net"); about.addAuthor( "Robert Hogan", I18N_NOOP("Author and Maintainer"), "robert@roberthogan.net", "http://tork.anonymityanywhere.com" ); about.addAuthor( "Corinna Habets", I18N_NOOP("Icons"), 0); about.addAuthor( "Contains code by: Matt Edman, Justin Hipple, Max Howell,", 0, "" ); @@ -82,9 +82,9 @@ int main(int argc, char **argv) about.addCredit( "Max Urgel", I18N_NOOP("German Translation"), "bitwisser@googlemail.com"); about.addCredit( "Daniel Berthereau", I18N_NOOP("French Translation"), "Daniel.Berthereau@free.fr"); - KCmdLineArgs::init(argc, argv, &about); - KCmdLineArgs::addCmdLineOptions(options); - KApplication app; + TDECmdLineArgs::init(argc, argv, &about); + TDECmdLineArgs::addCmdLineOptions(options); + TDEApplication app; //Check for the existence of anonymizable/helper programs first. @@ -113,7 +113,7 @@ int main(int argc, char **argv) else widget->show(); - //KCrash::setCrashHandler( torK::Crash::crashHandler ); + //TDECrash::setCrashHandler( torK::Crash::crashHandler ); return app.exec(); } diff --git a/src/maxmin.ui.h b/src/maxmin.ui.h index 95d8a1e..1902c2e 100644 --- a/src/maxmin.ui.h +++ b/src/maxmin.ui.h @@ -19,8 +19,8 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #include "torkconfig.h" -#include -#include +#include +#include #include #include diff --git a/src/mixminion.ui b/src/mixminion.ui index d82b2a1..8d081c7 100644 --- a/src/mixminion.ui +++ b/src/mixminion.ui @@ -148,7 +148,7 @@ - + proc @@ -181,7 +181,7 @@ send_clicked() slotProg( ) receivedMixminionOutput( KProcIO * mixminionproc ) - mixminionprocExited( KProcess * proc ) + mixminionprocExited( TDEProcess * proc ) init() diff --git a/src/mixminion.ui.h b/src/mixminion.ui.h index 03cf179..e5e7b94 100644 --- a/src/mixminion.ui.h +++ b/src/mixminion.ui.h @@ -19,7 +19,7 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #include -#include +#include #include #include #include @@ -58,8 +58,8 @@ void MixMinionClient::send_clicked() *mixminionproc << "printf '" << messageBody->text() <<"' | mixminion send -t " << toAddress->text() << " --subject '" << subject->text() << "'"; - connect( mixminionproc, SIGNAL(processExited(KProcess *)), - SLOT(mixminionprocExited(KProcess *)) ); + connect( mixminionproc, SIGNAL(processExited(TDEProcess *)), + SLOT(mixminionprocExited(TDEProcess *)) ); connect( mixminionproc, SIGNAL(readReady(KProcIO *)), SLOT(receivedMixminionOutput(KProcIO *)) ); @@ -104,7 +104,7 @@ void MixMinionClient::receivedMixminionOutput(KProcIO *mixminionproc) } -void MixMinionClient::mixminionprocExited(KProcess *proc) +void MixMinionClient::mixminionprocExited(TDEProcess *proc) { TQString caption; TQString message; diff --git a/src/newfirstrunwizard.ui.h b/src/newfirstrunwizard.ui.h index 0480bec..a8fa9fc 100644 --- a/src/newfirstrunwizard.ui.h +++ b/src/newfirstrunwizard.ui.h @@ -23,7 +23,7 @@ #include "crypto.h" #include "torclient.h" -#include +#include #include #include #include @@ -34,9 +34,9 @@ #include #include #include -#include -#include -#include +#include +#include +#include #include #include @@ -128,7 +128,7 @@ FirstRunWizard::init() serverName->setText("TorKServer"); - KConfig emailConf( TQString::fromLatin1("emaildefaults") ); + TDEConfig emailConf( TQString::fromLatin1("emaildefaults") ); emailConf.setGroup(TQString::fromLatin1("Defaults")); TQString profile = TQString::fromLatin1("PROFILE_"); profile += emailConf.readEntry(TQString::fromLatin1("Profile"), TQString::fromLatin1("Default")); @@ -379,18 +379,18 @@ FirstRunWizard::saveNonAnonymousProxySettings() { - KConfig* config = new KConfig("kioslaverc", false, false); + TDEConfig* config = new TDEConfig("tdeioslaverc", false, false); config->setGroup( "Proxy Settings" ); OriginalHttpProxy = config->readEntry( "httpProxy" ); OriginalHttpsProxy = config->readEntry( "httpsProxy" ); OriginalProxyType = config->readEntry( "ProxyType" ); - config = new KConfig("kcookiejarrc", false, false); + config = new TDEConfig("kcookiejarrc", false, false); config->setGroup( "Cookie Policy" ); OriginalCookies = config->readEntry( "Cookies" ); - config = new KConfig("kio_httprc", false, false); + config = new TDEConfig("tdeio_httprc", false, false); OriginalUseCache = config->readEntry( "UseCache" ); OriginalSendUserAgent = config->readEntry( "SendUserAgent" ); - config = new KConfig("konquerorrc", false, false); + config = new TDEConfig("konquerorrc", false, false); config->setGroup( "Java/JavaScript Settings" ); OriginalEnableJavascript = config->readEntry( "EnableJavaScript" ); OriginalEnableJava = config->readEntry( "EnableJava" ); @@ -413,7 +413,7 @@ FirstRunWizard::saveAnonymousProxySettings() - KConfig* config = new KConfig("kioslaverc", false, false); + TDEConfig* config = new TDEConfig("tdeioslaverc", false, false); config->setGroup( "Proxy Settings" ); KonqHttpProxy = config->readEntry( "httpProxy" ).section(":",0,1); KonqHttpProxyPort = config->readEntry( "httpProxy" ).section(":",-1,-1).toInt(); @@ -435,20 +435,20 @@ void FirstRunWizard::TorLocation_textChanged( const TQString & text) void FirstRunWizard::pushButton1_clicked() { - KRun::runCommand( "kcmshell proxy" ); + KRun::runCommand( "tdecmshell proxy" ); } void FirstRunWizard::pushButton1_2_clicked() { - KRun::runCommand( "kcmshell proxy" ); + KRun::runCommand( "tdecmshell proxy" ); } void FirstRunWizard::pushButton1_3_clicked() { - KRun::runCommand( "kcmshell proxy" ); + KRun::runCommand( "tdecmshell proxy" ); } void FirstRunWizard::testTorAgain_clicked() @@ -600,7 +600,7 @@ void FirstRunWizard::rootifyNetstat() KProcIO *catproc = new KProcIO(); catproc->setUseShell(TRUE); - TQString whichCommand= TQString("kdesu -t -c 'cp %1 %2;chmod u+s %3'").arg(netstat).arg(newnetstat).arg(newnetstat); + TQString whichCommand= TQString("tdesu -t -c 'cp %1 %2;chmod u+s %3'").arg(netstat).arg(newnetstat).arg(newnetstat); *catproc<start(KProcIO::NotifyOnExit,TRUE); @@ -645,7 +645,7 @@ void FirstRunWizard::appendControlDirective(const TQString& text) TQString directory = KURL(text).directory(); KProcIO *catproc = new KProcIO(); catproc->setUseShell(TRUE); - TQString whichCommand= TQString("kdesu -c \"sh -c 'mkdir -p %1;printf \\\"ControlPort 9051\\n\\\"" + TQString whichCommand= TQString("tdesu -c \"sh -c 'mkdir -p %1;printf \\\"ControlPort 9051\\n\\\"" " >> %2;killall -s HUP tor'\"").arg(directory).arg(text); *catproc<start(KProcIO::NotifyOnExit,TRUE); @@ -758,7 +758,7 @@ void FirstRunWizard::appendPrivoxyConfig(const TQString& text) KProcIO *catproc = new KProcIO(); catproc->setUseShell(TRUE); - TQString whichCommand= TQString("kdesu -c \"sh -c 'printf \\\"%1\\\"" + TQString whichCommand= TQString("tdesu -c \"sh -c 'printf \\\"%1\\\"" " >> %2;killall -s HUP privoxy'\"") .arg(privoxyConf) .arg(text); diff --git a/src/newstreamosd.cpp b/src/newstreamosd.cpp index 6c52760..e8785e3 100644 --- a/src/newstreamosd.cpp +++ b/src/newstreamosd.cpp @@ -40,13 +40,13 @@ #include "newstreamosd.h" #include "torkview.h" -#include +#include #include #include #include -#include -#include -#include +#include +#include +#include #include #include #include @@ -56,7 +56,7 @@ #include #include #include -#include +#include #include #include @@ -197,7 +197,7 @@ void StreamOSD::renderOSD() infoList = new TQListView( this, "infoList" ); infoList->addColumn( "StreamID" ); infoList->addColumn( "Host" ); - infoList->addColumn( kapp->iconLoader()->loadIconSet("tork_torsmall", KIcon::Small),"", 24 ); + infoList->addColumn( kapp->iconLoader()->loadIconSet("tork_torsmall", TDEIcon::Small),"", 24 ); infoList->addColumn( "KB/s" ); infoList->addColumn( "Exit" ); infoList->setColumnWidthMode(0, TQListView::Manual); @@ -398,7 +398,7 @@ void StreamOSD::mousePressEvent( TQMouseEvent* e ) m_dragging = true; } /* else if( e->button() == RightButton ) { - KPopupMenu m; + TDEPopupMenu m; if( m.insertItem( i18n("Hide OSD") ) == m.exec( e->pos() ) ) hide(); }*/ @@ -465,7 +465,7 @@ TQPoint StreamOSD::fixupPosition( const TQPoint& pp ) } -void StreamOSD::readSettings( KConfigBase* c ) +void StreamOSD::readSettings( TDEConfigBase* c ) { TQString oldGroup = c->group(); if (m_tortraffic) @@ -480,7 +480,7 @@ void StreamOSD::readSettings( KConfigBase* c ) } -void StreamOSD::saveSettings( KConfigBase* c ) +void StreamOSD::saveSettings( TDEConfigBase* c ) { TQString oldGroup = c->group(); if (m_tortraffic) diff --git a/src/newstreamosd.h b/src/newstreamosd.h index 95705a9..a2f332b 100644 --- a/src/newstreamosd.h +++ b/src/newstreamosd.h @@ -26,7 +26,7 @@ class TQPaintEvent; class TQMouseEvent; -class KConfigBase; +class TDEConfigBase; class TQHBox; class TQListView; class TQToolButton; @@ -49,8 +49,8 @@ class StreamOSD : public TQWidget int screen() const { return m_screen; } const TQPoint& position() const { return m_position; } - void readSettings( KConfigBase* ); - void saveSettings( KConfigBase* ); + void readSettings( TDEConfigBase* ); + void saveSettings( TDEConfigBase* ); signals: void requestHideMonitor(); diff --git a/src/paranoia.ui.h b/src/paranoia.ui.h index 088b7c0..84f32d6 100644 --- a/src/paranoia.ui.h +++ b/src/paranoia.ui.h @@ -20,7 +20,7 @@ ***************************************************************************/ #include "torkconfig.h" -#include +#include #include #include #include diff --git a/src/quickconfig.ui.h b/src/quickconfig.ui.h index 167b2b9..acdcd22 100644 --- a/src/quickconfig.ui.h +++ b/src/quickconfig.ui.h @@ -21,14 +21,14 @@ #include "torkconfig.h" -#include +#include #include #include #include #include -#include -#include -#include +#include +#include +#include void QuickConfig::init() diff --git a/src/running.ui.h b/src/running.ui.h index f3c17b3..ecf991c 100644 --- a/src/running.ui.h +++ b/src/running.ui.h @@ -21,7 +21,7 @@ //dummy #include "torkconfig.h" -#include +#include #include #include #include diff --git a/src/server.ui.h b/src/server.ui.h index d46af71..4ef573e 100644 --- a/src/server.ui.h +++ b/src/server.ui.h @@ -21,7 +21,7 @@ #include "tork.h" #include "torkconfig.h" #include "upnpmanager.h" -#include +#include #include #include #include diff --git a/src/serverwizard.ui.h b/src/serverwizard.ui.h index 20cc9e6..a8fe5d9 100644 --- a/src/serverwizard.ui.h +++ b/src/serverwizard.ui.h @@ -18,7 +18,7 @@ * Free Software Foundation, Inc., * * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#include +#include #include #include #include "tork.h" @@ -37,7 +37,7 @@ void ServerWizard::init() displayDiscoveredRouters(); serverName->setText("TorKServer"); - KConfig emailConf( TQString::fromLatin1("emaildefaults") ); + TDEConfig emailConf( TQString::fromLatin1("emaildefaults") ); emailConf.setGroup(TQString::fromLatin1("Defaults")); TQString profile = TQString::fromLatin1("PROFILE_"); profile += emailConf.readEntry(TQString::fromLatin1("Profile"), TQString::fromLatin1("Default")); diff --git a/src/testprivacyproxy.cpp b/src/testprivacyproxy.cpp index fbf878d..ef19b06 100644 --- a/src/testprivacyproxy.cpp +++ b/src/testprivacyproxy.cpp @@ -27,7 +27,7 @@ #include "torkconfig.h" #include -#include +#include #include #include #include diff --git a/src/testprivacyproxy.h b/src/testprivacyproxy.h index 7f74c9a..1f512f2 100644 --- a/src/testprivacyproxy.h +++ b/src/testprivacyproxy.h @@ -32,7 +32,7 @@ #include #include #include -#include +#include #include #include "torkconfig.h" diff --git a/src/tor_ioslave/Makefile.am b/src/tor_ioslave/Makefile.am index c64d2ff..cf4d26e 100644 --- a/src/tor_ioslave/Makefile.am +++ b/src/tor_ioslave/Makefile.am @@ -1,15 +1,15 @@ INCLUDES = $(all_includes) LIBS = -kde_module_LTLIBRARIES = kio_torioslave.la +kde_module_LTLIBRARIES = tdeio_torioslave.la -kio_torioslave_la_SOURCES = torioslave.cpp -kio_torioslave_la_LIBADD = -lkio -kio_torioslave_la_LDFLAGS = -module -avoid-version $(all_libraries) $(KDE_PLUGIN) +tdeio_torioslave_la_SOURCES = torioslave.cpp +tdeio_torioslave_la_LIBADD = -ltdeio +tdeio_torioslave_la_LDFLAGS = -module -avoid-version $(all_libraries) $(KDE_PLUGIN) protocol_DATA = torioslave.protocol protocoldir = $(kde_servicesdir) messages: rc.cpp $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp - $(XGETTEXT) *.cpp -o $(podir)/kio_torioslave.pot + $(XGETTEXT) *.cpp -o $(podir)/tdeio_torioslave.pot diff --git a/src/tor_ioslave/torioslave.cpp b/src/tor_ioslave/torioslave.cpp index ac4a901..429ced0 100644 --- a/src/tor_ioslave/torioslave.cpp +++ b/src/tor_ioslave/torioslave.cpp @@ -32,39 +32,39 @@ #include #include -#include +#include #include -#include +#include #include -#include +#include #include -#include +#include #include #include #include #include #include -#include +#include #include #include #include "torioslave.h" -using namespace KIO; +using namespace TDEIO; -kio_torProtocol::kio_torProtocol(const TQCString &pool_socket, const TQCString &app_socket) - : SlaveBase("kio_tor", pool_socket, app_socket) +tdeio_torProtocol::tdeio_torProtocol(const TQCString &pool_socket, const TQCString &app_socket) + : SlaveBase("tdeio_tor", pool_socket, app_socket) { } -kio_torProtocol::~kio_torProtocol() +tdeio_torProtocol::~tdeio_torProtocol() { } -void kio_torProtocol::get(const KURL& url ) +void tdeio_torProtocol::get(const KURL& url ) { TQString wait; @@ -138,7 +138,7 @@ void kio_torProtocol::get(const KURL& url ) } -void kio_torProtocol::mimetype(const KURL & /*url*/) +void tdeio_torProtocol::mimetype(const KURL & /*url*/) { mimeType("text/html"); finished(); @@ -149,19 +149,19 @@ extern "C" { int kdemain(int argc, char **argv) { - KInstance instance( "kio_tor" ); + TDEInstance instance( "tdeio_tor" ); - kdDebug(7101) << "*** Starting kio_tor " << endl; + kdDebug(7101) << "*** Starting tdeio_tor " << endl; if (argc != 4) { - kdDebug(7101) << "Usage: kio_tor protocol domain-socket1 domain-socket2" << endl; + kdDebug(7101) << "Usage: tdeio_tor protocol domain-socket1 domain-socket2" << endl; exit(-1); } - kio_torProtocol slave(argv[2], argv[3]); + tdeio_torProtocol slave(argv[2], argv[3]); slave.dispatchLoop(); - kdDebug(7101) << "*** kio_tor Done" << endl; + kdDebug(7101) << "*** tdeio_tor Done" << endl; return 0; } } diff --git a/src/tor_ioslave/torioslave.h b/src/tor_ioslave/torioslave.h index 0bb1556..5668e3f 100644 --- a/src/tor_ioslave/torioslave.h +++ b/src/tor_ioslave/torioslave.h @@ -26,16 +26,16 @@ #include #include -#include -#include +#include +#include class TQCString; -class kio_torProtocol : public KIO::SlaveBase +class tdeio_torProtocol : public TDEIO::SlaveBase { public: - kio_torProtocol(const TQCString &pool_socket, const TQCString &app_socket); - virtual ~kio_torProtocol(); + tdeio_torProtocol(const TQCString &pool_socket, const TQCString &app_socket); + virtual ~tdeio_torProtocol(); virtual void mimetype(const KURL& url); virtual void get(const KURL& url); }; diff --git a/src/tor_ioslave/torioslave.protocol b/src/tor_ioslave/torioslave.protocol index efb6111..5514d94 100644 --- a/src/tor_ioslave/torioslave.protocol +++ b/src/tor_ioslave/torioslave.protocol @@ -1,29 +1,29 @@ [Protocol] -exec=kio_torioslave +exec=tdeio_torioslave protocol=tor input=none output=stream reading=true defaultMimetype=text/html Icon=tork_tor -Description=A kioslave for tor -Description[da]=En kioslave til tor +Description=A tdeioslave for tor +Description[da]=En tdeioslave til tor Description[de]=Ein Ein-/Ausgabemodul für tor -Description[es]=Un kioslave para tor +Description[es]=Un tdeioslave para tor Description[et]=tor IO-moodul Description[fr]=Un module d'entrée / sortie pour tor Description[hu]=tor-támogató KIOslave -Description[it]=Un kioslave per tor +Description[it]=Un tdeioslave per tor Description[nl]=Kioslave voor tor -Description[pl]=kioslave dla tor -Description[pt]=Um 'kioslave' para tor -Description[pt_BR]=Um kioslave para tor +Description[pl]=tdeioslave dla tor +Description[pt]=Um 'tdeioslave' para tor +Description[pt_BR]=Um tdeioslave para tor Description[ru]=Обработчик ввода-вывода для tor -Description[sl]=kioslave za tor +Description[sl]=tdeioslave za tor Description[sr]=KIOSlave за tor Description[sr@Latn]=KIOSlave za tor Description[sv]=En I/O-slav för tor -Description[tr]=tor için bir kioslave -Description[uk]=Підлеглий В/В (kioslave) для tor -Description[xx]=xxA kioslave for torxx -Description[zh_CN]=tor 的 kioslave +Description[tr]=tor için bir tdeioslave +Description[uk]=Підлеглий В/В (tdeioslave) для tor +Description[xx]=xxA tdeioslave for torxx +Description[zh_CN]=tor 的 tdeioslave diff --git a/src/torclient.cpp b/src/torclient.cpp index 1411076..1652ed2 100644 --- a/src/torclient.cpp +++ b/src/torclient.cpp @@ -31,7 +31,7 @@ #include "functions.h" #include -#include +#include #include #include #include @@ -858,7 +858,7 @@ void TorClient::parseServer(const TQString &info) }else if (info.left(6) == "uptime"){ //from the clever ktorrent - KLocale* loc = KGlobal::locale(); + TDELocale* loc = TDEGlobal::locale(); TQTime t; int nsecs = info.section(" ",1).toInt(); int ndays = (nsecs) / 86400; @@ -1143,8 +1143,8 @@ void TorClient::applySettingsToRunningTor() } // kdDebug() << "1" << endl; - KConfigSkeletonItem::List items = TorkConfig::self()->items(); - KConfigSkeletonItem::List::ConstIterator it; + TDEConfigSkeletonItem::List items = TorkConfig::self()->items(); + TDEConfigSkeletonItem::List::ConstIterator it; for( it = items.begin(); it != items.end(); ++it ) { if (elementShouldBeUsed((*it))){ @@ -1213,7 +1213,7 @@ void TorClient::applySettingsToRunningTor() } -bool TorClient::elementShouldBeUsed(const KConfigSkeletonItem* it) +bool TorClient::elementShouldBeUsed(const TDEConfigSkeletonItem* it) { //Maxmin Settings are always applied, defaults if 'let Tor decide' selected. @@ -1239,7 +1239,7 @@ bool TorClient::elementShouldBeUsed(const KConfigSkeletonItem* it) return false; } -bool TorClient::noSpecialProcessing(const KConfigSkeletonItem* it) +bool TorClient::noSpecialProcessing(const TDEConfigSkeletonItem* it) { if (((*it).name() == "PublishServerDescriptor") && (TorkConfig::bridgeRelay())){ diff --git a/src/torclient.h b/src/torclient.h index bb64476..01bd5d2 100644 --- a/src/torclient.h +++ b/src/torclient.h @@ -32,13 +32,13 @@ #include #include #include -#include +#include #include #include "torkconfig.h" -class KConfigSkeleton; -class KConfigSkeletonItem; +class TDEConfigSkeleton; +class TDEConfigSkeletonItem; class PrevConfig { @@ -234,8 +234,8 @@ private: bool m_resolvingServerAddress; bool geoip_db; TQString m_currentTorVersion; - bool elementShouldBeUsed(const KConfigSkeletonItem* it); - bool noSpecialProcessing(const KConfigSkeletonItem* it); + bool elementShouldBeUsed(const TDEConfigSkeletonItem* it); + bool noSpecialProcessing(const TDEConfigSkeletonItem* it); bool readCookie(); TQString ds_identity; TQString ds_fp_identity; diff --git a/src/tork.cpp b/src/tork.cpp index 00a5a47..2c56e0a 100644 --- a/src/tork.cpp +++ b/src/tork.cpp @@ -27,39 +27,39 @@ #include #include -#include -#include -#include +#include +#include +#include #include -#include -#include +#include +#include #include #include #include #include -#include +#include #include -#include -#include +#include +#include #include -#include +#include #include -#include +#include #include -#include -#include -#include +#include +#include +#include #include -#include -#include +#include +#include #include #include -#include +#include #include #include -#include +#include #include -#include +#include #include #include @@ -69,7 +69,7 @@ #include #include #include -#include +#include #ifndef EXTERNAL_GEOIP # include "GeoIP-1.4.0/libGeoIP/GeoIP.h" @@ -96,7 +96,7 @@ #include "../config.h" -tork *kmain = 0L; +tork *tdemain = 0L; using namespace tk; @@ -117,7 +117,7 @@ TQValueVector countryType(256); tork::tork() : DCOPObject( "DCOPTork" ), - KMainWindow( 0, "TorK" ), + TDEMainWindow( 0, "TorK" ), m_view(new torkView(this)), m_printer(0), m_servererrornag(true), @@ -142,7 +142,7 @@ tork::tork() kapp->dcopClient()->setDefaultObject( objId() ); // } - kmain = this; + tdemain = this; client = 0L; childproc = 0L; privoxyproc = 0L; @@ -215,7 +215,7 @@ tork::tork() // Comment the following line once you are sure all your windows have a name: likeBack->setWindowNamesListing(LikeBack::WarnUnnamedWindows); - // This line should be called early in your KMainWindow constructor because it references actionCollection(). + // This line should be called early in your TDEMainWindow constructor because it references actionCollection(). // It should be called before createGUI() for the action to be plugged in the Help menu: likeBack->sendACommentAction(actionCollection()); @@ -236,7 +236,7 @@ tork::tork() //currentChanged(0); //applySettings(false); - // tell the KMainWindow that this is indeed the main widget + // tell the TDEMainWindow that this is indeed the main widget setCentralWidget(m_view); setStandardToolBarMenuEnabled(true); @@ -323,10 +323,10 @@ tork::tork() showTipOnStart(); turnOffKDE(); - if ((KApplication::kApplication()->isRestored())) + if ((TDEApplication::kApplication()->isRestored())) startEverything(); - KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); + TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); if( args->isSet( "toggleKDE" ) ){ startEverything(); enableKDE(true); @@ -386,11 +386,11 @@ tork::tork() toolBar("TorToolBar")->toggleButton(toolBar("TorToolBar")->idAt(2)); toolBar("MoreToolBar")->show(); }else{ - toolBar("TorToolBar")->setIconText( KToolBar::IconTextRight, false ); + toolBar("TorToolBar")->setIconText( TDEToolBar::IconTextRight, false ); m_ModeButton->plug( toolBar("TorToolBar") ); toolBar("TorToolBar")->setToggle(toolBar("TorToolBar")->idAt(2),true); toolBar("MoreToolBar")->hide(); - toolBar("TorToolBar")->setIconText( KToolBar::IconOnly, false ); + toolBar("TorToolBar")->setIconText( TDEToolBar::IconOnly, false ); } } @@ -411,7 +411,7 @@ void tork::prepareToShut() client = 0L; } - KConfig* config = new KConfig("kioslaverc", false, false); + TDEConfig* config = new TDEConfig("tdeioslaverc", false, false); config->setGroup( "Proxy Settings" ); config->writeEntry( "httpProxy", TorkConfig::originalHttpProxy() ); config->writeEntry( "httpsProxy", TorkConfig::originalHttpsProxy() ); @@ -421,7 +421,7 @@ void tork::prepareToShut() //delete config; // Inform all running io-slaves about the changes... // if we cannot update, ioslaves inform the end user... - if (!DCOPRef("*", "KIO::Scheduler").send("reparseSlaveConfiguration", TQString::null)) + if (!DCOPRef("*", "TDEIO::Scheduler").send("reparseSlaveConfiguration", TQString::null)) { TQString caption = i18n("Update Failed"); TQString message = i18n("You have to restart the running applications " @@ -457,7 +457,7 @@ void tork::prepareToShut() privoxytest = 0L; } - m_view->m_osd->saveSettings(KGlobal::config()); + m_view->m_osd->saveSettings(TDEGlobal::config()); TorkConfig::writeConfig(); @@ -480,14 +480,14 @@ void tork::shuttingDown() if (m_DNSTorified){ - KNotifyClient::event(kmain->_tray->winId(),"TorDisabled", i18n("You are now in " + KNotifyClient::event(tdemain->_tray->winId(),"TorDisabled", i18n("You are now in " "FailSafe Mode.
You need to be in Normal Mode before " "you can close TorK.")); return; } - KNotifyClient::event(kmain->_tray->winId(),"TorDisabled", "TorK Has Closed And Returned " + KNotifyClient::event(tdemain->_tray->winId(),"TorDisabled", "TorK Has Closed And Returned " "KDE To Its Non-Anonymous State! Goodbye!"); prepareToShut(); @@ -502,42 +502,42 @@ void tork::setupActions() _tray = new TrayIcon(this); _tray->setPixmap(KSystemTray::loadIcon("tork_pressplay")); connect(_tray,SIGNAL(quitSelected()),SLOT(shuttingDown())); - KPopupMenu *conf_menu = _tray->contextMenu(); - torkConfigure = new KAction(i18n("&Configure TorK"), "configure", 0, + TDEPopupMenu *conf_menu = _tray->contextMenu(); + torkConfigure = new TDEAction(i18n("&Configure TorK"), "configure", 0, this, SLOT(optionsPreferences()),actionCollection(),"configure_tor"); - torkStart = new KAction(i18n("Connect To Tor"), "tork_play", 0,this, + torkStart = new TDEAction(i18n("Connect To Tor"), "tork_play", 0,this, SLOT(startEverything()),actionCollection(),"start_tor"); - torkStop = new KAction(i18n("Disconnect From Tor"),"tork_stop", 0,this, + torkStop = new TDEAction(i18n("Disconnect From Tor"),"tork_stop", 0,this, SLOT(stopTorGracefully()),actionCollection(),"stop_tor"); - enableKonqi = new KAction(i18n("Enable/Disable Konqueror's use of Tor"),"konqueror", 0,this, + enableKonqi = new TDEAction(i18n("Enable/Disable Konqueror's use of Tor"),"konqueror", 0,this, SLOT(toggleKDESetting()),actionCollection(),"enable_konqi"); - enableTormon = new KAction(i18n("Toggle Tor Traffic OSD"),"tork_konsole", 0,this, + enableTormon = new TDEAction(i18n("Toggle Tor Traffic OSD"),"tork_konsole", 0,this, SLOT(toggleTorMon()),actionCollection(),"enable_tormon"); - browseHiddenServices = new KAction(i18n("Browse Hidden Services"),"tork_tor", 0,this, + browseHiddenServices = new TDEAction(i18n("Browse Hidden Services"),"tork_tor", 0,this, SLOT(hiddenServices()),actionCollection(),"hidden_services"); - browseNetworkList = new KAction(i18n("Browse Tor Network Status"),"info", 0,this, + browseNetworkList = new TDEAction(i18n("Browse Tor Network Status"),"info", 0,this, SLOT(networkList()),actionCollection(),"network_list"); #ifndef LIVECD - torkUpdateTork = new KAction(i18n("Download Tork"), "tork_green", 0,this, + torkUpdateTork = new TDEAction(i18n("Download Tork"), "tork_green", 0,this, SLOT(updateTork()),actionCollection(),"update_tork"); - torkUpdateStable = new KAction(i18n("Download Tor (Stable Version)"), "tork_tor", 0,this, + torkUpdateStable = new TDEAction(i18n("Download Tor (Stable Version)"), "tork_tor", 0,this, SLOT(updateTorStable()),actionCollection(),"update_torstable"); - torkUpdateUnstable = new KAction(i18n("Download Tor (Experimental Version)"), "tork_tor", 0,this, + torkUpdateUnstable = new TDEAction(i18n("Download Tor (Experimental Version)"), "tork_tor", 0,this, SLOT(updateTorUnstable()),actionCollection(),"update_torunstable"); - torkUpdatePrivoxy = new KAction(i18n("Download Privoxy (Proxy)"), "proxy", 0,this, + torkUpdatePrivoxy = new TDEAction(i18n("Download Privoxy (Proxy)"), "proxy", 0,this, SLOT(updatePrivoxy()),actionCollection(),"update_privoxy"); #endif - torkFirstRunWizard = new KAction(i18n("First Run Wizard"), "wizard", 0,this, + torkFirstRunWizard = new TDEAction(i18n("First Run Wizard"), "wizard", 0,this, SLOT(runWizard()),actionCollection(),"firstrun_wizard"); - toggleTorbar = new KAction(i18n("Toggle Tor Bar"), "tork_tor", 0,this, + toggleTorbar = new TDEAction(i18n("Toggle Tor Bar"), "tork_tor", 0,this, SLOT(toggleTorBar()),actionCollection(),"toggle_torbar"); connect(m_view->TorkTabs,SIGNAL(currentChanged( TQWidget* )),SLOT(currentTabChanged( TQWidget* ))); //Servers Filter - m_ServerFilterButton = new KActionMenu( i18n( "Servers" ), "filter", actionCollection() ); + m_ServerFilterButton = new TDEActionMenu( i18n( "Servers" ), "filter", actionCollection() ); m_ServerFilterButton->setDelayed( false ); m_ServerFilterMenu = m_ServerFilterButton->popupMenu(); m_ServerFilterMenu->insertItem( i18n( "All" ), this, SLOT( filterServers( int ) ), 0, 0 ); @@ -558,17 +558,17 @@ void tork::setupActions() m_ServerFilterMenu->setItemChecked( 0, true ); - m_CountryMenu = new KPopupMenu( this ); + m_CountryMenu = new TDEPopupMenu( this ); m_ServerFilterMenu->insertItem( i18n( "Show Countries" ), m_CountryMenu ); - m_CountryMenuEU = new KPopupMenu( this ); - m_CountryMenuAF = new KPopupMenu( this ); - m_CountryMenuAS = new KPopupMenu( this ); - m_CountryMenuNA = new KPopupMenu( this ); - m_CountryMenuAN = new KPopupMenu( this ); - m_CountryMenuSA = new KPopupMenu( this ); - m_CountryMenuNN = new KPopupMenu( this ); - m_CountryMenuOC = new KPopupMenu( this ); + m_CountryMenuEU = new TDEPopupMenu( this ); + m_CountryMenuAF = new TDEPopupMenu( this ); + m_CountryMenuAS = new TDEPopupMenu( this ); + m_CountryMenuNA = new TDEPopupMenu( this ); + m_CountryMenuAN = new TDEPopupMenu( this ); + m_CountryMenuSA = new TDEPopupMenu( this ); + m_CountryMenuNN = new TDEPopupMenu( this ); + m_CountryMenuOC = new TDEPopupMenu( this ); continentMapList["EU"] = m_CountryMenuEU; continentMapList["AF"] = m_CountryMenuAF; @@ -599,7 +599,7 @@ void tork::setupActions() m_view->serverFilter->setHidden(true); // Launch Filter - m_LaunchMenuButton = new KActionMenu( i18n( "Launch" ), "tork_tor", actionCollection() ); + m_LaunchMenuButton = new TDEActionMenu( i18n( "Launch" ), "tork_tor", actionCollection() ); m_LaunchMenuButton->setDelayed( false ); m_LaunchMenu = m_LaunchMenuButton->popupMenu(); m_LaunchMenu->insertItem( SmallIcon("tork_mail"), i18n( "Anonymous Email" ), m_view, @@ -627,7 +627,7 @@ void tork::setupActions() this,SLOT( torkify( int )), 0, 4 ); // Log Filter - m_LogFilterButton = new KActionMenu( i18n( "Tor Log" ), "filter", actionCollection() ); + m_LogFilterButton = new TDEActionMenu( i18n( "Tor Log" ), "filter", actionCollection() ); m_LogFilterButton->setDelayed( false ); m_LogFilterMenu = m_LogFilterButton->popupMenu(); m_LogFilterMenu->insertItem( i18n( "All" ), this, SLOT( filterLog( int ) ), 0, 0 ); @@ -638,11 +638,11 @@ void tork::setupActions() m_LogFilterMenu->setItemChecked( 0, true ); // Traffic Filter - m_TrafficFilterButton = new KActionMenu( i18n( "Traffic" ), "filter", actionCollection() ); + m_TrafficFilterButton = new TDEActionMenu( i18n( "Traffic" ), "filter", actionCollection() ); m_TrafficFilterButton->setDelayed( false ); m_TrafficFilterMenu = m_TrafficFilterButton->popupMenu(); - m_TorTrafficFilterMenu = new KPopupMenu( this ); - m_NonTorTrafficFilterMenu = new KPopupMenu( this ); + m_TorTrafficFilterMenu = new TDEPopupMenu( this ); + m_NonTorTrafficFilterMenu = new TDEPopupMenu( this ); m_TrafficFilterMenu->insertItem( i18n( "Tor Traffic" ), m_TorTrafficFilterMenu ); m_TrafficFilterMenu->insertItem( i18n( "Non-Tor Traffic" ), m_NonTorTrafficFilterMenu ); @@ -687,23 +687,23 @@ void tork::setupActions() m_NonTorTrafficFilterMenu->setItemChecked( 0, true ); - m_IdentityButton = new KAction(i18n("Change Identity"),"tork_identity", 0,this, + m_IdentityButton = new TDEAction(i18n("Change Identity"),"tork_identity", 0,this, SLOT(useNewIdentity()),actionCollection()); //Pseudonymity Buttons - m_PseudoButton = new KActionMenu( i18n( "Be From.." ), "tork_internet", + m_PseudoButton = new TDEActionMenu( i18n( "Be From.." ), "tork_internet", actionCollection() ); m_PseudoButton->setDelayed( false ); m_PseudoMenu = m_PseudoButton->popupMenu(); - m_PseudoMenuEU = new KPopupMenu( this ); - m_PseudoMenuAF = new KPopupMenu( this ); - m_PseudoMenuAS = new KPopupMenu( this ); - m_PseudoMenuNA = new KPopupMenu( this ); - m_PseudoMenuAN = new KPopupMenu( this ); - m_PseudoMenuSA = new KPopupMenu( this ); - m_PseudoMenuNN = new KPopupMenu( this ); - m_PseudoMenuOC = new KPopupMenu( this ); + m_PseudoMenuEU = new TDEPopupMenu( this ); + m_PseudoMenuAF = new TDEPopupMenu( this ); + m_PseudoMenuAS = new TDEPopupMenu( this ); + m_PseudoMenuNA = new TDEPopupMenu( this ); + m_PseudoMenuAN = new TDEPopupMenu( this ); + m_PseudoMenuSA = new TDEPopupMenu( this ); + m_PseudoMenuNN = new TDEPopupMenu( this ); + m_PseudoMenuOC = new TDEPopupMenu( this ); continentMap["EU"] = m_PseudoMenuEU; continentMap["AF"] = m_PseudoMenuAF; @@ -728,7 +728,7 @@ void tork::setupActions() m_PseudoMenu->setItemChecked(999,true); // Server Button - m_ServerButton = new KActionMenu( i18n( "Run Server" ), "server", actionCollection() ); + m_ServerButton = new TDEActionMenu( i18n( "Run Server" ), "server", actionCollection() ); m_ServerButton->setDelayed( false ); m_ServerButtonMenu = m_ServerButton->popupMenu(); m_ServerButtonMenu->insertItem( i18n( "None" ), this, SLOT( configureServer( int ) ), 0, 0 ); @@ -739,9 +739,9 @@ void tork::setupActions() m_ServerButtonMenu->insertItem( i18n( "To Defeat Censorship Of Tor" ), this, SLOT( configureServer( int ) ), 0, 3 ); m_ServerButtonMenu->insertSeparator(); - m_ServerButtonMenu->insertItem( KGlobal::iconLoader()->loadIconSet("configure", KIcon::Small), + m_ServerButtonMenu->insertItem( TDEGlobal::iconLoader()->loadIconSet("configure", TDEIcon::Small), i18n( "Configure Server" ), this, SLOT( configureServer( int ) ), 0, 4 ); - m_ServerButtonMenu->insertItem( KGlobal::iconLoader()->loadIconSet("tork_agent", KIcon::Small), + m_ServerButtonMenu->insertItem( TDEGlobal::iconLoader()->loadIconSet("tork_agent", TDEIcon::Small), i18n( "Manage Hidden Services" ), this, SLOT( configureServer( int ) ), 0, 5 ); m_ServerButtonMenu->setItemChecked( 0, true ); @@ -749,24 +749,24 @@ void tork::setupActions() m_ServerButtonMenu->setItemEnabled( 4, !TorkConfig::clientOnly() ); // Server Button - m_SecurityButton = new KActionMenu( i18n( "Fail-Safe" ), "tork_penguin", actionCollection() ); + m_SecurityButton = new TDEActionMenu( i18n( "Fail-Safe" ), "tork_penguin", actionCollection() ); m_SecurityButton->setDelayed( false ); m_SecurityButtonMenu = m_SecurityButton->popupMenu(); - m_SecurityButtonMenu->insertItem( KGlobal::iconLoader()->loadIconSet("tork_penguin", KIcon::Small), + m_SecurityButtonMenu->insertItem( TDEGlobal::iconLoader()->loadIconSet("tork_penguin", TDEIcon::Small), i18n( "None" ), this, SLOT( configureSecurity( int ) ), 0, 0 ); - m_SecurityButtonMenu->insertItem(KGlobal::iconLoader()->loadIconSet("tork_agent", KIcon::Small), + m_SecurityButtonMenu->insertItem(TDEGlobal::iconLoader()->loadIconSet("tork_agent", TDEIcon::Small), i18n( "DNS FailSafe" ), this, SLOT( configureSecurity( int ) ), 0, 1 ); - m_SecurityButtonMenu->insertItem( KGlobal::iconLoader()->loadIconSet("gv", KIcon::Small), + m_SecurityButtonMenu->insertItem( TDEGlobal::iconLoader()->loadIconSet("gv", TDEIcon::Small), i18n( "System FailSafe" ),this, SLOT( configureSecurity( int ) ), 0, 2 ); m_SecurityButtonMenu->insertSeparator(); - m_SecurityButtonMenu->insertItem( KGlobal::iconLoader()->loadIconSet("configure", - KIcon::Small),i18n( "Configure FailSafe" ), this, SLOT( configureSecurity( int ) ), 0, 3 ); + m_SecurityButtonMenu->insertItem( TDEGlobal::iconLoader()->loadIconSet("configure", + TDEIcon::Small),i18n( "Configure FailSafe" ), this, SLOT( configureSecurity( int ) ), 0, 3 ); m_SecurityButtonMenu->setItemChecked( 0, true ); - m_UnCensorButton = new KAction(i18n("Un-Censor"),"tork_uncensor", 0,this, + m_UnCensorButton = new TDEAction(i18n("Un-Censor"),"tork_uncensor", 0,this, SLOT(showFirewallEvasion()),actionCollection()); - torkTip = new KAction(i18n("Tip of the Day"), "idea", 0,this, + torkTip = new TDEAction(i18n("Tip of the Day"), "idea", 0,this, SLOT(showTip()),actionCollection(),"help_show_tip"); //set up all other actions @@ -784,11 +784,11 @@ void tork::setupActions() createGUI(); - m_ModeButton = new KAction(i18n("More Options"),"add", 0,this, + m_ModeButton = new TDEAction(i18n("More Options"),"add", 0,this, SLOT(switchMode()),actionCollection()); //Set Up Advanced Toolbar - toolBar("MoreToolBar")->setIconText( KToolBar::IconTextRight, false ); + toolBar("MoreToolBar")->setIconText( TDEToolBar::IconTextRight, false ); m_PseudoButton->plug( toolBar("MoreToolBar") ); m_ServerButton->plug( toolBar("MoreToolBar") ); #ifndef LIVECD @@ -796,15 +796,15 @@ void tork::setupActions() m_SecurityButton->plug( toolBar("MoreToolBar") ); #endif #endif - toolBar("MoreToolBar")->setIconText( KToolBar::IconOnly, false ); + toolBar("MoreToolBar")->setIconText( TDEToolBar::IconOnly, false ); //Set Up Core Toolbar - toolBar("TorToolBar")->setIconText( KToolBar::IconTextRight, false ); + toolBar("TorToolBar")->setIconText( TDEToolBar::IconTextRight, false ); m_UnCensorButton->plug( toolBar("TorToolBar") ); #ifndef LIVECD //m_IdentityButton->plug( toolBar("TorToolBar") ); #endif - toolBar("TorToolBar")->setIconText( KToolBar::IconOnly, false ); + toolBar("TorToolBar")->setIconText( TDEToolBar::IconOnly, false ); m_PseudoButton->setToolTip( i18n( "Pretend you're using the Internet
in another country." ) ); @@ -914,7 +914,7 @@ void tork::applyPseudonymity( int country_id ) } // Update Menu - for ( TQMap::Iterator menu = continentMap.begin(); menu != continentMap.end(); ++menu ) + for ( TQMap::Iterator menu = continentMap.begin(); menu != continentMap.end(); ++menu ) { for (unsigned int index = 0; index != menu.data()->count(); ++index){ menu.data()->setItemChecked( menu.data()->idAt(index),false); @@ -1002,7 +1002,7 @@ void tork::currentTabChanged(TQWidget* cur ) //SLOT { - toolBar()->setIconText( KToolBar::IconTextRight, false ); + toolBar()->setIconText( TDEToolBar::IconTextRight, false ); if (cur == prev) return; @@ -1032,7 +1032,7 @@ tork::currentTabChanged(TQWidget* cur ) //SLOT } - toolBar()->setIconText( KToolBar::IconOnly, false ); + toolBar()->setIconText( TDEToolBar::IconOnly, false ); m_ServerFilterButton->setToolTip( i18n( "Filter the List of Servers." ) ); m_LaunchMenuButton->setToolTip( i18n( "Launch anonymized applications
with a single click." ) ); m_LogFilterButton->setToolTip( i18n( "Filter Log Messages by Type." ) ); @@ -1142,7 +1142,7 @@ tork::switchMode() //SLOT if (TorkConfig::advancedMode()){ m_ModeButton->unplug( toolBar("TorToolBar") ); - toolBar("TorToolBar")->setIconText( KToolBar::IconOnly, false ); + toolBar("TorToolBar")->setIconText( TDEToolBar::IconOnly, false ); m_ModeButton->plug( toolBar("TorToolBar") ); toolBar("TorToolBar")->setToggle(toolBar("TorToolBar")->idAt(2),true); toolBar("TorToolBar")->toggleButton(toolBar("TorToolBar")->idAt(2)); @@ -1150,7 +1150,7 @@ tork::switchMode() //SLOT }else{ m_ModeButton->unplug( toolBar("TorToolBar") ); - toolBar("TorToolBar")->setIconText( KToolBar::IconTextRight, false ); + toolBar("TorToolBar")->setIconText( TDEToolBar::IconTextRight, false ); m_ModeButton->plug( toolBar("TorToolBar") ); toolBar("MoreToolBar")->hide(); } @@ -1277,11 +1277,11 @@ tork::configureSecurity( int id ) //SLOT filterproc = new KProcIO(); filterproc->setUseShell(TRUE); - TQString filterCommand= TQString("kdesu --noignorebutton --miniicon tork --caption '%1' -t -i %2 -d -c " + TQString filterCommand= TQString("tdesu --noignorebutton --miniicon tork --caption '%1' -t -i %2 -d -c " "'%3'").arg(filterRequest).arg(iconstring).arg(cmd); connect( filterproc, SIGNAL(readReady(KProcIO * )), SLOT(processFilter(KProcIO * )) ); - connect( filterproc, SIGNAL(processExited(KProcess *)), + connect( filterproc, SIGNAL(processExited(TDEProcess *)), SLOT(filterExited()) ); *filterproc<enableTransPort(false); } m_SecurityButton->setIconSet(SmallIconSet("tork_penguin")); - KNotifyClient::event(kmain->_tray->winId(),"TorDisabled", i18n("You are now in Normal Mode.
Tor and TorK will operate normally.")); + KNotifyClient::event(tdemain->_tray->winId(),"TorDisabled", i18n("You are now in Normal Mode.
Tor and TorK will operate normally.")); break; case 1: m_DNSTorified = true; @@ -1348,7 +1348,7 @@ void tork::filterExited() client->enableTransPort(true); } m_SecurityButton->setIconSet(SmallIconSet("tork_agent")); - KNotifyClient::event(kmain->_tray->winId(),"TorDisabled", i18n("You are now in DNS FailSafe Mode.
All DNS queries will be routed through Tor.")); + KNotifyClient::event(tdemain->_tray->winId(),"TorDisabled", i18n("You are now in DNS FailSafe Mode.
All DNS queries will be routed through Tor.")); break; case 2: m_DNSTorified = true; @@ -1357,7 +1357,7 @@ void tork::filterExited() client->enableTransPort(true); } m_SecurityButton->setIconSet(SmallIconSet("gv")); - KNotifyClient::event(kmain->_tray->winId(),"TorDisabled", i18n("You are now in System FailSafe Mode.
Tor will use new routes for every new connection as often as possible.
All secure traffic will be routed through Tor.")); + KNotifyClient::event(tdemain->_tray->winId(),"TorDisabled", i18n("You are now in System FailSafe Mode.
Tor will use new routes for every new connection as often as possible.
All secure traffic will be routed through Tor.")); break; default: break; @@ -1435,7 +1435,7 @@ tork::filterCountries( int id ) //SLOT // Display servers for each selected country - for ( TQMap::Iterator menu = continentMapList.begin(); + for ( TQMap::Iterator menu = continentMapList.begin(); menu != continentMapList.end(); ++menu ){ if (m_CountryMenu->isItemChecked(251)){ // If 'All' selected, deselect all items for (unsigned int index = 0; index != menu.data()->count(); ++index){ @@ -1526,7 +1526,7 @@ tork::filterServers( int id ) //SLOT } for ( TQMap::Iterator menu = continentMapList.begin(); + TDEPopupMenu*>::Iterator menu = continentMapList.begin(); menu != continentMapList.end(); ++menu ){ TQListView* tmp = dynamic_cast(m_view->serverList); filterView(countryType, tmp, menu.data(), 255, 4); @@ -1558,7 +1558,7 @@ tork::filterServers( int id ) //SLOT void tork::filterView( TQValueVector &possibleValues, TQListView* &view, - KPopupMenu* &menu, int id, int column ){ + TDEPopupMenu* &menu, int id, int column ){ if (possibleValues[id] == "All"){ TQListViewItemIterator it(view); @@ -1601,7 +1601,7 @@ tork::filterView( TQValueVector &possibleValues, TQListView* &view, void tork::filterViewServers( TQValueVector &possibleValues, - TQListView* &view, KPopupMenu* &menu, int , + TQListView* &view, TDEPopupMenu* &menu, int , int column) //SLOT { @@ -1692,14 +1692,14 @@ void tork::optionsConfigureKeys() void tork::optionsConfigureToolbars() { // use the standard toolbar editor - #if defined(KDE_MAKE_VERSION) - # if KDE_VERSION >= KDE_MAKE_VERSION(3,1,0) - saveMainWindowSettings(KGlobal::config(), autoSaveGroup()); + #if defined(TDE_MAKE_VERSION) + # if TDE_VERSION >= TDE_MAKE_VERSION(3,1,0) + saveMainWindowSettings(TDEGlobal::config(), autoSaveGroup()); # else - saveMainWindowSettings(KGlobal::config()); + saveMainWindowSettings(TDEGlobal::config()); # endif #else - saveMainWindowSettings(KGlobal::config()); + saveMainWindowSettings(TDEGlobal::config()); #endif KEditToolbar dlg(factory()); connect(&dlg,SIGNAL(newToolbarConfig()),this,SLOT(newToolbarConfig())); @@ -1712,14 +1712,14 @@ void tork::newToolbarConfig() // recreate our GUI, and re-apply the settings (e.g. "text under icons", etc.) createGUI(); - #if defined(KDE_MAKE_VERSION) - # if KDE_VERSION >= KDE_MAKE_VERSION(3,1,0) - applyMainWindowSettings(KGlobal::config(), autoSaveGroup()); + #if defined(TDE_MAKE_VERSION) + # if TDE_VERSION >= TDE_MAKE_VERSION(3,1,0) + applyMainWindowSettings(TDEGlobal::config(), autoSaveGroup()); # else - applyMainWindowSettings(KGlobal::config()); + applyMainWindowSettings(TDEGlobal::config()); # endif #else - applyMainWindowSettings(KGlobal::config()); + applyMainWindowSettings(TDEGlobal::config()); #endif } @@ -1728,8 +1728,8 @@ void tork::copyOldConfig() { TorkConfig::writeConfig(); - KConfigSkeletonItem::List pitems(TorkConfig::self()->items()); - KConfigSkeletonItem::List::ConstIterator it; + TDEConfigSkeletonItem::List pitems(TorkConfig::self()->items()); + TDEConfigSkeletonItem::List::ConstIterator it; PrevConfig::PrevConfigList::iterator tp; for( it = pitems.begin(); it != pitems.end(); ++it ) { @@ -1762,12 +1762,12 @@ void tork::optionsPreferences() copyOldConfig(); - TorkConfigDialog* dialog = (TorkConfigDialog*) KConfigDialog::exists( "settings" ); + TorkConfigDialog* dialog = (TorkConfigDialog*) TDEConfigDialog::exists( "settings" ); if( !dialog ) { - //KConfigDialog didn't find an instance of this dialog, so lets create it : + //TDEConfigDialog didn't find an instance of this dialog, so lets create it : dialog = new TorkConfigDialog( this, "settings", TorkConfig::self() ); } @@ -1791,11 +1791,11 @@ void tork::openConfig(const TQCString& page) // // compare the names of the widgets in the .ui file // to the names of the variables in the .kcfg file - TorkConfigDialog* dialog = (TorkConfigDialog*) KConfigDialog::exists( "settings" ); + TorkConfigDialog* dialog = (TorkConfigDialog*) TDEConfigDialog::exists( "settings" ); if( !dialog ) { - //KConfigDialog didn't find an instance of this dialog, so lets create it : + //TDEConfigDialog didn't find an instance of this dialog, so lets create it : dialog = new TorkConfigDialog( this, "settings", TorkConfig::self() ); } @@ -1942,7 +1942,7 @@ void tork::startTor() *childproc << TorkConfig::torLocation() << " -f " + torConfFile; - connect( childproc, SIGNAL(processExited(KProcess *)), + connect( childproc, SIGNAL(processExited(TDEProcess *)), SLOT(childExited()) ); connect( childproc, SIGNAL(readReady(KProcIO *)), SLOT(receivedOutput(KProcIO *)) ); @@ -1974,7 +1974,7 @@ void tork::stopTor() { if (m_DNSTorified){ - KNotifyClient::event(kmain->_tray->winId(),"TorDisabled", i18n("You are now in FailSafe Mode.
You need to be in Normal Mode before you can stop Tor.")); + KNotifyClient::event(tdemain->_tray->winId(),"TorDisabled", i18n("You are now in FailSafe Mode.
You need to be in Normal Mode before you can stop Tor.")); return; } @@ -2013,7 +2013,7 @@ void tork::stopTor() //Reset Country filter menu to 'All' checked - for ( TQMap::Iterator menu = continentMapList.begin(); menu != continentMapList.end(); ++menu ){ + for ( TQMap::Iterator menu = continentMapList.begin(); menu != continentMapList.end(); ++menu ){ for (unsigned int index = 0; index != menu.data()->count(); ++index){ menu.data()->setItemChecked( menu.data()->idAt(index), false ); } @@ -2028,7 +2028,7 @@ void tork::stopTor() //Reset Pseudonymity filter menu to 'All' checked - for ( TQMap::Iterator menu = continentMap.begin(); menu != continentMap.end(); ++menu ) + for ( TQMap::Iterator menu = continentMap.begin(); menu != continentMap.end(); ++menu ) { for (unsigned int index = 0; index != menu.data()->count(); ++index){ menu.data()->setItemChecked( menu.data()->idAt(index),false); @@ -2361,8 +2361,8 @@ void tork::writeCustomOptions2(TQTextStream &ts) } - KConfigSkeletonItem::List items = TorkConfig::self()->items(); - KConfigSkeletonItem::List::ConstIterator it; + TDEConfigSkeletonItem::List items = TorkConfig::self()->items(); + TDEConfigSkeletonItem::List::ConstIterator it; for( it = items.begin(); it != items.end(); ++it ) { kdDebug() << (*it)->name() << endl; if (elementShouldBeUsed((*it))){ @@ -2403,7 +2403,7 @@ void tork::writeCustomOptions2(TQTextStream &ts) } -bool tork::elementShouldBeUsed(const KConfigSkeletonItem* it) +bool tork::elementShouldBeUsed(const TDEConfigSkeletonItem* it) { @@ -2425,7 +2425,7 @@ bool tork::elementShouldBeUsed(const KConfigSkeletonItem* it) return false; } -bool tork::noSpecialProcessing(const KConfigSkeletonItem* it, TQTextStream &ts) +bool tork::noSpecialProcessing(const TDEConfigSkeletonItem* it, TQTextStream &ts) { if (((*it).name() == "DirListenAddress") || @@ -2636,7 +2636,7 @@ void tork::privoxyExited() died = true; if (privoxyproc != 0L){ - disconnect( privoxyproc, SIGNAL(processExited(KProcess *)), + disconnect( privoxyproc, SIGNAL(processExited(TDEProcess *)), this,SLOT(privoxyExited()) ); delete privoxyproc; privoxyproc = 0L; @@ -2748,7 +2748,7 @@ void tork::startPrivoxy() } if (privoxyproc != 0L){ - disconnect( privoxyproc, SIGNAL(processExited(KProcess *)), + disconnect( privoxyproc, SIGNAL(processExited(TDEProcess *)), this,SLOT(privoxyExited()) ); delete privoxyproc; privoxyproc = 0L; @@ -2772,7 +2772,7 @@ void tork::startPrivoxy() *privoxyproc << TorkConfig::privoxyLocation() << " --user " << getenv("USER") << " --no-daemon --pidfile " << privoxypid << " " << privoxyConfFile; - connect( privoxyproc, SIGNAL(processExited(KProcess *)), + connect( privoxyproc, SIGNAL(processExited(TDEProcess *)), SLOT(privoxyExited()) ); privoxyproc->start(KProcIO::NotifyOnExit) ; @@ -3178,7 +3178,7 @@ void tork::copyCookie() KProcIO *catproc = new KProcIO(); catproc->setUseShell(TRUE); TQString whichCommand= TQString( - "kdesu -c '" + "tdesu -c '" "mkdir -p -m 600 %1/.tor;" "cp -u /var/lib/tor/control_auth_cookie %2/.tor/control_auth_cookie;" "cp -u /usr/local/var/lib/tor/control_auth_cookie %3/.tor/control_auth_cookie;" @@ -3365,9 +3365,9 @@ void tork::toggleKDESetting() setKDE(TorkConfig::kDEUsesTor()); if (TorkConfig::kDEUsesTor()) - KNotifyClient::event(kmain->_tray->winId(),"TorDisabled", i18n("All Konqueror Sessions Are Now Safe for Anonymous Use.
Amarok, Akregator, KTorrent should be treated with caution!
This is because they may have javascript/java/plugins/flash enabled.")); + KNotifyClient::event(tdemain->_tray->winId(),"TorDisabled", i18n("All Konqueror Sessions Are Now Safe for Anonymous Use.
Amarok, Akregator, KTorrent should be treated with caution!
This is because they may have javascript/java/plugins/flash enabled.")); else - KNotifyClient::event(kmain->_tray->winId(),"TorDisabled", i18n("Konqueror is Now Back to " + KNotifyClient::event(tdemain->_tray->winId(),"TorDisabled", i18n("Konqueror is Now Back to " "Non-Anonymous Use!
Close Konqueror completely and do not use it non-anonymously for a while.
" "This is because malicious websites could gain access to information from your anonymous " "session.")); @@ -3380,9 +3380,9 @@ void tork::enableKDE(bool enable) setKDE(TorkConfig::kDEUsesTor()); if (TorkConfig::kDEUsesTor()) - KNotifyClient::event(kmain->_tray->winId(),"TorDisabled", i18n("All Konqueror Sessions Are Now Safe for Anonymous Use.
Amarok, Akregator, KTorrent should be treated with caution!
This is because they may have javascript/java/plugins/flash enabled.")); + KNotifyClient::event(tdemain->_tray->winId(),"TorDisabled", i18n("All Konqueror Sessions Are Now Safe for Anonymous Use.
Amarok, Akregator, KTorrent should be treated with caution!
This is because they may have javascript/java/plugins/flash enabled.")); else - KNotifyClient::event(kmain->_tray->winId(),"TorDisabled", i18n("Konqueror is Now Back to " + KNotifyClient::event(tdemain->_tray->winId(),"TorDisabled", i18n("Konqueror is Now Back to " "Non-Anonymous Use!
Close Konqueror completely and do not use it non-anonymously for a while.
" "This is because malicious websites could gain access to information from your anonymous " "session.")); @@ -3427,7 +3427,7 @@ void tork::setKDE(bool set) if (!m_view->konqitem) return; - KConfig* config = new KConfig("kioslaverc", false, false); + TDEConfig* config = new TDEConfig("tdeioslaverc", false, false); config->setGroup( "Proxy Settings" ); if (set){ config->writeEntry( "httpProxy", TQString("%1:%2") @@ -3441,15 +3441,15 @@ void tork::setKDE(bool set) .arg(TorkConfig::konqFtpProxyPort()) ); config->writeEntry( "ProxyType", "1" ); config->sync(); - config = new KConfig("kcookiejarrc", false, false); + config = new TDEConfig("kcookiejarrc", false, false); config->setGroup( "Cookie Policy" ); - //KConfig doesn't return a bool, just a text representation of the bool + //TDEConfig doesn't return a bool, just a text representation of the bool TorkConfig::setOriginalCookies(config->readEntry( "Cookies" ) == "true" ? true : false); config->writeEntry( "Cookies", !TorkConfig::disableCookies() ); TorkConfig::writeConfig(); config->sync(); - config = new KConfig("kio_httprc", false, false); + config = new TDEConfig("tdeio_httprc", false, false); TorkConfig::setOriginalUseCache(config->readEntry( "UseCache" ) == "true" ? true : false); TorkConfig::setOriginalSendUserAgent(config->readEntry("SendUserAgent" ) @@ -3459,7 +3459,7 @@ void tork::setKDE(bool set) !TorkConfig::disableBrowserIdentification() ); TorkConfig::writeConfig(); config->sync(); - config = new KConfig("konquerorrc", false, false); + config = new TDEConfig("konquerorrc", false, false); config->setGroup( "Java/JavaScript Settings" ); TorkConfig::setOriginalEnableJavascript(config->readEntry( "EnableJavaScript" ) == "true" ? true : false); @@ -3479,19 +3479,19 @@ void tork::setKDE(bool set) config->writeEntry( "ProxyType", TorkConfig::originalProxyType() ); config->sync(); - config = new KConfig("kcookiejarrc", false, false); + config = new TDEConfig("kcookiejarrc", false, false); config->setGroup( "Cookie Policy" ); config->writeEntry( "Cookies", TorkConfig::originalCookies() ); config->sync(); - config = new KConfig("kio_httprc", false, false); + config = new TDEConfig("tdeio_httprc", false, false); config->writeEntry( "UseCache", TorkConfig::originalUseCache() ); config->writeEntry( "SendUserAgent", TorkConfig::originalSendUserAgent() ); config->sync(); kdDebug() << "UseCache" << config->readEntry( "UseCache" ) << endl; - config = new KConfig("konquerorrc", false, false); + config = new TDEConfig("konquerorrc", false, false); config->setGroup( "Java/JavaScript Settings" ); config->writeEntry( "EnableJavaScript", TorkConfig::originalEnableJavascript() ); config->writeEntry( "EnableJava", TorkConfig::originalEnableJava() ); @@ -3502,7 +3502,7 @@ void tork::setKDE(bool set) // Inform all running io-slaves about the changes... // if we cannot update, ioslaves inform the end user... - if (!DCOPRef("*", "KIO::Scheduler").send("reparseSlaveConfiguration", TQString::null)) + if (!DCOPRef("*", "TDEIO::Scheduler").send("reparseSlaveConfiguration", TQString::null)) { TQString caption = i18n("Update Failed"); TQString message = i18n("You have to restart the running applications " @@ -3627,13 +3627,13 @@ void tork::showWarning( display_status_t &msg, const TQString &headline,const TQ m_tooltip->display(); - if (!kmain->isActiveWindow()){ + if (!tdemain->isActiveWindow()){ KPassivePopup *pop; TQPoint pnt; - pop = new KPassivePopup( kmain->_tray ); - pnt = kmain->_tray->pos(); + pop = new KPassivePopup( tdemain->_tray ); + pnt = tdemain->_tray->pos(); pop->setTimeout(15000); pop->setView( i18n("%1").arg(headline),i18n("See TorK window for details.") ); pop->show(TQPoint(pnt)); @@ -3689,13 +3689,13 @@ void tork::askQuestion(display_status_t &msg, const TQString &headline,const TQS m_tooltip->display(); - if (!kmain->isActiveWindow()){ + if (!tdemain->isActiveWindow()){ KPassivePopup *pop; TQPoint pnt; - pop = new KPassivePopup( kmain->_tray ); - pnt = kmain->_tray->pos(); + pop = new KPassivePopup( tdemain->_tray ); + pnt = tdemain->_tray->pos(); pop->setTimeout(15000); pop->setView( i18n("%1").arg(headline),i18n("%1 See TorK window for details.").arg(body) ); pop->show(TQPoint(pnt)); @@ -3836,7 +3836,7 @@ void tork::torClosedConnection() if (m_DNSTorified){ - KNotifyClient::event(kmain->_tray->winId(),"TorDisabled", + KNotifyClient::event(tdemain->_tray->winId(),"TorDisabled", i18n("You are still in" " FailSafe Mode.
If Tor is still running its capacity to route FailSafe traffic
will" " remain enabled. Enter your password to return
the rest of your system to Normal Mode.")); @@ -3953,7 +3953,7 @@ void tork::startNetStat() *netstatproc << netstatcmd; - connect( netstatproc, SIGNAL(processExited(KProcess *)), + connect( netstatproc, SIGNAL(processExited(TDEProcess *)), SLOT(netStatExited()) ); connect( netstatproc, SIGNAL(readReady(KProcIO *)), SLOT(receivedNetStatOutput(KProcIO *)) ); @@ -4337,10 +4337,10 @@ void tork::resetTor() { KProcIO *catproc = new KProcIO(); catproc->setUseShell(TRUE); - TQString whichCommand= "kdesu -c 'killall -s HUP tor'"; + TQString whichCommand= "tdesu -c 'killall -s HUP tor'"; *catproc<start(KProcIO::NotifyOnExit,TRUE); - connect( catproc, SIGNAL(processExited(KProcess *)), + connect( catproc, SIGNAL(processExited(TDEProcess *)), SLOT(resetExited()) ); } diff --git a/src/tork.desktop b/src/tork.desktop index 8518c14..85d9a8b 100644 --- a/src/tork.desktop +++ b/src/tork.desktop @@ -3,7 +3,7 @@ Name=TorK GenericName=Anonymity Manager Comment=An Anonymity Manager for KDE Type=Application -Categories=Qt;KDE;Network;FileTransfer +Categories=Qt;TDE;Network;FileTransfer Terminal=false Icon=tork Exec=tork %i %m -caption "%c" %u diff --git a/src/tork.h b/src/tork.h index 4219fd8..1ad1497 100644 --- a/src/tork.h +++ b/src/tork.h @@ -27,9 +27,9 @@ #include #endif -#include -#include -#include +#include +#include +#include #include "torkview.h" #include "torclient.h" @@ -40,9 +40,9 @@ #include "dcoptork.h" #include "testprivacyproxy.h" -#include -#include -#include +#include +#include +#include #include #include "update.h" @@ -51,9 +51,9 @@ #include "hiddensrvs.h" class KPrinter; -class KToggleAction; -class KPopupMenu; -class KActionMenu; +class TDEToggleAction; +class TDEPopupMenu; +class TDEActionMenu; class KURL; class TrayIcon; class TQLabel; @@ -62,8 +62,8 @@ class TorClient; class TQPoint; class StatGraph; class TorkConfig; -class KConfigSkeleton; -class KConfigSkeletonItem; +class TDEConfigSkeleton; +class TDEConfigSkeletonItem; class KTempFile; class KWindModule; class UPnPManager; @@ -89,7 +89,7 @@ typedef enum display_status_t { * @author Robert Hogan * @version 0.03 */ -class tork : public KMainWindow, virtual public DCOPTork +class tork : public TDEMainWindow, virtual public DCOPTork { Q_OBJECT public: @@ -108,7 +108,7 @@ public: TrayIcon *_tray; TQDict inodes; bool connectedToTor(){return (client!=0) ? true : false;}; - KPopupMenu* m_LaunchMenu; + TDEPopupMenu* m_LaunchMenu; void anonymousFirefox(){m_view->anonymousFirefox();}; void anonymousOpera(){m_view->anonymousOpera();}; void anonymousEmail(){m_view->sendAnonymousEmail(); hide();}; @@ -287,13 +287,13 @@ private: void showWarning( display_status_t &msg, const TQString &headline,const TQString &torsaid,const TQString &thismeans, const TQString &type, const TQString &icon, bool always, bool showstopper); void askQuestion(display_status_t &msg, const TQString &headline,const TQString &torsaid,const TQString &body,const TQString &question,void (tork::*pt2Func)(), const TQString &type, const TQString &icon, bool persistent, bool showstopper); void processQueue(); - bool elementShouldBeUsed(const KConfigSkeletonItem* it); - bool noSpecialProcessing(const KConfigSkeletonItem* it, TQTextStream &ts); + bool elementShouldBeUsed(const TDEConfigSkeletonItem* it); + bool noSpecialProcessing(const TDEConfigSkeletonItem* it, TQTextStream &ts); TQString doHashPassword(); bool queryClose(); void prepareToShut(); - void filterViewServers( TQValueVector &possibleValues, TQListView* &view, KPopupMenu* &menu, int id, int column ); - void filterView( TQValueVector &possibleValues, TQListView* &view, KPopupMenu* &menu, int id, int column ); + void filterViewServers( TQValueVector &possibleValues, TQListView* &view, TDEPopupMenu* &menu, int id, int column ); + void filterView( TQValueVector &possibleValues, TQListView* &view, TDEPopupMenu* &menu, int id, int column ); TQString createFailSafeCommand( const TQStringList &filterRules, bool set ); void updateServerClientStatusBar(const TQStringList &client, const TQStringList &server); void updateToolBar(); @@ -301,59 +301,59 @@ private: private: KPrinter *m_printer; - KToggleAction *m_toolbarAction; - KToggleAction *m_statusbarAction; - KAction *torkConfigure; - KAction *torkStop; - KAction *torkStart; - KAction *torkUpdateTork; - KAction *torkUpdateStable; - KAction *torkUpdateUnstable; - KAction *torkUpdatePrivoxy; - KAction *torkFirstRunWizard; - KAction *torkTip; - KAction *enableKonqi; - KAction *enableTormon; - //KAction *toggleParanoid; - KAction *browseHiddenServices; - KAction *browseNetworkList; - KAction *toggleTorbar; - KActionMenu* m_ServerFilterButton; - KActionMenu* m_LaunchMenuButton; - KActionMenu* m_LogFilterButton; - KActionMenu* m_TrafficFilterButton; - KPopupMenu* m_ServerFilterMenu; - KPopupMenu* m_LogFilterMenu; - KPopupMenu* m_TrafficFilterMenu; - KPopupMenu* m_TorTrafficFilterMenu; - KPopupMenu* m_NonTorTrafficFilterMenu; - KPopupMenu* m_IPFilterMenu; - KPopupMenu* m_PseudoMenu; - KPopupMenu* m_PseudoMenuEU; - KPopupMenu* m_PseudoMenuSA; - KPopupMenu* m_PseudoMenuAS; - KPopupMenu* m_PseudoMenuNA; - KPopupMenu* m_PseudoMenuAN; - KPopupMenu* m_PseudoMenuAF; - KPopupMenu* m_PseudoMenuNN; - KPopupMenu* m_PseudoMenuOC; - KActionMenu* m_PseudoButton; - KAction* m_IdentityButton; - KAction* m_ModeButton; - KAction* m_UnCensorButton; - KPopupMenu* m_CountryMenu; - KPopupMenu* m_CountryMenuEU; - KPopupMenu* m_CountryMenuSA; - KPopupMenu* m_CountryMenuAS; - KPopupMenu* m_CountryMenuNA; - KPopupMenu* m_CountryMenuAN; - KPopupMenu* m_CountryMenuAF; - KPopupMenu* m_CountryMenuNN; - KPopupMenu* m_CountryMenuOC; - KActionMenu* m_ServerButton; - KPopupMenu* m_ServerButtonMenu; - KActionMenu* m_SecurityButton; - KPopupMenu* m_SecurityButtonMenu; + TDEToggleAction *m_toolbarAction; + TDEToggleAction *m_statusbarAction; + TDEAction *torkConfigure; + TDEAction *torkStop; + TDEAction *torkStart; + TDEAction *torkUpdateTork; + TDEAction *torkUpdateStable; + TDEAction *torkUpdateUnstable; + TDEAction *torkUpdatePrivoxy; + TDEAction *torkFirstRunWizard; + TDEAction *torkTip; + TDEAction *enableKonqi; + TDEAction *enableTormon; + //TDEAction *toggleParanoid; + TDEAction *browseHiddenServices; + TDEAction *browseNetworkList; + TDEAction *toggleTorbar; + TDEActionMenu* m_ServerFilterButton; + TDEActionMenu* m_LaunchMenuButton; + TDEActionMenu* m_LogFilterButton; + TDEActionMenu* m_TrafficFilterButton; + TDEPopupMenu* m_ServerFilterMenu; + TDEPopupMenu* m_LogFilterMenu; + TDEPopupMenu* m_TrafficFilterMenu; + TDEPopupMenu* m_TorTrafficFilterMenu; + TDEPopupMenu* m_NonTorTrafficFilterMenu; + TDEPopupMenu* m_IPFilterMenu; + TDEPopupMenu* m_PseudoMenu; + TDEPopupMenu* m_PseudoMenuEU; + TDEPopupMenu* m_PseudoMenuSA; + TDEPopupMenu* m_PseudoMenuAS; + TDEPopupMenu* m_PseudoMenuNA; + TDEPopupMenu* m_PseudoMenuAN; + TDEPopupMenu* m_PseudoMenuAF; + TDEPopupMenu* m_PseudoMenuNN; + TDEPopupMenu* m_PseudoMenuOC; + TDEActionMenu* m_PseudoButton; + TDEAction* m_IdentityButton; + TDEAction* m_ModeButton; + TDEAction* m_UnCensorButton; + TDEPopupMenu* m_CountryMenu; + TDEPopupMenu* m_CountryMenuEU; + TDEPopupMenu* m_CountryMenuSA; + TDEPopupMenu* m_CountryMenuAS; + TDEPopupMenu* m_CountryMenuNA; + TDEPopupMenu* m_CountryMenuAN; + TDEPopupMenu* m_CountryMenuAF; + TDEPopupMenu* m_CountryMenuNN; + TDEPopupMenu* m_CountryMenuOC; + TDEActionMenu* m_ServerButton; + TDEPopupMenu* m_ServerButtonMenu; + TDEActionMenu* m_SecurityButton; + TDEPopupMenu* m_SecurityButtonMenu; TQLabel* m_statusInfo; TQLabel* m_statusTransfer; @@ -379,8 +379,8 @@ private: display_status_t* m_msg; KProcIO *hashproc; TQString m_hashedpassword; - KConfigSkeletonItem::List previtems; - KConfigSkeleton pcopy; + TDEConfigSkeletonItem::List previtems; + TDEConfigSkeleton pcopy; PrevConfig::PrevConfigList prevlist; TorkUpdate* updater; KTempFile* tfTor; @@ -389,8 +389,8 @@ private: TQWidget* prev; TQValueList ordinaryServerList; - TQMap continentMap; - TQMap continentMapList; + TQMap continentMap; + TQMap continentMapList; TQStringList discoveredRouters; int filterId; @@ -429,7 +429,7 @@ private: }; -extern tork *kmain; +extern tork *tdemain; #endif // _TORK_H_ diff --git a/src/tork.kcfgc b/src/tork.kcfgc index fd797c4..4672c06 100644 --- a/src/tork.kcfgc +++ b/src/tork.kcfgc @@ -1,4 +1,4 @@ -# Code generation options for kconfig_compiler +# Code generation options for tdeconfig_compiler File=torkconfig.kcfg ClassName=Settings Singleton=true diff --git a/src/tork_downloadwithfirefox.desktop b/src/tork_downloadwithfirefox.desktop index c374e6b..88d9849 100644 --- a/src/tork_downloadwithfirefox.desktop +++ b/src/tork_downloadwithfirefox.desktop @@ -4,7 +4,7 @@ Actions=TorkDownload; Icon=tork_firefox ServiceTypes=all/allfiles ExcludeServiceTypes=kdedevice/* -X-KDE-ShowIfRunning=tork +X-TDE-ShowIfRunning=tork [Desktop Action TorkDownload] Exec=dcop tork DCOPTork startEverything;dcop tork DCOPTork anonymizedFirefox %U; diff --git a/src/tork_downloadwithkonqueror.desktop b/src/tork_downloadwithkonqueror.desktop index e23144d..dac692f 100644 --- a/src/tork_downloadwithkonqueror.desktop +++ b/src/tork_downloadwithkonqueror.desktop @@ -4,7 +4,7 @@ Actions=TorkDownload; Icon=konqueror ServiceTypes=all/allfiles ExcludeServiceTypes=kdedevice/* -X-KDE-ShowIfRunning=tork +X-TDE-ShowIfRunning=tork [Desktop Action TorkDownload] Exec=konqueror tor:%U; diff --git a/src/tork_downloadwithopera.desktop b/src/tork_downloadwithopera.desktop index 8b21fd1..7e31adc 100644 --- a/src/tork_downloadwithopera.desktop +++ b/src/tork_downloadwithopera.desktop @@ -4,7 +4,7 @@ Actions=TorkDownload; Icon=tork_opera ServiceTypes=all/allfiles ExcludeServiceTypes=kdedevice/* -X-KDE-ShowIfRunning=tork +X-TDE-ShowIfRunning=tork [Desktop Action TorkDownload] Exec=dcop tork DCOPTork startEverything;dcop tork DCOPTork anonymizedOpera %U; diff --git a/src/torkactivelabel.cpp b/src/torkactivelabel.cpp index 1fae5a2..4fad736 100644 --- a/src/torkactivelabel.cpp +++ b/src/torkactivelabel.cpp @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include TorkActiveLabel::TorkActiveLabel( const TQString &text,TQWidget * parent, const char * name) : diff --git a/src/torkapplet/Makefile.am b/src/torkapplet/Makefile.am index 4542d3b..284fb27 100644 --- a/src/torkapplet/Makefile.am +++ b/src/torkapplet/Makefile.am @@ -5,7 +5,7 @@ kde_module_LTLIBRARIES = kickermenu_tork.la kickermenu_tork_la_SOURCES = tork_mnu.cpp ../functions.cpp kickermenu_tork_la_LDFLAGS = $(all_libraries) -module -avoid-version -kickermenu_tork_la_LIBADD = $(LIB_KDEUI) $(LIB_KIO) $(LIB_KDECORE) -lDCOP $(LIB_QT) +kickermenu_tork_la_LIBADD = $(LIB_TDEUI) $(LIB_KIO) $(LIB_TDECORE) -lDCOP $(LIB_QT) kickermenu_tork_la_METASOURCES = AUTO diff --git a/src/torkapplet/tork_mnu.cpp b/src/torkapplet/tork_mnu.cpp index f44912b..29e96b0 100644 --- a/src/torkapplet/tork_mnu.cpp +++ b/src/torkapplet/tork_mnu.cpp @@ -29,11 +29,11 @@ #include #include -#include -#include +#include +#include #include -#include -#include +#include +#include #include #include #include @@ -41,7 +41,7 @@ #include #include #include -#include +#include #include #include "tork_mnu.h" @@ -62,7 +62,7 @@ TorkMenu::TorkMenu(TQWidget *parent, const char *name, const TQStringList& /* ar TorkMenu::~TorkMenu() { - KGlobal::locale()->removeCatalogue("libkickermenu_tork"); + TDEGlobal::locale()->removeCatalogue("libkickermenu_tork"); p_dcopServer->detach(); delete p_dcopServer; diff --git a/src/torkapplet/torkmenu.desktop b/src/torkapplet/torkmenu.desktop index a30c5d7..3f813e2 100644 --- a/src/torkapplet/torkmenu.desktop +++ b/src/torkapplet/torkmenu.desktop @@ -4,5 +4,5 @@ Type=Application Comment=Menu For Managing TorK Icon=tork -X-KDE-Library=kickermenu_tork -X-KDE-AuthorizeAction=shell_access +X-TDE-Library=kickermenu_tork +X-TDE-AuthorizeAction=shell_access diff --git a/src/torkconfig.kcfgc b/src/torkconfig.kcfgc index b298a03..590a8a0 100644 --- a/src/torkconfig.kcfgc +++ b/src/torkconfig.kcfgc @@ -1,4 +1,4 @@ -# Code generation options for kconfig_compiler +# Code generation options for tdeconfig_compiler File=torkconfig.kcfg ClassName=TorkConfig Singleton=true diff --git a/src/torkview.cpp b/src/torkview.cpp index c5e8ed7..6a238e6 100644 --- a/src/torkview.cpp +++ b/src/torkview.cpp @@ -24,7 +24,7 @@ #include "torkview.h" #include "tork.h" #include "torclient.h" -#include +#include #include #include #include "dndlistview.h" @@ -52,10 +52,10 @@ #include #include #include -#include +#include #include #include -#include +#include #include #include @@ -163,10 +163,10 @@ torkView::torkView(TQWidget *parent) m_osd = new StreamOSD(this, true); - m_osd->readSettings(KGlobal::config()); + m_osd->readSettings(TDEGlobal::config()); m_nontorosd = new StreamOSD(this, false); - m_nontorosd->readSettings(KGlobal::config()); + m_nontorosd->readSettings(TDEGlobal::config()); //Icons showing the status of the stream streamStatusIcon["SUCCEEDED"] = TQPixmap(SmallIcon("tork_green")); @@ -335,17 +335,17 @@ void torkView::anonymizedFirefox(const TQString& url) }else{ emit processWarning("cantreadprofiles",i18n("Can't read %1") .arg(TQString("%1/profiles.ini").arg(firefoxdir))); - KIO::NetAccess::del(torkfirefox,0L); + TDEIO::NetAccess::del(torkfirefox,0L); return; } TQString originalprofile = line.replace("Path=",""); TQString originalfirefox = TQString("%1/%2").arg(firefoxdir).arg(originalprofile); - if (!KIO::NetAccess::dircopy(originalfirefox,torkfirefox, 0L)) + if (!TDEIO::NetAccess::dircopy(originalfirefox,torkfirefox, 0L)) { emit processWarning("cantcopyprofile",i18n("Can't copy %1").arg(originalfirefox)); - KIO::NetAccess::del(torkfirefox,0L); + TDEIO::NetAccess::del(torkfirefox,0L); return; } @@ -365,7 +365,7 @@ void torkView::anonymizedFirefox(const TQString& url) }else{ emit processWarning("cantreadprofiles",i18n("Can't read %1") .arg(TQString("%1/profiles.ini").arg(firefoxdir))); - KIO::NetAccess::del(torkfirefox,0L); + TDEIO::NetAccess::del(torkfirefox,0L); return; } @@ -439,7 +439,7 @@ void torkView::anonymizedFirefox(const TQString& url) }else{ emit processWarning("cantwritefirefoxsettings", i18n("Can't write to %1").arg(TQString("%1/prefs.js").arg(torkfirefox))); - KIO::NetAccess::del(torkfirefox,0L); + TDEIO::NetAccess::del(torkfirefox,0L); return; } @@ -461,7 +461,7 @@ void torkView::anonymizedOpera(const TQString& url) TQString torkopera = TQString("%1/.opera-tork").arg(getenv("HOME")); TQDir torkdir(torkopera); if (!torkdir.exists()) - KIO::NetAccess::dircopy(originalopera,torkopera,0L); + TDEIO::NetAccess::dircopy(originalopera,torkopera,0L); TQFile inf(TQString("%1/.opera-tork/opera6.ini").arg(getenv("HOME"))); if ( inf.open(IO_WriteOnly | IO_Append) ) { @@ -1116,7 +1116,7 @@ TQPixmap torkView::streamProgram(const TQString &program) { - TQString prog = KGlobal::iconLoader()->iconPath(program, KIcon::Small, true); + TQString prog = TDEGlobal::iconLoader()->iconPath(program, TDEIcon::Small, true); if (prog.isEmpty()) return SmallIcon( "exec" ); else @@ -1428,14 +1428,14 @@ void torkView::displayError( const TQString &caption, const TQString &infol) KPassivePopup* pop; TQPoint pnt; - if (kmain->isActiveWindow()){ - pop = new KPassivePopup( kmain ); - pnt = kmain->pos() += kmain->m_view->pos() += kmain->m_view->circuitList->pos() += - kmain->m_view->circuitList->getMousePos() += kmain->m_view->splitter3->pos() += - kmain->m_view->splitter4->pos() += kmain->m_view->groupBox1->pos(); + if (tdemain->isActiveWindow()){ + pop = new KPassivePopup( tdemain ); + pnt = tdemain->pos() += tdemain->m_view->pos() += tdemain->m_view->circuitList->pos() += + tdemain->m_view->circuitList->getMousePos() += tdemain->m_view->splitter3->pos() += + tdemain->m_view->splitter4->pos() += tdemain->m_view->groupBox1->pos(); }else{ - pop = new KPassivePopup( kmain->_tray ); - pnt = kmain->_tray->pos(); + pop = new KPassivePopup( tdemain->_tray ); + pnt = tdemain->_tray->pos(); } pop->setView( caption,info ); pop->show(TQPoint(pnt)); @@ -1450,12 +1450,12 @@ void torkView::displayServer( const TQString &caption, const TQString &info) KPassivePopup* pop; TQPoint pnt; - if (kmain->isActiveWindow()){ + if (tdemain->isActiveWindow()){ pop = new KPassivePopup( serverList ); - //pnt = kmain->pos() -= kmain->m_view->serverList->getMousePos() -= kmain->m_view->serverList->getMousePos() -= kmain->m_view->serverList->getMousePos(); + //pnt = tdemain->pos() -= tdemain->m_view->serverList->getMousePos() -= tdemain->m_view->serverList->getMousePos() -= tdemain->m_view->serverList->getMousePos(); }else{ - pop = new KPassivePopup( kmain->_tray ); - pnt = kmain->_tray->pos(); + pop = new KPassivePopup( tdemain->_tray ); + pnt = tdemain->_tray->pos(); } pop->setView( caption,info ); //pop->show(TQPoint(pnt)); @@ -1471,7 +1471,7 @@ void torkView::showServerBW(const TQString &fp ) TQString tmpFile; fl = TQString("http://www.noreply.org/tor-running-routers/%1/node-traf-%2.png") .arg(fp.left(2)).arg(fp); - KIO::NetAccess::download( fl, tmpFile, 0L ); + TDEIO::NetAccess::download( fl, tmpFile, 0L ); kapp->processEvents(); streamList-> setPaletteBackgroundPixmap( TQPixmap(tmpFile) ); } diff --git a/src/torkview_base.ui b/src/torkview_base.ui index 3131411..c2905f5 100644 --- a/src/torkview_base.ui +++ b/src/torkview_base.ui @@ -263,7 +263,7 @@
- + serverFilter diff --git a/src/torkview_base.ui.h b/src/torkview_base.ui.h index c15965d..4cabe40 100644 --- a/src/torkview_base.ui.h +++ b/src/torkview_base.ui.h @@ -24,7 +24,7 @@ #include #include -#include +#include #include #include #include "torkconfig.h" @@ -47,7 +47,7 @@ ResolveColMap resolveColMap; void torkview_base::init() { - serverFilter->setListView((KListView *)serverList); + serverFilter->setListView((TDEListView *)serverList); TQValueList tmp; tmp << 1; serverFilter->setSearchColumns(tmp); @@ -57,7 +57,7 @@ void torkview_base::init() serverFilter, SLOT(clear()) ); serverList->addColumn( kapp->iconLoader()->loadIconSet("tork_torsmall", - KIcon::Small),"", 24 ); + TDEIcon::Small),"", 24 ); serverList->addColumn( "Server" ); serverList->addColumn( "FP" ); serverList->addColumn( "conditions" ); @@ -80,7 +80,7 @@ void torkview_base::init() streamList->addColumn( "ID" ); streamList->addColumn( tr2i18n("Source") ); streamList->addColumn( tr2i18n("Host/Port") ); - streamList->addColumn( kapp->iconLoader()->loadIconSet("tork_torsmall", KIcon::Small),"", 24 ); + streamList->addColumn( kapp->iconLoader()->loadIconSet("tork_torsmall", TDEIcon::Small),"", 24 ); streamList->addColumn( tr2i18n("Speed") ); streamList->addColumn( tr2i18n("Exit") ); streamList->addColumn( tr2i18n("Circuit") ); @@ -93,7 +93,7 @@ void torkview_base::init() circuitList->addColumn( tr2i18n( "ID" ) ); - circuitList->addColumn( kapp->iconLoader()->loadIconSet("tork_torsmall", KIcon::Small),"", 24 ); + circuitList->addColumn( kapp->iconLoader()->loadIconSet("tork_torsmall", TDEIcon::Small),"", 24 ); circuitList->addColumn( tr2i18n( "Path" ) ); circuitList->setSelectionMode( TQListView::Extended ); circuitList->setColumnWidthMode(0, TQListView::Manual); @@ -102,7 +102,7 @@ void torkview_base::init() circuitList->setResizeMode( TQListView::LastColumn ); - ORList->addColumn( kapp->iconLoader()->loadIconSet("tork_torsmall", KIcon::Small),"", 24 ); + ORList->addColumn( kapp->iconLoader()->loadIconSet("tork_torsmall", TDEIcon::Small),"", 24 ); ORList->addColumn( tr2i18n( "Server" ) ); ORList->setSelectionMode( TQListView::Extended ); ORList->setColumnWidthMode(0, TQListView::Manual); @@ -211,8 +211,8 @@ void torkview_base::serverList_contextMenuRequested( TQListViewItem *, const TQP return; TQPopupMenu *menu = new TQPopupMenu( serverList ); - TQPopupMenu *m_ThisSession = new KPopupMenu( this ); - TQPopupMenu *m_ThisPerm = new KPopupMenu( this ); + TQPopupMenu *m_ThisSession = new TDEPopupMenu( this ); + TQPopupMenu *m_ThisPerm = new TDEPopupMenu( this ); menu->clear(); menu->insertItem( i18n("For This Session Only"), m_ThisSession ); diff --git a/src/torservers.ui.h b/src/torservers.ui.h index 0468241..aca99b1 100644 --- a/src/torservers.ui.h +++ b/src/torservers.ui.h @@ -20,7 +20,7 @@ ***************************************************************************/ #include "torkconfig.h" #include "crypto.h" -#include +#include #include #include #include diff --git a/src/trayicon.cpp b/src/trayicon.cpp index 4422bf0..6884564 100644 --- a/src/trayicon.cpp +++ b/src/trayicon.cpp @@ -41,11 +41,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#include +#include #include #include -#include -#include +#include +#include #include "trayicon.h" #include #include @@ -178,7 +178,7 @@ void TrayIcon::updateStats(const TQString & downloadBandwidthHist, } -SetMaxRate::SetMaxRate( tork *parent, const char *name):KPopupMenu(parent, name) +SetMaxRate::SetMaxRate( tork *parent, const char *name):TDEPopupMenu(parent, name) { m_parent = parent; m_rate = TorkConfig::bandwidthRate(); diff --git a/src/trayicon.h b/src/trayicon.h index 977a6ce..29d5204 100644 --- a/src/trayicon.h +++ b/src/trayicon.h @@ -43,7 +43,7 @@ #include -#include +#include #include #include #include @@ -84,7 +84,7 @@ private: }; -class SetMaxRate : public KPopupMenu +class SetMaxRate : public TDEPopupMenu { Q_OBJECT public: diff --git a/src/update.cpp b/src/update.cpp index d406ac4..43f4a8d 100644 --- a/src/update.cpp +++ b/src/update.cpp @@ -23,27 +23,27 @@ #include -#include -#include +#include +#include -#include +#include #include #include #include #include #include -#include +#include #include -#include +#include #include #include #include #include #include #include -#include +#include #include #include @@ -75,7 +75,7 @@ const char *mirrors[] = { }; TorkUpdate::TorkUpdate(TQWidget *parent, const char *name) - : TQWidget(parent, name),filelist(new KHTMLPart(this)) + : TQWidget(parent, name),filelist(new TDEHTMLPart(this)) { } @@ -141,7 +141,7 @@ void TorkUpdate::downloadComponent(TQString component, TQString version, TQStrin dlLocation = TQString("http://%1.dl.sourceforge.net/sourceforge/%2/%3-%4%5").arg(getMirror()).arg(component).arg(component).arg(version).arg(extension); TQString tmpFile; - if ( !KIO::NetAccess::download( dlLocation, tmpFile, 0L ) ){ + if ( !TDEIO::NetAccess::download( dlLocation, tmpFile, 0L ) ){ KMessageBox::information (0,i18n("Couldn't download %1.").arg(component)); delete timer; timer=0; @@ -153,7 +153,7 @@ void TorkUpdate::downloadComponent(TQString component, TQString version, TQStrin TQString tmpFile2; if (!dlLocationSig.isEmpty()){ - if ( !KIO::NetAccess::download( dlLocationSig, tmpFile2, 0L ) ){ + if ( !TDEIO::NetAccess::download( dlLocationSig, tmpFile2, 0L ) ){ KMessageBox::information (0,i18n("Couldn't download %1 signature file.").arg(component)); delete timer; timer=0; @@ -216,7 +216,7 @@ void TorkUpdate::downloadComponent(TQString component, TQString version, TQStrin entry = tar.directory()->entries(); tar.close(); // remove the temp file - //KIO::NetAccess::removeTempFile( tmpFile ); + //TDEIO::NetAccess::removeTempFile( tmpFile ); delete timer; timer=0; @@ -256,7 +256,7 @@ void TorkUpdate::downloadComponent(TQString component, TQString version, TQStrin break; case 5 : - KProcess* arkollonproc = new KShellProcess(); + TDEProcess* arkollonproc = new KShellProcess(); KMessageBox::information (this,i18n( "

If this the first time you've compiled software then here are a few useful tips:
" "1. Any error messages in the log file with the words 'KDE', 'TQt','curl' or 'X' in them mean that you need to install " @@ -266,7 +266,7 @@ void TorkUpdate::downloadComponent(TQString component, TQString version, TQStrin TQString command; if (component == "Mixminion") - command = TQString("kdesu -i tork -c 'xterm -hold -e \"cd %1;make install;printf \\\"If there were errors try downloading and installing Mixminion from the Mixminion homepage. If the installation looks successful try sending an anonymous mail to yourself. Close the window to continue.\\\"\"'").arg(configure); + command = TQString("tdesu -i tork -c 'xterm -hold -e \"cd %1;make install;printf \\\"If there were errors try downloading and installing Mixminion from the Mixminion homepage. If the installation looks successful try sending an anonymous mail to yourself. Close the window to continue.\\\"\"'").arg(configure); else if (component == "privoxy") command = TQString("cd %1; autoheader;autoconf;torkarkollon %2").arg(configure).arg(configure); else @@ -274,7 +274,7 @@ void TorkUpdate::downloadComponent(TQString component, TQString version, TQStrin *arkollonproc << command; - connect( arkollonproc, SIGNAL(processExited(KProcess *)), SLOT(torkInstallationExited(KProcess *)) ); + connect( arkollonproc, SIGNAL(processExited(TDEProcess *)), SLOT(torkInstallationExited(TDEProcess *)) ); arkollonproc->start(); } } @@ -429,7 +429,7 @@ void TorkUpdate::slotProg() } -void TorkUpdate::torkInstallationExited(KProcess* arkollonproc) +void TorkUpdate::torkInstallationExited(TDEProcess* arkollonproc) { arkollonproc = 0; @@ -487,7 +487,7 @@ void TorkUpdate::getLatestVersionFromSFHack(KURL url) if (!filelist) - filelist = new KHTMLPart(); + filelist = new TDEHTMLPart(); connect( filelist, SIGNAL( completed() ), this, SLOT( parseSFPageHack() ) ); diff --git a/src/update.h b/src/update.h index 857f472..c23c978 100644 --- a/src/update.h +++ b/src/update.h @@ -27,11 +27,11 @@ #include #endif -#include +#include #include //stack allocated #include //stack allocated #include // namespace -#include +#include namespace DOM { @@ -42,11 +42,11 @@ namespace DOM { using namespace KNetwork; class KURL; -class KProcess; +class TDEProcess; class KURLRequester; class KProgressDialog; class KProcIO; -class KHTMLPart; +class TDEHTMLPart; /** * This class serves as the main window for TorkUpdate. It handles the @@ -82,7 +82,7 @@ public slots: private slots: void slotProg(); - void torkInstallationExited(KProcess *arkollonproc); + void torkInstallationExited(TDEProcess *arkollonproc); void resolved(KResolverResults result); void parseSFPage(); void parseSFPageHack(); @@ -99,7 +99,7 @@ private: void completedSearchForUpdates(const TQString &component, const TQString &extension); double numericizeVersion(TQString &version); TQString getMirror(); - KProcess *childproc; + TDEProcess *childproc; KProcIO *versionproc; TQString tempFileName; TQString errorMessage; @@ -114,7 +114,7 @@ private: KResolver m_resolver; TQString currentTorVersion; bool m_alpha; - KHTMLPart *filelist; + TDEHTMLPart *filelist; private: KDirLister tor_lister; KURL tor_url; diff --git a/src/upnp/exitoperation.cpp b/src/upnp/exitoperation.cpp index 8eedb7a..6df1224 100644 --- a/src/upnp/exitoperation.cpp +++ b/src/upnp/exitoperation.cpp @@ -29,16 +29,16 @@ namespace kt ExitOperation::~ExitOperation() {} - ExitJobOperation::ExitJobOperation(KIO::Job* j) + ExitJobOperation::ExitJobOperation(TDEIO::Job* j) { - connect(j,SIGNAL(result(KIO::Job*)),this,SLOT(onResult( KIO::Job* ))); + connect(j,SIGNAL(result(TDEIO::Job*)),this,SLOT(onResult( TDEIO::Job* ))); } ExitJobOperation::~ExitJobOperation() { } - void ExitJobOperation::onResult(KIO::Job* ) + void ExitJobOperation::onResult(TDEIO::Job* ) { operationFinished(this); } diff --git a/src/upnp/exitoperation.h b/src/upnp/exitoperation.h index 4a27911..d969c6c 100644 --- a/src/upnp/exitoperation.h +++ b/src/upnp/exitoperation.h @@ -21,7 +21,7 @@ #define KTEXITOPERATION_H #include -#include +#include namespace kt { @@ -49,18 +49,18 @@ namespace kt }; /** - * Exit operation which waits for a KIO::Job + * Exit operation which waits for a TDEIO::Job */ class ExitJobOperation : public ExitOperation { Q_OBJECT public: - ExitJobOperation(KIO::Job* j); + ExitJobOperation(TDEIO::Job* j); virtual ~ExitJobOperation(); virtual bool deleteAllowed() const {return false;} private slots: - virtual void onResult(KIO::Job* j); + virtual void onResult(TDEIO::Job* j); }; } diff --git a/src/upnp/upnpmcastsocket.cpp b/src/upnp/upnpmcastsocket.cpp index 70853de..ff87432 100644 --- a/src/upnp/upnpmcastsocket.cpp +++ b/src/upnp/upnpmcastsocket.cpp @@ -28,8 +28,8 @@ #include #include #include -#include -#include +#include +#include /*#include #include */ #include diff --git a/src/upnp/upnprouter.cpp b/src/upnp/upnprouter.cpp index 8e39f33..e5764b5 100644 --- a/src/upnp/upnprouter.cpp +++ b/src/upnp/upnprouter.cpp @@ -18,13 +18,13 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #include -#include +#include #include -#include +#include #include #include -#include -#include +#include +#include #include "httprequest.h" #include "upnprouter.h" #include "upnpdescriptionparser.h" @@ -139,7 +139,7 @@ namespace kt services.append(s); } - void UPnPRouter::downloadFinished(KIO::Job* j) + void UPnPRouter::downloadFinished(TDEIO::Job* j) { if (j->error()) { @@ -154,8 +154,8 @@ namespace kt if (!ret) { kdDebug() << "Error parsing router description !" << endl; - TQString dest = KGlobal::dirs()->saveLocation("data","tork") + "upnp_failure"; - KIO::file_copy(target,dest,-1,true,false,false); + TQString dest = TDEGlobal::dirs()->saveLocation("data","tork") + "upnp_failure"; + TDEIO::file_copy(target,dest,-1,true,false,false); } else { @@ -169,8 +169,8 @@ namespace kt void UPnPRouter::downloadXMLFile() { // downlaod XML description into a temporary file in /tmp - KIO::Job* job = KIO::file_copy(location,tmp_file,-1,true,false,false); - connect(job,SIGNAL(result(KIO::Job *)),this,SLOT(downloadFinished( KIO::Job* ))); + TDEIO::Job* job = TDEIO::file_copy(location,tmp_file,-1,true,false,false); + connect(job,SIGNAL(result(TDEIO::Job *)),this,SLOT(downloadFinished( TDEIO::Job* ))); } void UPnPRouter::debugPrintData() @@ -465,7 +465,7 @@ namespace kt namespace bt { - WaitJob::WaitJob(Uint32 millis) : KIO::Job(false) + WaitJob::WaitJob(Uint32 millis) : TDEIO::Job(false) { connect(&timer,SIGNAL(timeout()),this,SLOT(timerDone())); timer.start(millis,true); @@ -510,14 +510,14 @@ namespace bt void WaitJob::execute(WaitJob* job) { - KIO::NetAccess::synchronousRun(job,0); + TDEIO::NetAccess::synchronousRun(job,0); } void SynchronousWait(Uint32 millis) { kdDebug() << "SynchronousWait" << endl; WaitJob* j = new WaitJob(millis); - KIO::NetAccess::synchronousRun(j,0); + TDEIO::NetAccess::synchronousRun(j,0); } diff --git a/src/upnp/upnprouter.h b/src/upnp/upnprouter.h index 8ae321e..d0590b9 100644 --- a/src/upnp/upnprouter.h +++ b/src/upnp/upnprouter.h @@ -21,7 +21,7 @@ #define KTUPNPROUTER_H #include -#include +#include #include #include "exitoperation.h" #include @@ -41,7 +41,7 @@ namespace bt * Job to wait for a certain amount of time or until one or more ExitOperation's have * finished. */ - class WaitJob : public KIO::Job + class WaitJob : public TDEIO::Job { Q_OBJECT public: @@ -90,7 +90,7 @@ namespace net { class ForwardPortList; } -namespace KIO +namespace TDEIO { class Job; } @@ -265,7 +265,7 @@ namespace kt void onReplyOK(bt::HTTPRequest* r,const TQString &,bool); void onReplyError(bt::HTTPRequest* r,const TQString &,bool); void onError(bt::HTTPRequest* r,bool); - void downloadFinished(KIO::Job* j); + void downloadFinished(TDEIO::Job* j); diff --git a/src/upnpmanager.cpp b/src/upnpmanager.cpp index d249c68..ff20746 100644 --- a/src/upnpmanager.cpp +++ b/src/upnpmanager.cpp @@ -22,7 +22,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#include +#include #include "upnpmanager.h" #include "kdebug.h" @@ -162,7 +162,7 @@ UPnPManager* UPnPManager::manager = 0; void UPnPManager::unload() { -/* TQString routers_file = KGlobal::dirs()->saveLocation("data","tork") + "routers"; +/* TQString routers_file = TDEGlobal::dirs()->saveLocation("data","tork") + "routers"; sock->saveRouters(routers_file);*/ sock->close(); delete sock; diff --git a/src/usability.ui.h b/src/usability.ui.h index b4866c0..dbf59e1 100644 --- a/src/usability.ui.h +++ b/src/usability.ui.h @@ -22,7 +22,7 @@ #include "torkconfig.h" #include "portsandnames.h" -#include +#include #include #include #include -- cgit v1.2.3