Audacity 3.2.0
CloudProjectFileIOExtensions.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 CloudProjectFileIOExtensions.cpp
7
8 Dmitry Vedenko
9
10**********************************************************************/
11
12#pragma once
13
14#include <functional>
15
17
18#include "GlobalVariable.h"
19
20class AudacityProject;
21
23{
24
25struct OnCloseHook : GlobalHook<OnCloseHook, bool(AudacityProject&)>
26{
27};
28
30using CreateSnapshotCallback = std::function<void(const CreateSnapshotResponse&)>;
31
32void SaveToCloud(
34 CreateSnapshotCallback snapshotCallback = {});
35
37} // namespace audacity::cloud::audiocom::sync
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
Global function-valued variable, adding a convenient Call()
bool ResaveLocally(AudacityProject &project)
void SaveToCloud(AudacityProject &project, UploadMode mode, CreateSnapshotCallback snapshotCallback)
std::function< void(const CreateSnapshotResponse &)> CreateSnapshotCallback