mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-05 06:01:04 +01:00
Bug 328 (P2) - do not allow writing to paths that are also missing alias files.
This commit is contained in:
@@ -14,8 +14,27 @@
|
||||
#ifndef __AUDACITY_DEPENDENCIES__
|
||||
#define __AUDACITY_DEPENDENCIES__
|
||||
|
||||
#include <wx/dynarray.h>
|
||||
|
||||
class AudacityProject;
|
||||
|
||||
class AliasedFile
|
||||
{
|
||||
public:
|
||||
AliasedFile(wxFileName fileName, wxLongLong byteCount, bool bOriginalExists)
|
||||
{
|
||||
mFileName = fileName;
|
||||
mByteCount = byteCount;
|
||||
mbOriginalExists = bOriginalExists;
|
||||
};
|
||||
wxFileName mFileName;
|
||||
wxLongLong mByteCount; // if stored as current default sample format
|
||||
bool mbOriginalExists;
|
||||
};
|
||||
|
||||
WX_DECLARE_OBJARRAY(AliasedFile, AliasedFileArray);
|
||||
|
||||
|
||||
// Checks for alias block files, modifies the project if the
|
||||
// user requests it, and returns True if the user continues.
|
||||
// Returns false if the user clicks Cancel, meaning that they do
|
||||
@@ -23,4 +42,8 @@ class AudacityProject;
|
||||
bool ShowDependencyDialogIfNeeded(AudacityProject *project,
|
||||
bool isSaving);
|
||||
|
||||
// Returns a list of aliased files associated with a project.
|
||||
void FindDependencies(AudacityProject *project,
|
||||
AliasedFileArray *outAliasedFiles);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user