Audacity 3.2.0
CloudProjectOpenUtils.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 CloudProjectOpenUtils.h
7
8 Dmitry Vedenko
9
10**********************************************************************/
11#pragma once
12
13#include <functional>
14#include <string_view>
15
16class AudacityProject;
17
18enum class AudiocomTrace;
19
21{
23AudacityProject* GetOpenedProject(std::string_view projectId);
24
26 AudacityProject* potentialTarget, std::string_view projectId,
27 std::string_view snapshotId, bool forceNew);
28
30 AudacityProject& project, std::string_view path, AudiocomTrace,
31 bool force = false);
32
33bool HandleProjectLink(std::string_view link);
34
36} // namespace audacity::cloud::audiocom::sync
AudiocomTrace
Definition: ExportUtils.h:27
const auto project
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
void ReopenProject(AudacityProject &project)
bool HandleProjectLink(std::string_view uri)
bool SyncCloudProject(AudacityProject &project, std::string_view path, AudiocomTrace trace, bool force)
AudacityProject * OpenProjectFromCloud(AudacityProject *potentialTarget, std::string_view projectId, std::string_view snapshotId, CloudSyncService::SyncMode mode)
AudacityProject * GetOpenedProject(std::string_view projectId)