/* * 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 class DiscoverNotifier; class UnattendedUpdates : public QObject { Q_OBJECT public: UnattendedUpdates(DiscoverNotifier *parent); ~UnattendedUpdates() override; private: void checkNewState(); void triggerUpdate(int timeoutId); std::optional m_idleTimeoutId; };