Audacity 3.2.0
|
This class is used to configure Breakpad's handler before start. More...
#include <BreakpadConfigurer.h>
Public Member Functions | |
BreakpadConfigurer & | SetDatabasePathUTF8 (const std::string &pathUTF8) |
Sets the directory where crashreports will be stored (should have rw permission) More... | |
BreakpadConfigurer & | SetReportURL (const std::string &reportURL) |
Sets report URL to the crash reporting server (URL-Encoded, optional) More... | |
BreakpadConfigurer & | SetParameters (const std::map< std::string, std::string > ¶meters) |
Sets an additional parameters that should be sent to a crash reporting server (ASCII encoded) More... | |
BreakpadConfigurer & | SetSenderPathUTF8 (const std::string &pathUTF8) |
Sets a path to a directory where crash reporter sending program is located. More... | |
void | Start () |
Starts the handler. More... | |
Private Attributes | |
std::string | mDatabasePathUTF8 |
std::string | mSenderPathUTF8 |
std::string | mReportURL |
std::map< std::string, std::string > | mParameters |
This class is used to configure Breakpad's handler before start.
Audacity: A Digital Audio Editor
Vitaly Sverchinsky
Typically handler should be started as early as possible. BreakpadConfigurer may be a short living object, it is used to configure Breakpad handler, and run it with BreakpadConfigurer::Start() method, It's expected that Start() will be called once during application lifetime, any calls to Set* methods after handler is started will be ignored. The handler itself simply starts crash sender program, passing all the details (path crash dump, report url, parameters...) as a command-line arguments to it. Please read official documentation for details: https://chromium.googlesource.com/breakpad/breakpad
Definition at line 27 of file BreakpadConfigurer.h.
BreakpadConfigurer & BreakpadConfigurer::SetDatabasePathUTF8 | ( | const std::string & | pathUTF8 | ) |
Sets the directory where crashreports will be stored (should have rw permission)
Audacity: A Digital Audio Editor
Vitaly Sverchinsky
Definition at line 19 of file BreakpadConfigurer.cpp.
References mDatabasePathUTF8.
Referenced by anonymous_namespace{AudacityApp.cpp}::InitCrashreports().
BreakpadConfigurer & BreakpadConfigurer::SetParameters | ( | const std::map< std::string, std::string > & | parameters | ) |
Sets an additional parameters that should be sent to a crash reporting server (ASCII encoded)
Definition at line 31 of file BreakpadConfigurer.cpp.
References mParameters.
Referenced by anonymous_namespace{AudacityApp.cpp}::InitCrashreports().
BreakpadConfigurer & BreakpadConfigurer::SetReportURL | ( | const std::string & | reportURL | ) |
Sets report URL to the crash reporting server (URL-Encoded, optional)
Definition at line 25 of file BreakpadConfigurer.cpp.
References mReportURL.
Referenced by anonymous_namespace{AudacityApp.cpp}::InitCrashreports().
BreakpadConfigurer & BreakpadConfigurer::SetSenderPathUTF8 | ( | const std::string & | pathUTF8 | ) |
Sets a path to a directory where crash reporter sending program is located.
Definition at line 37 of file BreakpadConfigurer.cpp.
References mSenderPathUTF8.
Referenced by anonymous_namespace{AudacityApp.cpp}::InitCrashreports().
void BreakpadConfigurer::Start | ( | ) |
Starts the handler.
Definition at line 43 of file BreakpadConfigurer.cpp.
References mDatabasePathUTF8, mParameters, mReportURL, mSenderPathUTF8, and CrashReportContext::SetSenderPathUTF8().
|
private |
Definition at line 29 of file BreakpadConfigurer.h.
Referenced by SetDatabasePathUTF8(), and Start().
|
private |
Definition at line 32 of file BreakpadConfigurer.h.
Referenced by SetParameters(), and Start().
|
private |
Definition at line 31 of file BreakpadConfigurer.h.
Referenced by SetReportURL(), and Start().
|
private |
Definition at line 30 of file BreakpadConfigurer.h.
Referenced by SetSenderPathUTF8(), and Start().