Audacity 3.2.0
unix/CrashReportContext.h
Go to the documentation of this file.
1/*!********************************************************************
2*
3 Audacity: A Digital Audio Editor
4
5 CrashReportContext.h
6
7 Vitaly Sverchinsky
8
9 **********************************************************************/
10
11#pragma once
12
13#include <string>
14#include <map>
15
17
25{
26 static constexpr size_t MaxBufferLength{ 2048 };
27
31
32public:
33
34 bool SetSenderPathUTF8(const std::string& path);
35 bool SetReportURL(const std::string& url);
36 bool SetParameters(const std::map<std::string, std::string>& p);
37
38 void StartHandler(const std::string& databasePath);
39
40private:
41 //helper function which need access to a private data, but should not be exposed to a public class interface
42 friend bool SendReport(CrashReportContext* ctx, const char* minidumpPath);
43};
This object is for internal usage.
char mParameters[MaxBufferLength]
bool SetParameters(const std::map< std::string, std::string > &p)
bool SetReportURL(const std::string &url)
friend bool SendReport(CrashReportContext *ctx, const char *minidumpPath)
char mSenderPath[MaxBufferLength]
bool SetSenderPathUTF8(const std::string &path)
char mReportURL[MaxBufferLength]
static constexpr size_t MaxBufferLength
void StartHandler(const std::string &databasePath)