![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
Crash-report dialog: mock fallback or real Sentry send. More...
#include <dlg_crash_report.h>
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 |
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.
|
explicit |
|
privateslot |
|
privateslot |
|
static |
|
overrideprotected |
|
override |
|
private |
|
static |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |