summaryrefslogtreecommitdiffstats
path: root/src/update.h
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2021-01-15 00:06:34 +0200
committerMavridis Philippe <[email protected]>2021-01-15 00:06:34 +0200
commitcb9983144be814ee0ec28d9fed7399f98aab202c (patch)
tree6744089db50e157db800e149e7433a5338e464cc /src/update.h
parentb3f827351de73f91489032fd4f2bb93829b42721 (diff)
downloadklamav-cb9983144be814ee0ec28d9fed7399f98aab202c.tar.gz
klamav-cb9983144be814ee0ec28d9fed7399f98aab202c.zip
Freshklam: removed remains of code related to KlamAV updates.
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'src/update.h')
-rw-r--r--src/update.h125
1 files changed, 0 insertions, 125 deletions
diff --git a/src/update.h b/src/update.h
deleted file mode 100644
index b3fa5aa..0000000
--- a/src/update.h
+++ /dev/null
@@ -1,125 +0,0 @@
-/***************************************************************************
- * Copyright (C) 2006 by Robert Hogan *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
- ***************************************************************************/
-
-
-#ifndef _UPDATE_H_
-#define _UPDATE_H_
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <tdeapplication.h>
-#include <kdirlister.h> //stack allocated
-#include <kurl.h> //stack allocated
-#include <kresolver.h> // namespace
-#include <tdehtml_part.h>
-
-
-namespace DOM {
- class Node;
-}
-
-
-using namespace KNetwork;
-
-class KURL;
-class TDEProcess;
-class KURLRequester;
-class KProgressDialog;
-class KProcIO;
-class TDEHTMLPart;
-
-/**
- * This class serves as the main window for KlamavUpdate. It handles the
- * menus, toolbars, and status bars.
- *
- * @short Main window class
- * @author $AUTHOR <$EMAIL>
- * @version $APP_VERSION
- */
-class KlamavUpdate : public TQWidget
-{
- Q_OBJECT
-
- public:
-
- KlamavUpdate(TQWidget *parent = 0, const char *name=0);
-
- /**
- * Default Destrucclamav
- */
- virtual ~KlamavUpdate();
- void downloadComponent(TQString component, TQString version, TQString extension);
- void checkForNewClamAVDirectly();
- void checkForNewKlamAVDirectly();
- void checkForNewKlamAV();
-
-signals:
- void getCurrentVersionOfClamAV( );
- void toggleUpgradeButtons(bool);
-
-
-private slots:
- void slotProg();
- void klamavInstallationExited(TDEProcess *arkollonproc);
- void clamavInstallationExited(TDEProcess *arkollonproc);
-/* void resolved(KResolverResults result);*/
-/* void readVersionLine(KProcIO *);*/
- void parseSFPage();
- void parseSFPageHack();
- void updateCanceled();
-/* void versionExited();*/
-private:
- void getLatestVersionFromSF(KURL url);
- void getLatestVersionFromSFHack(KURL url);
- void startProgressDialog( const TQString & text );
- void checkInternet();
- void connectToHost();
- void getVersionFromLink( const DOM::Node &n );
- void completedSearchForUpdates(const TQString &component, const TQString &extension);
- double numericizeVersion(TQString &version);
- TQString getMirror();
- TDEProcess *childproc;
- KProcIO *versionproc;
- TQString tempFileName;
- TQString errorMessage;
- TQString pidFileName;
- KProgressDialog *progressDialog;
- TQTimer *timer;
- bool upgradeinprogress;
- bool checkingDirectly;
- double highestsofarnumeric;
- TQString highestsofarraw;
- TQString highestsofarfilename;
- KResolver m_resolver;
- TQString currentClamavVersion;
- bool m_alpha;
- TDEHTMLPart *filelist;
-private:
- KDirLister clamav_lister;
- KURL clamav_url;
- KDirLister klamav_lister;
- KURL klamav_url;
- KURL m_url;
-
-};
-
-#endif // _KlamavUpdate_H_