summaryrefslogtreecommitdiffstats
path: root/src/freshklam.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2021-01-14 14:08:07 +0200
committerMavridis Philippe <mavridisf@gmail.com>2021-01-14 14:08:07 +0200
commit71fe8d5be5cd4147b20aaba775e9573ebcf85860 (patch)
treed9c245e5b6721599d1bf2de96949fb7c66701a9d /src/freshklam.cpp
parent75f04527489372ae40c94e690013e0c84b0a7ca5 (diff)
downloadklamav-71fe8d5be5cd4147b20aaba775e9573ebcf85860.tar.gz
klamav-71fe8d5be5cd4147b20aaba775e9573ebcf85860.zip
Removed Klamd and Dazuko/Clamuko/Klamd-related code.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src/freshklam.cpp')
-rw-r--r--src/freshklam.cpp21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/freshklam.cpp b/src/freshklam.cpp
index 7f279e2..a00db74 100644
--- a/src/freshklam.cpp
+++ b/src/freshklam.cpp
@@ -5,7 +5,6 @@
#include "freshklam.h"
#include "klamav.h"
-#include "klamd.h"
#include "collectiondb.h"
/*#include "gmanedb.h"*/
#include "klamavconfig.h"
@@ -362,17 +361,7 @@ void Freshklam::slotSearch()
command += pidFileName;
freshklamAlive = TRUE;
}
-
- if (!(TDEApplication::kApplication()->isRestored())){
- if (tdemain->klamd->isKlamdAlive()){
- TQString klamdconf = tdemain->klamd->getKlamdConfFile();
- ////kdDebug() << klamdconf << endl;
- command += " --daemon-notify=";
- command += klamdconf;
- }
- }
-
writeConf();
command += " --config-file=";
command += tempFileName;
@@ -391,11 +380,6 @@ void Freshklam::slotSearch()
connect( childproc, SIGNAL(receivedStdout(TDEProcess *, char *, int)),
SLOT(receivedOutput(TDEProcess *, char *, int)) );
-// if (tdemain->klamd->isKlamdAlive())
-// tdemain->_tray->setPixmap(KSystemTray::loadIcon("klamavdl"));
-// else
-// tdemain->_tray->setPixmap(KSystemTray::loadIcon("klamavbwdl"));
-
tdemain->EnableFreshklam->setEnabled(FALSE);
tdemain->DisableFreshklam->setEnabled(TRUE);
@@ -407,10 +391,7 @@ void Freshklam::finish()
cancel_button->setEnabled(false);
enableInputs();
- if (tdemain->klamd->isKlamdAlive())
- tdemain->_tray->setPixmap(KSystemTray::loadIcon("klamav_on_acc_enabled"));
- else
- tdemain->_tray->setPixmap(KSystemTray::loadIcon("klamav_on_acc_disabled"));
+ tdemain->_tray->setPixmap(KSystemTray::loadIcon("klamav_on_acc_disabled"));
buf += '\n';
processOutput();