/* * SPDX-FileCopyrightText: 2020 Aleix Pol Gonzalez * * SPDX-License-Identifier: LGPL-2.0-or-later */ #pragma once #include #include #include #include class AbstractResource; class ResourcesUpdatesModel; class DiscoverUpdate : public QObject { Q_OBJECT public: explicit DiscoverUpdate(); ~DiscoverUpdate() override; void setOfflineUpdates(bool offline) { m_offlineUpdates = offline; } private: void start(); void transactionStatusChanged(Transaction::Status status); ResourcesUpdatesModel *const m_resourcesUpdatesModel; bool m_done = false; bool m_offlineUpdates = false; };