Audacity  3.0.3
TempDirectory.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  TempDirectory.h
6 
7  Paul Licameli split from FileNames.h
8 
9  **********************************************************************/
10 
11 #ifndef __AUDACITY_TEMP_DIRECTORY__
12 #define __AUDACITY_TEMP_DIRECTORY__
13 
14 
15 #include "BasicUI.h"
16 
17 class TranslatableString;
18 class wxWindow;
19 
20 #include "Identifier.h"
21 
22 namespace TempDirectory
23 {
24  FILES_API wxString TempDir();
25  FILES_API void ResetTempDir();
26 
27  FILES_API const FilePath &DefaultTempDir();
28  FILES_API void SetDefaultTempDir( const FilePath &tempDir );
29  FILES_API bool IsTempDirectoryNameOK( const FilePath & Name );
30 
31  // Create a filename for an unsaved/temporary project file
32  FILES_API wxString UnsavedProjectFileName();
33 
34  FILES_API bool FATFilesystemDenied(const FilePath &path,
35  const TranslatableString &msg,
36  const BasicUI::WindowPlacement &placement = {});
37 };
38 
39 #endif
TranslatableString
Holds a msgid for the translation catalog; may also bind format arguments.
Definition: TranslatableString.h:32
TempDirectory::DefaultTempDir
FILES_API const FilePath & DefaultTempDir()
Definition: TempDirectory.cpp:58
TempDirectory::ResetTempDir
FILES_API void ResetTempDir()
Definition: TempDirectory.cpp:50
TempDirectory
Definition: TempDirectory.h:23
FilePath
wxString FilePath
Definition: Project.h:20
BasicUI::WindowPlacement
Subclasses may hold information such as a parent window pointer for a dialog.
Definition: BasicUI.h:29
Identifier.h
TempDirectory::IsTempDirectoryNameOK
FILES_API bool IsTempDirectoryNameOK(const FilePath &Name)
Definition: TempDirectory.cpp:70
BasicUI.h
Toolkit-neutral facade for basic user interface services.
TempDirectory::SetDefaultTempDir
FILES_API void SetDefaultTempDir(const FilePath &tempDir)
Definition: TempDirectory.cpp:63
TempDirectory::UnsavedProjectFileName
FILES_API wxString UnsavedProjectFileName()
Definition: TempDirectory.cpp:107
TempDirectory::FATFilesystemDenied
FILES_API bool FATFilesystemDenied(const FilePath &path, const TranslatableString &msg, const BasicUI::WindowPlacement &placement={})
Definition: TempDirectory.cpp:115
TempDirectory::TempDir
FILES_API wxString TempDir()
Definition: TempDirectory.cpp:26