Audacity 3.2.0
CrashpadConfigurer.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <map>
5#include <vector>
6
7class CRASHPAD_CONFIGURER_API CrashpadConfigurer final
8{
9 std::string mHandlerPath;
10 std::string mDatabasePath;
11 std::string mMetricsDir;
12 std::string mURL;
13 std::vector<std::string> mArguments;
14 std::map<std::string, std::string> mAnnotations;
15 std::vector<std::string> mAttachments;
16 bool mDatabaseUploadsEnabled { false };
17public:
18 CrashpadConfigurer& SetHandlerPathUTF8(const std::string& handlerPath);
19 CrashpadConfigurer& SetDatabasePathUTF8(const std::string& database);
20 CrashpadConfigurer& SetMetricsDirUTF8(const std::string& metricsDir);
21 CrashpadConfigurer& SetURL(const std::string&);
22 CrashpadConfigurer& SetArguments(const std::vector<std::string>& arguments);
23 CrashpadConfigurer& SetAnnotations(const std::map<std::string, std::string>& annotations);
24 CrashpadConfigurer& SetAttachmentsUTF8(const std::vector<std::string>& attachments);
25 CrashpadConfigurer& SetDatabaseUploadEnabled(bool enabled);
26
27 void Start();
28};
std::vector< std::string > mArguments
std::string mHandlerPath
std::vector< std::string > mAttachments
std::map< std::string, std::string > mAnnotations