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:
committed by
Dmitry Vedenko
parent
185d1d5ecc
commit
cb1f8b6c34
36
libraries/lib-sentry-reporting/SentryRequestBuilder.h
Normal file
36
libraries/lib-sentry-reporting/SentryRequestBuilder.h
Normal 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
|
||||
Reference in New Issue
Block a user