blob: 64a483a5ffc676820556c57e4bb4406ec42ebf4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <QDateTime>
namespace google_breakpad {
class ExceptionHandler;
}
class QtSystemExceptionHandler
{
public:
QtSystemExceptionHandler(const QString &libexecPath);
~QtSystemExceptionHandler();
static void crash();
static void setPlugins(const QStringList &pluginNameList);
static void setBuildVersion(const QString &version);
static void setCrashHandlerPath(const QString &crashHandlerPath);
static QString plugins();
static QString buildVersion();
static QString crashHandlerPath();
static QDateTime startTime();
protected:
void init(const QString &libexecPath);
private:
google_breakpad::ExceptionHandler *exceptionHandler = nullptr;
};
|