summaryrefslogtreecommitdiffstats
path: root/src/klamscan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/klamscan.cpp')
-rw-r--r--src/klamscan.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/klamscan.cpp b/src/klamscan.cpp
index a5dc91c..16de3c8 100644
--- a/src/klamscan.cpp
+++ b/src/klamscan.cpp
@@ -22,8 +22,8 @@
#include <tqpushbutton.h>
#include <tqlayout.h>
-#include <kcmdlineargs.h>
-#include <kmessagebox.h>
+#include <tdecmdlineargs.h>
+#include <tdemessagebox.h>
#include <tqtooltip.h>
#include <tqtoolbutton.h>
#include <dcopclient.h>
@@ -71,7 +71,7 @@ Klamscan::Klamscan(TQWidget *parent, const char *name)
- KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
+ TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
TQLabel *combo_label = new TQLabel(i18n("When a virus is found:"), privateLayoutWidget2);
@@ -132,7 +132,7 @@ Klamscan::Klamscan(TQWidget *parent, const char *name)
controls->setMargin(2);
play = new TQToolButton( controls,"play" );
- play->setIconSet( SmallIconSet( "player_play" ) );
+ play->setIconSet( SmallIconSet( "media-playback-start" ) );
play->setTextLabel(i18n( "Scan" ));
play->setTextPosition(TQToolButton::Right);
play->setUsesTextLabel(true);
@@ -140,7 +140,7 @@ Klamscan::Klamscan(TQWidget *parent, const char *name)
play->setFixedHeight(play->height() - 1);
stop = new TQToolButton( controls,"stop" );
- stop->setIconSet( SmallIconSet( "player_stop" ) );
+ stop->setIconSet( SmallIconSet( "media-playback-stop" ) );
stop->setTextLabel(i18n( "Stop" ));
stop->setTextPosition(TQToolButton::Right);
stop->setUsesTextLabel(true);
@@ -213,7 +213,7 @@ void Klamscan::slotScan()
SLOT( slotManageButtons(TQWidget *) ) );
- kmain->_tray->setPixmap(KSystemTray::loadIcon("klamav_scanning"));
+ tdemain->_tray->setPixmap(KSystemTray::loadIcon("klamav_scanning"));
TQDate today = TQDate::currentDate();
TQTime now = TQTime::currentTime();
@@ -227,7 +227,7 @@ void Klamscan::slotScan()
TQStringList filepattern;
- KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
+ TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if( args->isSet( "scanthis" ) ) {
listOfUrlsToScan.clear();
@@ -260,7 +260,7 @@ void Klamscan::slotAdvOptions(){
dialog->raise();
dialog->setActiveWindow();*/
- kmain->slotConfigKlamav( "Archive Limits" );
+ tdemain->slotConfigKlamav( "Archive Limits" );
}
@@ -286,7 +286,7 @@ void Klamscan::slotSchedule(){
void Klamscan::setDefaults(){
- config = KGlobal::config();
+ config = TDEGlobal::config();
config->setGroup("ScanPaths");
config->setGroup("Klamscan");
@@ -345,7 +345,7 @@ void Klamscan::scanURLs(const TQString &urls)
{
setActiveWindow();
raise();
- kmain->tab->setCurrentPage(0);
+ tdemain->tab->setCurrentPage(0);
TQString tmpurls = urls;
//urlsToScan = urlsToScan.replace("*"," ");
@@ -379,10 +379,10 @@ void Klamscan::scanURLs(const TQString &urls)
void Klamscan::slotStopScanning(){
- if (kmain->klamd->isKlamdAlive())
- kmain->_tray->setPixmap(KSystemTray::loadIcon("klamav_on_acc_enabled"));
+ if (tdemain->klamd->isKlamdAlive())
+ tdemain->_tray->setPixmap(KSystemTray::loadIcon("klamav_on_acc_enabled"));
else
- kmain->_tray->setPixmap(KSystemTray::loadIcon("klamav_on_acc_disabled"));
+ tdemain->_tray->setPixmap(KSystemTray::loadIcon("klamav_on_acc_disabled"));
////kdDebug() << tabBrowser->currentPage()->name() << endl;
ScanViewer* cur = static_cast<ScanViewer*>(tabBrowser->currentPage());
@@ -408,10 +408,10 @@ void Klamscan::slotStartAgain(){
void Klamscan::slotRemoveTab(){
- if (kmain->klamd->isKlamdAlive())
- kmain->_tray->setPixmap(KSystemTray::loadIcon("klamav_on_acc_enabled"));
+ if (tdemain->klamd->isKlamdAlive())
+ tdemain->_tray->setPixmap(KSystemTray::loadIcon("klamav_on_acc_enabled"));
else
- kmain->_tray->setPixmap(KSystemTray::loadIcon("klamav_on_acc_disabled"));
+ tdemain->_tray->setPixmap(KSystemTray::loadIcon("klamav_on_acc_disabled"));
////kdDebug() << tabBrowser->currentPage()->name() << endl;
if (tabBrowser->currentPageIndex() != 0){
slotStopScanning();