Krita Source Code Documentation
Loading...
Searching...
No Matches
KisUpdaterBase.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 Anna Medonosova <anna.medonosova@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7
8#ifndef KISUPDATERBASE_H
9#define KISUPDATERBASE_H
10
11#include <QObject>
12#include <KisUpdaterStatus.h>
13
14class QString;
15
16class KisUpdaterBase : public QObject
17{
18 Q_OBJECT
19
20public:
22
27 virtual void checkForUpdate() = 0;
28
34 virtual bool hasUpdateCapability() = 0;
35
40 virtual void doUpdate() = 0;
41
42Q_SIGNALS:
44
45protected:
47};
48
49#endif // KISUPDATERBASE_H
KisUpdaterStatus m_updaterStatus
virtual void doUpdate()=0
if the updater has update capability, start the update process When the update is done,...
virtual void checkForUpdate()=0
start the process checking whether there is an update available or not When the check is done,...
virtual bool hasUpdateCapability()=0
Returns true if this updater can actually perform an update. If it can only check for new versions,...
void sigUpdateCheckStateChange(KisUpdaterStatus)