Audacity 3.2.0
LinkUrlHandler.cpp
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 LinkUrlHandler.cpp
7
8 Dmitry Vedenko
9
10**********************************************************************/
11
12#include "URLSchemesRegistry.h"
13
16#include "OAuthService.h"
17
18namespace
19{
21 [](URLschemeHandlerMessage message)
22 {
23 using namespace audacity::cloud::audiocom;
24
25 if (GetOAuthService().HandleLinkURI(message.url, {}))
26 return;
27
28 if (sync::HandleProjectLink(message.url))
29 return;
30
31 if (sync::HandleMixdownLink(message.url))
32 return;
33 });
34}
Subscription Subscribe(Callback callback)
Connect a callback to the Publisher; later-connected are called earlier.
Definition: Observer.h:199
static URLSchemesRegistry & Get()
Retrieves the registry instance.
bool HandleProjectLink(std::string_view uri)
bool HandleMixdownLink(std::string_view uri)
OAuthService & GetOAuthService()
Returns the instance of the OAuthService.
A message that is invoked when a custom-scheme URL is passed to Audacity.