diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2021-01-13 19:34:09 +0200 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2021-01-13 19:34:09 +0200 |
commit | 4c04a441814c7d1dda08f6075ab4e09dc05541df (patch) | |
tree | cf8a3dbd77114c416255d3995cd1b047072ef26a /src/klamav.cpp | |
parent | 357ddeb8afd82d69ef871c146f4fc8f2c67fb17e (diff) | |
download | klamav-4c04a441814c7d1dda08f6075ab4e09dc05541df.tar.gz klamav-4c04a441814c7d1dda08f6075ab4e09dc05541df.zip |
Conversion KDE3->TDE
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src/klamav.cpp')
-rw-r--r-- | src/klamav.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/klamav.cpp b/src/klamav.cpp index 4778c11..ab99910 100644 --- a/src/klamav.cpp +++ b/src/klamav.cpp @@ -17,46 +17,46 @@ #include "configdialog.h" #include "klamavconfig.h" -#include <klocale.h> +#include <tdelocale.h> -#include <kaction.h> +#include <tdeaction.h> #include <tqpushbutton.h> #include <tqlayout.h> #include <ksystemtray.h> -#include <kpopupmenu.h> +#include <tdepopupmenu.h> #include <kdebug.h> -#include <kmessagebox.h> +#include <tdemessagebox.h> #include <kurl.h> #include <tqdir.h> #include <tqfile.h> -Klamav *kmain = 0L; +Klamav *tdemain = 0L; Klamav::Klamav() - : KMainWindow( 0, "KlamAV " ) + : TDEMainWindow( 0, "KlamAV " ) { downloadDBForWizard = false; downloadClamAVForWizard = false; - kmain = this; + tdemain = this; TQVBoxLayout *top = new TQVBoxLayout(this,10,10); tab = new TQTabWidget(this); - _tray = new KSystemTray(kmain, "klamav tray"); + _tray = new KSystemTray(tdemain, "klamav tray"); _tray->setPixmap(KSystemTray::loadIcon("klamav_on_acc_disabled")); connect(_tray,SIGNAL(quitSelected()),SLOT(shuttingDown())); - KPopupMenu *conf_menu = _tray->contextMenu(); - EnableKlamd = new KAction(i18n("&Enable Auto-Scan"), "klamav_on_acc_enabled", 0,this, SLOT(contextEnable()),actionCollection(),"klamd_enable"); - DisableKlamd = new KAction(i18n("&Disable Auto-Scan"),"klamav_on_acc_disabled", 0,this, SLOT(contextDisable()),actionCollection(),"klamd_disable"); + TDEPopupMenu *conf_menu = _tray->contextMenu(); + EnableKlamd = new TDEAction(i18n("&Enable Auto-Scan"), "klamav_on_acc_enabled", 0,this, SLOT(contextEnable()),actionCollection(),"klamd_enable"); + DisableKlamd = new TDEAction(i18n("&Disable Auto-Scan"),"klamav_on_acc_disabled", 0,this, SLOT(contextDisable()),actionCollection(),"klamd_disable"); - EnableFreshklam = new KAction(i18n("&Enable Auto-Updates"), "klamav", 0,this, SLOT(contextEnableFK()),actionCollection(),"fk_enable"); - DisableFreshklam = new KAction(i18n("&Disable Auto-Updates"),"klamavbw", 0,this, SLOT(contextDisableFK()),actionCollection(),"fk_disable"); + EnableFreshklam = new TDEAction(i18n("&Enable Auto-Updates"), "klamav", 0,this, SLOT(contextEnableFK()),actionCollection(),"fk_enable"); + DisableFreshklam = new TDEAction(i18n("&Disable Auto-Updates"),"klamavbw", 0,this, SLOT(contextDisableFK()),actionCollection(),"fk_disable"); EnableFreshklam->plug(conf_menu); DisableFreshklam->plug(conf_menu); @@ -71,7 +71,7 @@ Klamav::Klamav() DisableKlamd->setEnabled(FALSE); EnableKlamd->setEnabled(TRUE); - KConfig* config = KGlobal::config(); + TDEConfig* config = TDEGlobal::config(); config->setGroup("Freshklam"); TQStringList DatabasePaths = config->readListEntry("lastDownloadPaths"); @@ -126,8 +126,8 @@ Klamav::Klamav() KStdAction::quit(this, SLOT(shuttingDown()), actionCollection()); - if (KApplication::kApplication()->isRestored()){ -/* config = KGlobal::config(); + if (TDEApplication::kApplication()->isRestored()){ +/* config = TDEGlobal::config(); config->setGroup("Klamd"); TQString RunKlamd = config->readEntry("Enabled"); @@ -249,7 +249,7 @@ void Klamav::firstRunWizard() { TQString defaultquar = homepath + "/.klamav/quarantine"; if( wizard.exec() != TQDialog::Rejected ){ - KConfig* config = KGlobal::config(); + TDEConfig* config = TDEGlobal::config(); config->setGroup("Freshklam"); @@ -334,11 +334,11 @@ void Klamav::checkDir(TQString path){ void Klamav::slotConfigKlamav( const TQCString& page ) { - KlamavConfigDialog* dialog = (KlamavConfigDialog*) KConfigDialog::exists( "settings" ); + KlamavConfigDialog* dialog = (KlamavConfigDialog*) 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 KlamavConfigDialog( this, "settings", KlamavConfig::self() ); //connect( dialog, SIGNAL(settingsChanged()), SLOT(applySettings()) ); } |