1 #ifndef QTAUTOUPDATER_UPDATERBACKEND_H
2 #define QTAUTOUPDATER_UPDATERBACKEND_H
6 #include <QtCore/qobject.h>
7 #include <QtCore/qshareddata.h>
8 #include <QtCore/qversionnumber.h>
9 #include <QtCore/qvariant.h>
10 #include <QtCore/qscopedpointer.h>
11 #include <QtCore/qloggingcategory.h>
13 #include "QtAutoUpdaterCore/qtautoupdatercore_global.h"
14 #include "QtAutoUpdaterCore/updateinfo.h"
18 class UpdateInstaller;
20 class UpdaterBackendPrivate;
31 TriggerInstall = 0x02,
32 ParallelTrigger = (TriggerInstall | 0x04),
35 Q_DECLARE_FLAGS(Features, Feature)
47 virtual QString backend()
const = 0;
49 virtual std::optional<QVariant> value(
const QString &key)
const = 0;
58 Q_INVOKABLE
QString key()
const;
60 virtual Features features()
const = 0;
67 virtual void checkForUpdates() = 0;
69 virtual void abort(
bool force) = 0;
81 void checkProgress(
double percent,
const QString &status);
85 void triggerInstallDone(
bool success);
94 IConfigReader *config()
const;
97 virtual bool initialize() = 0;
106 Q_DECLARE_OPERATORS_FOR_FLAGS(QtAutoUpdater::UpdaterBackend::Features)
108 #endif // QTAUTOUPDATER_UPDATERBACKEND_H