Audacity 3.2.0
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
18class wxWindow;
19
20#include "Identifier.h"
21#include "Observer.h"
22
24{
25 FILES_API wxString TempDir();
26 FILES_API void ResetTempDir();
27
28 FILES_API const FilePath &DefaultTempDir();
29 FILES_API void SetDefaultTempDir( const FilePath &tempDir );
30 FILES_API bool IsTempDirectoryNameOK( const FilePath & Name );
31
32 // Create a filename for an unsaved/temporary project file
33 FILES_API wxString UnsavedProjectFileName();
34
35 FILES_API bool FATFilesystemDenied(const FilePath &path,
36 const TranslatableString &msg,
37 const BasicUI::WindowPlacement &placement = {});
38
40}
41
42#endif
Toolkit-neutral facade for basic user interface services.
wxString FilePath
Definition: Project.h:21
Subclasses may hold information such as a parent window pointer for a dialog.
Definition: BasicUI.h:30
Holds a msgid for the translation catalog; may also bind format arguments.
FILES_API bool FATFilesystemDenied(const FilePath &path, const TranslatableString &msg, const BasicUI::WindowPlacement &placement={})
FILES_API wxString UnsavedProjectFileName()
FILES_API bool IsTempDirectoryNameOK(const FilePath &Name)
FILES_API wxString TempDir()
FILES_API void ResetTempDir()
FILES_API void SetDefaultTempDir(const FilePath &tempDir)
FILES_API const FilePath & DefaultTempDir()
FILES_API Observer::Publisher< FilePath > & GetTempPathObserver()