1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-10 14:46:24 +01:00

Adds lib-sentry-report

This commit is contained in:
Dmitry Vedenko
2021-06-08 13:40:08 +03:00
committed by Dmitry Vedenko
parent 185d1d5ecc
commit cb1f8b6c34
11 changed files with 852 additions and 2 deletions

View File

@@ -0,0 +1,36 @@
/*!********************************************************************
Audacity: A Digital Audio Editor
@file SentryRequestBuilder.cpp
@brief Declare a class to generate the requests to Sentry.
Dmitry Vedenko
**********************************************************************/
#pragma once
#include <string>
#include "Request.h"
namespace audacity
{
namespace sentry
{
// This is a private class, so it is not exported
//! A helper, that creates a correct Request to Sentry
class SentryRequestBuilder final
{
public:
static const SentryRequestBuilder& Get();
network_manager::Request CreateRequest() const;
private:
SentryRequestBuilder();
std::string mUrl;
};
} // namespace sentry
} // namespace audacity