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
17#include "MimeTypesList.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::chrono::milliseconds GetProgressCallbackTimeout() const;
41 MimeTypesList GetPreferredAudioFormats() const;
43 MimeType GetDownloadMime() const;
44};
45
47CLOUD_AUDIOCOM_API const ServiceConfig& GetServiceConfig();
48} // namespace cloud::audiocom
Configuration for the audio.com.
Definition: ServiceConfig.h:24
const ServiceConfig & GetServiceConfig()
Returns the instance of the ServiceConfig.
std::string MimeType
Definition: MimeTypesList.h:18
std::vector< std::string > MimeTypesList
Ordered list of mime types.
Definition: MimeTypesList.h:20