crash: add crash reporter
This commit is contained in:
parent
5040f3796c
commit
fe1d15e8f6
23 changed files with 1118 additions and 315 deletions
19
src/core/crashinfo.cpp
Normal file
19
src/core/crashinfo.cpp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#include "crashinfo.hpp"
|
||||
|
||||
#include <qdatastream.h>
|
||||
|
||||
QDataStream& operator<<(QDataStream& stream, const InstanceInfo& info) {
|
||||
stream << info.configPath << info.shellId << info.launchTime << info.noColor;
|
||||
return stream;
|
||||
}
|
||||
|
||||
QDataStream& operator>>(QDataStream& stream, InstanceInfo& info) {
|
||||
stream >> info.configPath >> info.shellId >> info.launchTime >> info.noColor;
|
||||
return stream;
|
||||
}
|
||||
|
||||
namespace qs::crash {
|
||||
|
||||
CrashInfo CrashInfo::INSTANCE = {}; // NOLINT
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue