/* * SPDX-FileCopyrightText: 2013 Aleix Pol Gonzalez * SPDX-FileCopyrightText: 2018 Abhijeet Sharma * * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #pragma once #include "FwupdBackend.h" #include "FwupdResource.h" #include class FwupdResource; class FwupdTransaction : public Transaction { Q_OBJECT public: FwupdTransaction(FwupdResource *app, FwupdBackend *backend); ~FwupdTransaction(); void cancel() override; void proceed() override; private Q_SLOTS: void updateProgress(); void finishTransaction(); void fwupdInstall(const QString &file); private: void install(); FwupdResource *const m_app; FwupdBackend *const m_backend; };