Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
DlgCrashReport Class Reference

Crash-report dialog: mock fallback or real Sentry send. More...

#include <dlg_crash_report.h>

Inheritance diagram for DlgCrashReport:
[legend]
Collaboration diagram for DlgCrashReport:
[legend]

Public Member Functions

 DlgCrashReport (QWidget *parent=nullptr, bool realSending=false, CrashReporter *_reporter=nullptr)
void reject () override

Static Public Member Functions

static QString buildRedactedPreview ()
static QString writeMockReport (const QString &previewText, const QString &userNote=QString())

Protected Member Functions

void changeEvent (QEvent *event) override

Private Slots

void actSend ()
void actDontSend ()

Private Member Functions

void retranslateUi ()

Private Attributes

QLabel * infoLabel
QLabel * accountLabel
QPlainTextEdit * previewArea
QPlainTextEdit * noteArea
QCheckBox * rememberBox
QPushButton * sendButton
QPushButton * dontSendButton
bool realSending = false
CrashReporter * reporter = nullptr

Detailed Description

Crash-report dialog: mock fallback or real Sentry send.

Mock mode (default): the Send path writes a redacted JSON file to the temp dir instead of uploading anything. Real mode (realSending, with a live CrashReporter): Send first folds the redacted log and the optional user note into the pending native crash event(s), then gives consent so dump, stack, log and note upload as one Sentry event; when no pending crash event exists it falls back to a standalone message event with the same attachments. Failure offers a local save instead.

Constructor & Destructor Documentation

◆ DlgCrashReport()

DlgCrashReport::DlgCrashReport ( QWidget * parent = nullptr,
bool realSending = false,
CrashReporter * _reporter = nullptr )
explicit
Here is the call graph for this function:

Member Function Documentation

◆ actDontSend

void DlgCrashReport::actDontSend ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actSend

void DlgCrashReport::actSend ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ buildRedactedPreview()

QString DlgCrashReport::buildRedactedPreview ( )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ changeEvent()

void DlgCrashReport::changeEvent ( QEvent * event)
overrideprotected
Here is the call graph for this function:

◆ reject()

void DlgCrashReport::reject ( )
override
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retranslateUi()

void DlgCrashReport::retranslateUi ( )
private
Here is the caller graph for this function:

◆ writeMockReport()

QString DlgCrashReport::writeMockReport ( const QString & previewText,
const QString & userNote = QString() )
static
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ accountLabel

QLabel* DlgCrashReport::accountLabel
private

◆ dontSendButton

QPushButton* DlgCrashReport::dontSendButton
private

◆ infoLabel

QLabel* DlgCrashReport::infoLabel
private

◆ noteArea

QPlainTextEdit* DlgCrashReport::noteArea
private

◆ previewArea

QPlainTextEdit* DlgCrashReport::previewArea
private

◆ realSending

bool DlgCrashReport::realSending = false
private

◆ rememberBox

QCheckBox* DlgCrashReport::rememberBox
private

◆ reporter

CrashReporter* DlgCrashReport::reporter = nullptr
private

◆ sendButton

QPushButton* DlgCrashReport::sendButton
private

The documentation for this class was generated from the following files: