Krita Source Code Documentation
Loading...
Searching...
No Matches
KisManualUpdater.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 KISMANUALUPDATER_H
9#define KISMANUALUPDATER_H
10
11#include <QScopedPointer>
12
13#include <KisUpdaterBase.h>
15#include "kritaui_export.h"
16
17
18class KRITAUI_EXPORT KisManualUpdater : public KisUpdaterBase
19{
20 Q_OBJECT
21
22public:
29 explicit KisManualUpdater(MultiFeedRssModel* rssModel, QString& currentVersion);
30
31 void checkForUpdate() override;
32
33 // this updater can only check for updates
38 inline bool hasUpdateCapability() override { return false; }
39 inline void doUpdate() override { return; }
40
41public Q_SLOTS:
42 void rssDataChanged();
43
44private:
45 bool availableVersionIsHigher(QString currentVersion, QString availableVersion);
46
47 QScopedPointer<MultiFeedRssModel> m_rssModel;
49
50 friend class KisManualUpdaterTest;
51};
52
53#endif // KISMANUALUPDATER_H
void doUpdate() override
if the updater has update capability, start the update process When the update is done,...
QScopedPointer< MultiFeedRssModel > m_rssModel
bool hasUpdateCapability() override
the manual updater can only check for available versions
virtual void checkForUpdate()=0
start the process checking whether there is an update available or not When the check is done,...