diff options
Diffstat (limited to 'src/kuarantine.cpp')
-rw-r--r-- | src/kuarantine.cpp | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/src/kuarantine.cpp b/src/kuarantine.cpp index fdb335f..03b0847 100644 --- a/src/kuarantine.cpp +++ b/src/kuarantine.cpp @@ -9,13 +9,13 @@ #include "klamav.h" -#include <klocale.h> +#include <tdelocale.h> #include <kiconloader.h> -#include <kmenubar.h> +#include <tdemenubar.h> #include <kstatusbar.h> #include <kkeydialog.h> -#include <kio/netaccess.h> -#include <kfiledialog.h> +#include <tdeio/netaccess.h> +#include <tdefiledialog.h> @@ -24,7 +24,7 @@ #include <kurlcompletion.h> #include <kcombobox.h> #include <tqlayout.h> -#include <kmessagebox.h> +#include <tdemessagebox.h> #include <kstandarddirs.h> @@ -32,7 +32,7 @@ Kuarantine::Kuarantine(TQWidget *parent, const char *name) : TQWidget(parent, name) { - config = KGlobal::config(); + config = TDEGlobal::config(); config->setGroup("Kuarantine"); lastQuarLocations = config->readListEntry("KuarantineLocations"); @@ -42,7 +42,7 @@ Kuarantine::Kuarantine(TQWidget *parent, const char *name) }else{ for (TQStringList::Iterator it = lastQuarLocations.begin(); it == lastQuarLocations.begin(); it++ ) quarloc = *it; - if (!(KIO::NetAccess::exists(quarloc,TRUE,NULL))){ + if (!(TDEIO::NetAccess::exists(quarloc,TRUE,NULL))){ KMessageBox::information (this,i18n( "Your current quarantine location ('%1') no longer exists. I'm going to attempt to create a new one.").arg(quarloc)); createQuarDir(); } @@ -250,11 +250,11 @@ void Kuarantine::refresh() TQStringList obsoleteQuarItems; - config = KGlobal::config(); + config = TDEGlobal::config(); config->setGroup("Kuarantine"); lastQuarItems = config->readListEntry(TQString("Items %1").arg(quarloc)); - if (!(KIO::NetAccess::exists(quarloc,TRUE,NULL))){ + if (!(TDEIO::NetAccess::exists(quarloc,TRUE,NULL))){ KMessageBox::information (this,i18n("Your current quarantine location ('%1') no longer exists. I'm going to attempt to create a new one.").arg(quarloc)); createQuarDir(); }else{ @@ -273,7 +273,7 @@ void Kuarantine::refresh() qname.prepend(quarloc); qname.append(":"+when); //kdDebug() << qname << endl; - if (KIO::NetAccess::exists(qname,TRUE,NULL)){ + if (TDEIO::NetAccess::exists(qname,TRUE,NULL)){ //currentbox->insertItem(*it); new TQListViewItem( currentbox, fname, itemname,when); }else{ @@ -293,7 +293,7 @@ void Kuarantine::refresh() void Kuarantine::refreshhistory() { - config = KGlobal::config(); + config = TDEGlobal::config(); config->setGroup("Kuarantine"); lastHistoryItems = config->readListEntry(TQString("History %1").arg(quarloc)); @@ -338,7 +338,7 @@ void Kuarantine::slotSearch() while ( it.current() ) { TQListViewItem* tItem = it.current(); - config = KGlobal::config(); + config = TDEGlobal::config(); config->setGroup("Kuarantine"); lastQuarItems = config->readListEntry(TQString("Items %1").arg(quarloc)); lastHistoryItems = config->readListEntry(TQString("History %1").arg(quarloc)); @@ -351,7 +351,7 @@ void Kuarantine::slotSearch() qname.prepend(quarloc); qname.append(":"+tItem->text(2)); - if (KIO::NetAccess::file_move(qname,fname)){ + if (TDEIO::NetAccess::file_move(qname,fname)){ lastQuarItems.remove(tItem->text(0)+":"+tItem->text(1)+":"+tItem->text(2)); //currentbox->takeItem(currentbox->currentItem()); @@ -378,7 +378,7 @@ void Kuarantine::updateLastQuarLocations() { - config = KGlobal::config(); + config = TDEGlobal::config(); config->setGroup("Kuarantine"); lastQuarLocations = config->readListEntry("KuarantineLocations"); @@ -416,7 +416,7 @@ void Kuarantine::slotCancel() //TQListViewItem* tItem = ( *it ); //if (tItem->isSelected()){ - config = KGlobal::config(); + config = TDEGlobal::config(); config->setGroup("Kuarantine"); lastQuarItems = config->readListEntry(TQString("Items %1").arg(quarloc)); lastHistoryItems = config->readListEntry(TQString("History %1").arg(quarloc)); @@ -436,7 +436,7 @@ void Kuarantine::slotCancel() qname.prepend(QuarLocation); qname.append(":"+( it.current() )->text(2)); - if (KIO::NetAccess::del(qname,NULL)){ + if (TDEIO::NetAccess::del(qname,NULL)){ lastQuarItems.remove(( it.current() )->text(0)+":"+( it.current() )->text(1)+":"+( it.current() )->text(2)); lastHistoryItems.prepend(( it.current() )->text(0)+":"+( it.current() )->text(1)+":"+( it.current() )->text(2)); @@ -473,7 +473,7 @@ void Kuarantine::slotClearHistory() { historybox->clear(); - config = KGlobal::config(); + config = TDEGlobal::config(); config->setGroup("Kuarantine"); lastHistoryItems = config->readListEntry(TQString("History %1").arg(quarloc)); @@ -551,7 +551,7 @@ void Kuarantine::createQuarDir(){ if (ok){ quarloc = TQString("%1").arg(path); lastQuarLocations.append( TQString("%1").arg(path)); - config = KGlobal::config(); + config = TDEGlobal::config(); config->setGroup("Kuarantine"); config->writeEntry("KuarantineLocations", lastQuarLocations); config->sync(); @@ -612,25 +612,25 @@ void Kuarantine::slotRMB( TQListViewItem* Item, const TQPoint & point, int ) TQString iconPath = locate("cache", KMimeType::favIconForURL("http://www.viruspool.net")+".png"); if ( iconPath.isEmpty() ) - vicon = SmallIcon("find"); + vicon = SmallIcon("edit-find"); else vicon = TQPixmap( iconPath ); iconPath = locate("cache", KMimeType::favIconForURL("http://www.google.com")+".png"); if ( iconPath.isEmpty() ) - gicon = SmallIcon("find"); + gicon = SmallIcon("edit-find"); else gicon = TQPixmap( iconPath ); iconPath = locate("cache", KMimeType::favIconForURL("http://www.trendmicro.com")+".png"); if ( iconPath.isEmpty() ) - ticon = SmallIcon("find"); + ticon = SmallIcon("edit-find"); else ticon = TQPixmap( iconPath ); iconPath = locate("cache", KMimeType::favIconForURL("http://www.viruslist.com")+".png"); if ( iconPath.isEmpty() ) - vlicon = SmallIcon("find"); + vlicon = SmallIcon("edit-find"); else vlicon = TQPixmap( iconPath ); @@ -658,50 +658,50 @@ void Kuarantine::slotRMB( TQListViewItem* Item, const TQPoint & point, int ) void Kuarantine::slotVirusPoolCurrent() { TQString name = currentbox->currentItem()->text(1); - kmain->klamdb->slotExternal(name,"VirusPool"); + tdemain->klamdb->slotExternal(name,"VirusPool"); } void Kuarantine::slotVirusListCurrent() { TQString name = currentbox->currentItem()->text(1); - kmain->klamdb->slotExternal(name,"VirusList"); + tdemain->klamdb->slotExternal(name,"VirusList"); } void Kuarantine::slotGoogleCurrent() { TQString name = currentbox->currentItem()->text(1); - kmain->klamdb->slotExternal(name,"Google"); + tdemain->klamdb->slotExternal(name,"Google"); } void Kuarantine::slotTrendMicroCurrent() { TQString name = currentbox->currentItem()->text(1); - kmain->klamdb->slotExternal(name, "TrendMicro"); + tdemain->klamdb->slotExternal(name, "TrendMicro"); } void Kuarantine::slotVirusPoolHistory() { TQString name = historybox->currentItem()->text(1); - kmain->klamdb->slotExternal(name,"VirusPool"); + tdemain->klamdb->slotExternal(name,"VirusPool"); } void Kuarantine::slotVirusListHistory() { TQString name = historybox->currentItem()->text(1); - kmain->klamdb->slotExternal(name,"VirusList"); + tdemain->klamdb->slotExternal(name,"VirusList"); } void Kuarantine::slotGoogleHistory() { TQString name = historybox->currentItem()->text(1); - kmain->klamdb->slotExternal(name,"Google"); + tdemain->klamdb->slotExternal(name,"Google"); } void Kuarantine::slotTrendMicroHistory() { TQString name = historybox->currentItem()->text(1); - kmain->klamdb->slotExternal(name, "TrendMicro"); + tdemain->klamdb->slotExternal(name, "TrendMicro"); } #include "kuarantine.moc" |