File indexing completed on 2024-05-05 14:22:13
0001 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0002 // SPDX-FileCopyrightText: 2017-2020 Harald Sitter <sitter@kde.org> 0003 0004 #pragma once 0005 0006 #include <QObject> 0007 #include <QSet> 0008 0009 #include <PackageKit/Transaction> 0010 0011 #include <memory> 0012 0013 #include "File.h" 0014 0015 class DebugResolver : public QObject 0016 { 0017 Q_OBJECT 0018 public: 0019 explicit DebugResolver(std::shared_ptr<File> file, QObject *parent = nullptr); 0020 void resolve(); 0021 0022 signals: 0023 void finished(); 0024 0025 private slots: 0026 void transactionFinished(); 0027 void packageFound(PackageKit::Transaction::Info, const QString &packageID, const QString &/* summary */); 0028 0029 private: 0030 QSet<QObject *> m_transactions; 0031 const std::shared_ptr<File> m_file; 0032 };