Warning, file /plasma/discover/kcm/updates.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 * SPDX-FileCopyrightText: 2020 Aleix Pol Gonzalez <aleixpol@kde.org> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #pragma once 0008 0009 #include <KQuickAddons/ManagedConfigModule> 0010 0011 #include <KSharedConfig> 0012 #include <discoversettings.h> 0013 #include <updatessettings.h> 0014 class UpdatesData; 0015 class DiscoverData; 0016 0017 class Updates : public KQuickAddons::ManagedConfigModule 0018 { 0019 Q_OBJECT 0020 Q_PROPERTY(UpdatesSettings *updatesSettings READ updatesSettings CONSTANT) 0021 Q_PROPERTY(DiscoverSettings *discoverSettings READ discoverSettings CONSTANT) 0022 Q_PROPERTY(bool isRpmOstree READ isRpmOstree CONSTANT) 0023 0024 public: 0025 explicit Updates(QObject *parent = nullptr, const QVariantList &list = QVariantList()); 0026 ~Updates() override; 0027 0028 UpdatesSettings *updatesSettings() const; 0029 DiscoverSettings *discoverSettings() const; 0030 0031 /* Returns true if we're running on an rpm-ostree managed systems. Used to 0032 * show/hide PackageKit specific settings and show/hide rpm-ostree specific 0033 * settings only on systems where those are relevant.*/ 0034 bool isRpmOstree() const; 0035 0036 private: 0037 UpdatesData *const m_data; 0038 DiscoverData *const m_discoverData; 0039 };