10#ifndef INCLUDED_DESKTOP_CRASHREPORT_HXX
11#define INCLUDED_DESKTOP_CRASHREPORT_HXX
15#include <rtl/ustring.hxx>
16#include <osl/mutex.hxx>
18#include <config_features.h>
28class ExceptionHandler;
40#if HAVE_FEATURE_BREAKPAD
48#if HAVE_FEATURE_BREAKPAD
49 static void addKeyValue(
const OUString& rKey,
const OUString& rValue, tAddKeyHandling AddKeyHandling);
51 static void installExceptionHandler();
52 static void removeExceptionHandler();
54 static void setActiveSfxObjectName(
const OUString& rActiveSfxObjectName);
55 static OUString getActiveSfxObjectName();
57 static void logUnoCommand(
const OUString& rUnoCommand);
58 static OUString getLoggedUnoCommands();
60 static bool crashReportInfoExists();
62 static bool readSendConfig(std::string& response);
64 static bool IsDumpEnable();
68 static osl::Mutex maActiveSfxObjectNameMutex;
69 static osl::Mutex maUnoLogCmdMutex;
75 _mpair(
const OUString& First,
const OUString& Second)
82 typedef std::vector<mpair> vmaKeyValues;
83 static vmaKeyValues maKeyValues;
84 typedef std::deque<OUString> vmaloggedUnoCommands;
85 static vmaloggedUnoCommands maloggedUnoCommands;
86 static OUString msActiveSfxObjectName;
88 static std::unique_ptr<google_breakpad::ExceptionHandler> mpExceptionHandler;
90 static std::string getIniFileName();
91 static void writeCommonInfo();
92 static void writeSystemInfo();
93 static void writeToFile(std::ios_base::openmode Openmode);
96 static void updateMinidumpLocation();
102 inline static void addKeyValue(SAL_UNUSED_PARAMETER
const OUString& , SAL_UNUSED_PARAMETER
const OUString& , SAL_UNUSED_PARAMETER
tAddKeyHandling ) {};
Provides access to the crash reporter service.
static OUString getLoggedUnoCommands()
static void logUnoCommand(SAL_UNUSED_PARAMETER const OUString &)
static void setActiveSfxObjectName(SAL_UNUSED_PARAMETER const OUString &)
static OUString getActiveSfxObjectName()
static void addKeyValue(SAL_UNUSED_PARAMETER const OUString &, SAL_UNUSED_PARAMETER const OUString &, SAL_UNUSED_PARAMETER tAddKeyHandling)
#define CRASHREPORT_DLLPUBLIC
constexpr OUStringLiteral first