![]() |
Audacity 3.2.0
|
Public Member Functions | |
void | ForceCloudSave () |
void | SetUploadModeForNextSave (UploadMode mode) |
void | SetSnapshotCallbackForNextSave (CreateSnapshotCallback callback) |
![]() | |
virtual | ~ProjectFileIOExtension () |
virtual OnOpenAction | OnOpen (AudacityProject &project, const std::string &path)=0 |
This hook is called before the project is opened. More... | |
virtual void | OnLoad (AudacityProject &project)=0 |
This hook is called after the project is loaded. More... | |
virtual OnSaveAction | OnSave (AudacityProject &project, const ProjectSaveCallback &projectSaveCallback)=0 |
This hook is called before the project is saved. More... | |
virtual OnCloseAction | OnClose (AudacityProject &project)=0 |
This hook is called before the project is closed. More... | |
virtual void | OnUpdateSaved (AudacityProject &project, const ProjectSerializer &serializer)=0 |
This hook is called after the project blob is saved. More... | |
virtual bool | IsBlockLocked (const AudacityProject &project, int64_t blockId) const =0 |
This hook is called to check if a block is locked. More... | |
Private Member Functions | |
OnOpenAction | OnOpen (AudacityProject &project, const std::string &path) override |
This hook is called before the project is opened. More... | |
void | OnLoad (AudacityProject &project) override |
This hook is called after the project is loaded. More... | |
OnSaveAction | PerformCloudSave (AudacityProject &project, std::string name, std::string filePath, const ProjectSaveCallback &projectSaveCallback, bool fileRenamed, AudiocomTrace trace) |
OnSaveAction | SaveCloudProject (AudacityProject &project, const ProjectSaveCallback &projectSaveCallback, AudiocomTrace trace) |
OnSaveAction | OnSave (AudacityProject &project, const ProjectSaveCallback &projectSaveCallback) override |
This hook is called before the project is saved. More... | |
OnCloseAction | OnClose (AudacityProject &project) override |
This hook is called before the project is closed. More... | |
void | OnUpdateSaved (AudacityProject &project, const ProjectSerializer &serializer) override |
This hook is called after the project blob is saved. More... | |
bool | IsBlockLocked (const AudacityProject &project, int64_t blockId) const override |
This hook is called to check if a block is locked. More... | |
Private Attributes | |
CreateSnapshotCallback | mSnapshotCallback |
UploadMode | mUploadMode { UploadMode::Normal } |
AudiocomTrace | mAudiocomTrace { AudiocomTrace::SaveProjectSaveToCloudMenu } |
Definition at line 47 of file CloudProjectFileIOExtensions.cpp.
|
inline |
Definition at line 280 of file CloudProjectFileIOExtensions.cpp.
References SaveToCloudMenu.
|
inlineoverrideprivatevirtual |
This hook is called to check if a block is locked.
Implements ProjectFileIOExtension.
Definition at line 274 of file CloudProjectFileIOExtensions.cpp.
References BasicUI::Get(), and project.
|
inlineoverrideprivatevirtual |
This hook is called before the project is closed.
Implements ProjectFileIOExtension.
Definition at line 212 of file CloudProjectFileIOExtensions.cpp.
References Continue, BasicUI::Get(), project, and Veto.
|
inlineoverrideprivatevirtual |
This hook is called after the project is loaded.
Implements ProjectFileIOExtension.
Definition at line 58 of file CloudProjectFileIOExtensions.cpp.
References BasicUI::Get(), audacity::cloud::audiocom::PerformBlockingAuth(), project, and audacity::cloud::audiocom::sync::ResumeProjectUpload().
|
inlineoverrideprivatevirtual |
This hook is called before the project is opened.
Implements ProjectFileIOExtension.
Definition at line 50 of file CloudProjectFileIOExtensions.cpp.
References Cancel, Continue, OpenFromCloudMenu, project, and audacity::cloud::audiocom::sync::SyncCloudProject().
|
inlineoverrideprivatevirtual |
This hook is called before the project is saved.
Implements ProjectFileIOExtension.
Definition at line 146 of file CloudProjectFileIOExtensions.cpp.
References Cancelled, audacity::cloud::audiocom::CloudProjectsSavePath, Continue, BasicUI::Get(), ProjectFileIO::Get(), ProjectWindow::Get(), audacity::cloud::audiocom::GetOAuthService(), audacity::cloud::audiocom::GetServiceConfig(), audacity::cloud::audiocom::GetUserService(), audacity::cloud::audiocom::sync::MakeSafeProjectPath(), FileNames::MkDir(), project, Setting< T >::Read(), SaveProjectSaveToCloudMenu, SaveToCloudMenu, ExportProgressUI::Show(), audacity::cloud::audiocom::sync::CloudLocationDialog::ShowDialog(), and audacity::ToUTF8().
|
inlineoverrideprivatevirtual |
This hook is called after the project blob is saved.
Implements ProjectFileIOExtension.
Definition at line 223 of file CloudProjectFileIOExtensions.cpp.
References BasicUI::Get(), BasicUI::OpenInDefaultBrowser(), project, audacity::cloud::audiocom::sync::ShowDialogOn(), and audacity::ToWXString().
|
inlineprivate |
Definition at line 70 of file CloudProjectFileIOExtensions.cpp.
References Cancelled, BasicUI::Get(), audacity::cloud::audiocom::GetOAuthService(), audacity::cloud::audiocom::GetServiceConfig(), Handled, name, project, and audacity::ToUTF8().
|
inlineprivate |
Definition at line 117 of file CloudProjectFileIOExtensions.cpp.
References Cancelled, RefreshCode::Cancelled, Continue, ProjectFileIO::Get(), ProjectWindow::Get(), ProjectFileIO::GetFileName(), ProjectFileIO::MarkTemporary(), audacity::cloud::audiocom::PerformBlockingAuth(), project, and audacity::ToUTF8().
|
inline |
Definition at line 290 of file CloudProjectFileIOExtensions.cpp.
|
inline |
Definition at line 285 of file CloudProjectFileIOExtensions.cpp.
|
private |
Definition at line 301 of file CloudProjectFileIOExtensions.cpp.
|
private |
Definition at line 297 of file CloudProjectFileIOExtensions.cpp.
|
private |
Definition at line 299 of file CloudProjectFileIOExtensions.cpp.