/* * SPDX-FileCopyrightText: 2020 Aleix Pol Gonzalez * * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #include "updates.h" #include #include #include #include #include #include #include K_PLUGIN_FACTORY_WITH_JSON(UpdatesFactory, "kcm_updates.json", registerPlugin(); registerPlugin();) Updates::Updates(QObject *parent, const KPluginMetaData &data) : KQuickManagedConfigModule(parent, data) , m_data(new UpdatesData(this)) , m_discoverData(new DiscoverData(this)) { qmlRegisterAnonymousType("org.kde.discover.updates", 1); qmlRegisterAnonymousType("org.kde.discover.updates", 1); } UpdatesSettings *Updates::updatesSettings() const { return m_data->settings(); } DiscoverSettings *Updates::discoverSettings() const { return m_discoverData->settings(); } bool Updates::isRpmOstree() const { return QFile::exists(QStringLiteral("/run/ostree-booted")); } #include "moc_updates.cpp" #include "updates.moc"