/* * SPDX-FileCopyrightText: 2022 Jeremy Whiting * * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #ifndef STEAMOSTRANSACTION_H #define STEAMOSTRANSACTION_H #include #include #include "atomupd1.h" class QTimer; class SteamOSResource; class SteamOSTransaction : public Transaction { Q_OBJECT public: SteamOSTransaction(SteamOSResource *app, Role role, ComSteampoweredAtomupd1Interface *interface); void cancel() override; Q_SIGNALS: void needReboot(); private Q_SLOTS: void refreshStatus(); private: void finishTransaction(); SteamOSResource *const m_app; QPointer m_interface; // Interface to atomupd dbus api }; #endif // STEAMOSTRANSACTION_H