2024-08-20 00:41:20 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <qtclasshelpermacros.h>
|
|
|
|
|
|
2024-08-30 21:45:20 -07:00
|
|
|
#include "../core/instanceinfo.hpp"
|
2024-08-20 00:41:20 -07:00
|
|
|
namespace qs::crash {
|
|
|
|
|
|
|
|
|
|
struct CrashHandlerPrivate;
|
|
|
|
|
|
|
|
|
|
class CrashHandler {
|
|
|
|
|
public:
|
|
|
|
|
explicit CrashHandler();
|
|
|
|
|
~CrashHandler();
|
|
|
|
|
Q_DISABLE_COPY_MOVE(CrashHandler);
|
|
|
|
|
|
|
|
|
|
void init();
|
2024-09-01 14:17:39 -07:00
|
|
|
void setRelaunchInfo(const RelaunchInfo& info);
|
2024-08-20 00:41:20 -07:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
CrashHandlerPrivate* d;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace qs::crash
|