File indexing completed on 2024-05-12 05:29:10
0001 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0002 0003 #pragma once 0004 0005 #include <QObject> 0006 #include <QTemporaryDir> 0007 0008 class AutomaticCoredumpExcavator : public QObject 0009 { 0010 Q_OBJECT 0011 public: 0012 using QObject::QObject; 0013 void excavateFrom(const QString &coredumpFilename); 0014 0015 Q_SIGNALS: 0016 void failed(); 0017 // WARNING: the corepath is only valid as long as the excavator exists! 0018 void excavated(const QString &corePath); 0019 0020 private: 0021 std::unique_ptr<QTemporaryDir> m_coreDir; 0022 };