Audacity 3.2.0
ServiceConfig.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*!********************************************************************
3
4 Audacity: A Digital Audio Editor
5
6 ServiceConfig.h
7
8 Dmitry Vedenko
9
10**********************************************************************/
11#pragma once
12
13#include <chrono>
14#include <string>
15#include <string_view>
16#include <vector>
17#include <rapidjson/fwd.h>
18
19namespace cloud::audiocom
20{
21
23class CLOUD_AUDIOCOM_API ServiceConfig final
24{
25public:
27 std::string_view GetAPIEndpoint() const;
29 std::string_view GetOAuthLoginPage() const;
31 std::string_view GetOAuthClientID() const;
33 std::string_view GetOAuthRedirectURL() const;
35 std::string GetAPIUrl(std::string_view apiURI) const;
37 std::string GetFinishUploadPage(std::string_view audioID, std::string_view token) const;
39 std::string GetAudioURL(std::string_view userSlug, std::string_view audioSlug) const;
41 std::chrono::milliseconds GetProgressCallbackTimeout() const;
43 std::vector<std::string> GetPreferredAudioFormats() const;
45 rapidjson::Document GetExportConfig(const std::string& exporterName) const;
47 std::string GetDownloadMime() const;
49 std::string GetAcceptLanguageValue() const;
50};
51
53CLOUD_AUDIOCOM_API const ServiceConfig& GetServiceConfig();
54} // namespace cloud::audiocom
Configuration for the audio.com.
Definition: ServiceConfig.h:24
const ServiceConfig & GetServiceConfig()
Returns the instance of the ServiceConfig.