Audacity 3.2.0
|
Functions | |
FILES_API wxString | TempDir () |
FILES_API void | ResetTempDir () |
FILES_API const FilePath & | DefaultTempDir () |
FILES_API void | SetDefaultTempDir (const FilePath &tempDir) |
FILES_API bool | IsTempDirectoryNameOK (const FilePath &Name) |
FILES_API wxString | UnsavedProjectFileName () |
FILES_API bool | FATFilesystemDenied (const FilePath &path, const TranslatableString &msg, const BasicUI::WindowPlacement &placement={}) |
FILES_API Observer::Publisher< FilePath > & | GetTempPathObserver () |
const FilePath & TempDirectory::DefaultTempDir | ( | ) |
Definition at line 82 of file TempDirectory.cpp.
References sDefaultTempDir.
Referenced by audacity::cloud::audiocom::GetUploadTempPath(), AudacityApp::InitTempDir(), anonymous_namespace{PluginMenus.cpp}::OnResetConfig(), DirectoriesPrefs::OnTempBrowse(), and TempDir().
bool TempDirectory::FATFilesystemDenied | ( | const FilePath & | path, |
const TranslatableString & | msg, | ||
const BasicUI::WindowPlacement & | placement = {} |
||
) |
Definition at line 140 of file TempDirectory.cpp.
References FileNames::IsOnFATFileSystem(), BasicUI::ShowErrorDialog(), and XO().
Referenced by anonymous_namespace{AudioComPrefsPanel.cpp}::AudioComPrefsPanel::Browse(), ProjectFileManager::DoSave(), IsTempDirectoryNameOK(), DirectoriesPrefs::OnBrowse(), FilesystemValidator::OnChar(), DirectoriesPrefs::OnTempBrowse(), ProjectFileManager::OpenFile(), ProjectFileManager::SaveCopy(), and FilesystemValidator::Validate().
Observer::Publisher< FilePath > & TempDirectory::GetTempPathObserver | ( | ) |
Definition at line 157 of file TempDirectory.cpp.
References anonymous_namespace{TempDirectory.cpp}::GetTempDirChangedPublisher().
bool TempDirectory::IsTempDirectoryNameOK | ( | const FilePath & | Name | ) |
Definition at line 95 of file TempDirectory.cpp.
References anonymous_namespace{Registry.cpp}::BadPath(), FATFilesystemDenied(), wxT(), and XO().
Referenced by AudacityApp::InitTempDir(), DirectoriesPrefs::OnTempBrowse(), and DirectoriesPrefs::Validate().
void TempDirectory::ResetTempDir | ( | ) |
Definition at line 74 of file TempDirectory.cpp.
References TempDirPath().
Referenced by AudacityApp::InitTempDir().
void TempDirectory::SetDefaultTempDir | ( | const FilePath & | tempDir | ) |
Definition at line 87 of file TempDirectory.cpp.
References anonymous_namespace{TempDirectory.cpp}::GetTempDirChangedPublisher(), sDefaultTempDir, and anonymous_namespace{TempDirectory.cpp}::TempDirChangedPublisher::UpdateTempPath().
wxString TempDirectory::TempDir | ( | ) |
Returns the directory used for temp files.
Definition at line 50 of file TempDirectory.cpp.
References DefaultTempDir(), gPrefs, FileNames::IsOnFATFileSystem(), FileNames::MkDir(), FileNames::PreferenceKey(), audacity::BasicSettings::Read(), BasicUI::ShowErrorDialog(), TempDirPath(), FileNames::UpdateDefaultPath(), wxT(), and XO().
Referenced by ProjectFileIO::CloseProject(), ProjectFileIO::DiscardConnection(), AudacityApp::InitTempDir(), AutoRecoveryDialog::OnDiscardSelected(), ProjectFileIO::OpenConnection(), AutoRecoveryDialog::PopulateList(), NyquistBase::Process(), ProjectFileIO::ProjectFileIO(), UnsavedProjectFileName(), and DirectoriesPrefs::Validate().
wxString TempDirectory::UnsavedProjectFileName | ( | ) |
Definition at line 132 of file TempDirectory.cpp.
References FileNames::CreateUniqueName(), fn, TempDir(), FileNames::UnsavedProjectExtension(), and wxT().
Referenced by ProjectFileIO::OpenConnection(), and ProjectFileManager::OpenNewProject().