crashpad: updated crash handler
This commit is contained in:
@@ -21,7 +21,12 @@
|
||||
#ifndef CRASHHANDLERDIALOG_H
|
||||
#define CRASHHANDLERDIALOG_H
|
||||
|
||||
#include <client/crash_report_database.h>
|
||||
#include <QDialog>
|
||||
#include <QDialogButtonBox>
|
||||
#include <QNetworkReply>
|
||||
#include <QPushButton>
|
||||
#include <QTextEdit>
|
||||
|
||||
#include "common/define.h"
|
||||
|
||||
@@ -31,12 +36,39 @@ class CrashHandlerDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
CrashHandlerDialog(const char* log_file);
|
||||
CrashHandlerDialog(const char* report_dir, const char* crash_time);
|
||||
|
||||
public slots:
|
||||
virtual void accept() override;
|
||||
private:
|
||||
void SetGUIObjectsEnabled(bool e);
|
||||
|
||||
virtual void reject() override;
|
||||
void GenerateReport();
|
||||
|
||||
QTextEdit* summary_edit_;
|
||||
|
||||
QTextEdit* crash_report_;
|
||||
|
||||
QPushButton* send_report_btn_;
|
||||
|
||||
QPushButton* dont_send_btn_;
|
||||
|
||||
QString report_filename_;
|
||||
|
||||
time_t crash_time_;
|
||||
|
||||
QString report_dir_;
|
||||
|
||||
QByteArray report_data_;
|
||||
|
||||
private slots:
|
||||
void ReplyFinished(QNetworkReply *reply);
|
||||
|
||||
void AttemptToFindReport();
|
||||
|
||||
void ReadProcessHasData();
|
||||
|
||||
void ReadProcessFinished();
|
||||
|
||||
void SendErrorReport();
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user