Audacity 3.2.0
|
#include <ProjectFileIO.h>
Public Member Functions | |
BackupProject (ProjectFileIO &projectFileIO, const FilePath &path) | |
Rename project file at path, and any auxiliary files, to backup path names. More... | |
bool | IsOk () |
Returns false if the renaming in the constructor failed. More... | |
void | Discard () |
if !IsOk() do nothing; else remove backup files More... | |
~BackupProject () | |
if !IsOk() do nothing; else if Discard() was not called, undo the renaming More... | |
Private Attributes | |
FilePath | mPath |
FilePath | mSafety |
Definition at line 190 of file ProjectFileIO.h.
ProjectFileIO::BackupProject::BackupProject | ( | ProjectFileIO & | projectFileIO, |
const FilePath & | path | ||
) |
Rename project file at path, and any auxiliary files, to backup path names.
Definition at line 1371 of file ProjectFileIO.cpp.
References ProjectFileIO::MoveProject(), mPath, mSafety, and ProjectFileIO::SafetyFileName().
ProjectFileIO::BackupProject::~BackupProject | ( | ) |
if !IsOk()
do nothing; else if Discard()
was not called, undo the renaming
Definition at line 1391 of file ProjectFileIO.cpp.
References ProjectFileIO::AuxiliaryFileSuffixes().
void ProjectFileIO::BackupProject::Discard | ( | ) |
if !IsOk()
do nothing; else remove backup files
Definition at line 1382 of file ProjectFileIO.cpp.
References ProjectFileIO::RemoveProject().
|
inline |
Returns false if the renaming in the constructor failed.
Definition at line 195 of file ProjectFileIO.h.
|
private |
Definition at line 201 of file ProjectFileIO.h.
Referenced by BackupProject().
|
private |
Definition at line 201 of file ProjectFileIO.h.
Referenced by BackupProject().