update_check: add class for package update checks

This commit is contained in:
2021-04-10 15:51:30 +02:00
parent 7289bcfd67
commit 29b44b2684
3 changed files with 105 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
/*
Based up Neutrino-GUI - Tuxbox-Project
Copyright (C) 2001 by Steffen Hehn 'McClean'
Update check for Neutrino-GUI
Copyright (C) 2020 T. Graf 'dbt'
License: GPL
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, see <http://www.gnu.org/licenses/>.
*/
#ifndef __UPDATE_CHECK_PACKAGES_H__
#define __UPDATE_CHECK_PACKAGES_H__
#include "components/cc_timer.h"
class CUpdateCheck : public CComponentsTimer
{
private:
void check4PackageUpdates();
public:
CUpdateCheck();
virtual ~CUpdateCheck(){};
static CUpdateCheck* getInstance();
void startThread() {initThread();}
};
#endif // __UPDATE_CHECK_PACKAGES_H__