/* * SPDX-FileCopyrightText: 2020 Aleix Pol Gonzalez * * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #pragma once #include #include #include #include class UpdatesData; class DiscoverData; class Updates : public KQuickManagedConfigModule { Q_OBJECT Q_PROPERTY(UpdatesSettings *updatesSettings READ updatesSettings CONSTANT) Q_PROPERTY(DiscoverSettings *discoverSettings READ discoverSettings CONSTANT) Q_PROPERTY(bool isRpmOstree READ isRpmOstree CONSTANT) public: explicit Updates(QObject *parent, const KPluginMetaData &data); UpdatesSettings *updatesSettings() const; DiscoverSettings *discoverSettings() const; /* Returns true if we're running on an rpm-ostree managed systems. Used to * show/hide PackageKit specific settings and show/hide rpm-ostree specific * settings only on systems where those are relevant.*/ bool isRpmOstree() const; private: UpdatesData *const m_data; DiscoverData *const m_discoverData; };