summaryrefslogtreecommitdiffstats
path: root/src/update.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2021-01-13 19:34:09 +0200
committerMavridis Philippe <[email protected]>2021-01-13 19:34:09 +0200
commit4c04a441814c7d1dda08f6075ab4e09dc05541df (patch)
treecf8a3dbd77114c416255d3995cd1b047072ef26a /src/update.cpp
parent357ddeb8afd82d69ef871c146f4fc8f2c67fb17e (diff)
downloadklamav-4c04a441814c7d1dda08f6075ab4e09dc05541df.tar.gz
klamav-4c04a441814c7d1dda08f6075ab4e09dc05541df.zip
Conversion KDE3->TDE
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'src/update.cpp')
-rw-r--r--src/update.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/update.cpp b/src/update.cpp
index f8497d0..8ee0ad4 100644
--- a/src/update.cpp
+++ b/src/update.cpp
@@ -25,11 +25,11 @@
#include <kstaticdeleter.h>
-#include <klocale.h>
-#include <kio/netaccess.h>
+#include <tdelocale.h>
+#include <tdeio/netaccess.h>
-#include <kaction.h>
+#include <tdeaction.h>
#include <tqcheckbox.h>
#include <kbuttonbox.h>
@@ -37,16 +37,16 @@
#include <kurlcompletion.h>
#include <kcombobox.h>
#include <tqlayout.h>
-#include <kmessagebox.h>
+#include <tdemessagebox.h>
#include <klineedit.h>
-#include <ktempfile.h>
+#include <tdetempfile.h>
#include <ksystemtray.h>
#include <ktar.h>
#include <kprogress.h>
#include <kprocio.h>
#include <knotifyclient.h>
#include <dom/html_misc.h>
-#include <kapplication.h>
+#include <tdeapplication.h>
#include <dcopclient.h>
#include <kuser.h>
@@ -78,7 +78,7 @@ const char *mirrors[] = {
};
KlamavUpdate::KlamavUpdate(TQWidget *parent, const char *name)
- : TQWidget(parent, name),filelist(new KHTMLPart(this))
+ : TQWidget(parent, name),filelist(new TDEHTMLPart(this))
{
filelist->hide();
@@ -140,7 +140,7 @@ void KlamavUpdate::downloadComponent(TQString component, TQString version, TQStr
startProgressDialog( i18n( "Downloading %1-%2..." ).arg(component).arg(version) );
TQString tmpFile;
- if ( !KIO::NetAccess::download( TQString("http://%1.dl.sourceforge.net/sourceforge/%2/%3-%4.%5").arg(getMirror()).arg(component).arg(component).arg(version).arg(extension), tmpFile, 0L ) ){
+ if ( !TDEIO::NetAccess::download( TQString("http://%1.dl.sourceforge.net/sourceforge/%2/%3-%4.%5").arg(getMirror()).arg(component).arg(component).arg(version).arg(extension), tmpFile, 0L ) ){
KMessageBox::information (this,i18n("Couldn't download %1.").arg(component));
delete timer;
timer=0;
@@ -180,7 +180,7 @@ void KlamavUpdate::downloadComponent(TQString component, TQString version, TQStr
tar.directory()->copyTo( location );
tar.close();
// remove the temp file
- KIO::NetAccess::removeTempFile( tmpFile );
+ TDEIO::NetAccess::removeTempFile( tmpFile );
delete timer;
timer=0;
@@ -215,7 +215,7 @@ void KlamavUpdate::downloadComponent(TQString component, TQString version, TQStr
break;
case 5 :
- KProcess* arkollonproc = new KShellProcess();
+ TDEProcess* arkollonproc = new KShellProcess();
//make sure we catch arkollon in the .klamav directory
// TQString curpath = (TQString) getenv("PATH");
// TQString homedir = (TQString) getenv("HOME");
@@ -230,9 +230,9 @@ void KlamavUpdate::downloadComponent(TQString component, TQString version, TQStr
TQString command = TQString("klamarkollon %1/%2-%3").arg(location).arg(component).arg(version);
*arkollonproc << command;
if (component == "klamav")
- connect( arkollonproc, SIGNAL(processExited(KProcess *)), SLOT(klamavInstallationExited(KProcess *)) );
+ connect( arkollonproc, SIGNAL(processExited(TDEProcess *)), SLOT(klamavInstallationExited(TDEProcess *)) );
else
- connect( arkollonproc, SIGNAL(processExited(KProcess *)), SLOT(clamavInstallationExited(KProcess *)) );
+ connect( arkollonproc, SIGNAL(processExited(TDEProcess *)), SLOT(clamavInstallationExited(TDEProcess *)) );
arkollonproc->start();
}
}
@@ -351,7 +351,7 @@ void KlamavUpdate::slotProg()
progressDialog->progressBar()->setProgress(progressDialog->progressBar()->progress() + 4 );
}
-void KlamavUpdate::clamavInstallationExited(KProcess* arkollonproc)
+void KlamavUpdate::clamavInstallationExited(TDEProcess* arkollonproc)
{
arkollonproc = 0;
@@ -361,7 +361,7 @@ void KlamavUpdate::clamavInstallationExited(KProcess* arkollonproc)
}
-void KlamavUpdate::klamavInstallationExited(KProcess* arkollonproc)
+void KlamavUpdate::klamavInstallationExited(TDEProcess* arkollonproc)
{
arkollonproc = 0;