QtAutoUpdater
3.0.0
A Qt library to automatically check for updates and install them
|
1 #ifndef QMLAUTOUPDATERSINGLETON_H
2 #define QMLAUTOUPDATERSINGLETON_H
4 #include <QtCore/QObject>
5 #include <QtCore/QSettings>
6 #include <QtCore/QPointer>
8 #include <QtAutoUpdaterCore/UpdateInfo>
9 #include <QtAutoUpdaterCore/Updater>
10 #include <QtAutoUpdaterCore/UpdaterBackend>
25 class QmlAutoUpdaterSingleton :
public QObject
32 explicit QmlAutoUpdaterSingleton(
QObject *parent =
nullptr);
42 QObject *parent =
nullptr)
const;
45 QObject *parent =
nullptr)
const;
48 QVariantMap configuration,
49 QObject *parent =
nullptr)
const;
98 QmlConfigReader(
QObject *qmlSettings);
100 QString backend()
const override;
101 std::optional<QVariant> value(
const QString &key)
const override;
111 #endif // QMLAUTOUPDATERSINGLETON_H
Q_INVOKABLE QVariant createInfo(QVariant identifier, QString name, const QVariant &version, QVariantMap data={}) const
Creates a QtAutoUpdater::UpdateInfo from the given parameters.
Q_INVOKABLE QtAutoUpdater::Updater * createUpdater(const QString &configPath, QObject *parent=nullptr) const
Creates an updater instance using the given configuration file.
The main updater. Can check for updates and trigger update installations.
A helper interface to allow backend generic access to a backends configuration.
The QML import for the QtAutoUpdater core QML module.
The QtAutoUpdater namespace holds all classes that are related with the updater.
Q_INVOKABLE QVariantList infosAsList(const QList< QtAutoUpdater::UpdateInfo > &infos) const
Converts a list of QtAutoUpdater::UpdateInfos to a QVariantList, which can be consumed in QML.