![]() |
Audacity 3.2.0
|
Our own specialisation of FileConfig. More...
#include <AudacityFileConfig.h>
Public Member Functions | |
~AudacityFileConfig () override | |
![]() | |
FileConfig (const wxString &appName=wxEmptyString, const wxString &vendorName=wxEmptyString, const wxString &localFilename=wxEmptyString, const wxString &globalFilename=wxEmptyString, long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE, const wxMBConv &conv=wxConvAuto()) | |
void | Init () |
virtual | ~FileConfig () |
virtual void | SetPath (const wxString &strPath) wxOVERRIDE |
virtual const wxString & | GetPath () const wxOVERRIDE |
virtual bool | GetFirstGroup (wxString &str, long &lIndex) const wxOVERRIDE |
virtual bool | GetNextGroup (wxString &str, long &lIndex) const wxOVERRIDE |
virtual bool | GetFirstEntry (wxString &str, long &lIndex) const wxOVERRIDE |
virtual bool | GetNextEntry (wxString &str, long &lIndex) const wxOVERRIDE |
virtual size_t | GetNumberOfEntries (bool bRecursive=false) const wxOVERRIDE |
virtual size_t | GetNumberOfGroups (bool bRecursive=false) const wxOVERRIDE |
virtual bool | HasGroup (const wxString &strName) const wxOVERRIDE |
virtual bool | HasEntry (const wxString &strName) const wxOVERRIDE |
virtual bool | Flush (bool bCurrentOnly=false) wxOVERRIDE |
virtual bool | RenameEntry (const wxString &oldName, const wxString &newName) wxOVERRIDE |
virtual bool | RenameGroup (const wxString &oldName, const wxString &newName) wxOVERRIDE |
virtual bool | DeleteEntry (const wxString &key, bool bDeleteGroupIfEmpty=true) wxOVERRIDE |
virtual bool | DeleteGroup (const wxString &key) wxOVERRIDE |
virtual bool | DeleteAll () wxOVERRIDE |
void | SetVersionKeysInit (int major, int minor, int micro) |
void | GetVersionKeysInit (int &major, int &minor, int µ) const |
Static Public Member Functions | |
static std::unique_ptr< AudacityFileConfig > | Create (const wxString &appName={}, const wxString &vendorName={}, const wxString &localFilename={}, const wxString &globalFilename={}, long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE, const wxMBConv &conv=wxConvAuto()) |
Require a call to this factory, to guarantee proper two-phase initialization. More... | |
Protected Member Functions | |
void | Warn () override |
![]() | |
virtual bool | DoReadString (const wxString &key, wxString *pStr) const wxOVERRIDE |
virtual bool | DoReadLong (const wxString &key, long *pl) const wxOVERRIDE |
virtual bool | DoWriteString (const wxString &key, const wxString &szValue) wxOVERRIDE |
virtual bool | DoWriteLong (const wxString &key, long lValue) wxOVERRIDE |
virtual void | Warn () |
const FilePath & | GetFilePath () const |
Private Member Functions | |
AudacityFileConfig (const wxString &appName, const wxString &vendorName, const wxString &localFilename, const wxString &globalFilename, long style, const wxMBConv &conv) | |
Disallow direct constructor call, because a two-phase initialization is required. More... | |
Our own specialisation of FileConfig.
Definition at line 19 of file AudacityFileConfig.h.
|
overridedefault |
|
private |
Disallow direct constructor call, because a two-phase initialization is required.
Definition at line 23 of file AudacityFileConfig.cpp.
|
static |
Require a call to this factory, to guarantee proper two-phase initialization.
Definition at line 36 of file AudacityFileConfig.cpp.
References FileConfig::Init(), and safenew.
Referenced by AudacityApp::InitPart2(), AudacityApp::OnInit(), and anonymous_namespace{AudacityApp.cpp}::PopulatePreferences().
|
overrideprotectedvirtual |
Override to notify the user of error conditions involving writability of config files. Default implementation does nothing
Reimplemented from FileConfig.
Definition at line 53 of file AudacityFileConfig.cpp.
References eIsCreating, FileConfig::GetFilePath(), HelpSystem::HelpHostname, HelpSystem::HelpServerHomeDir, BasicUI::OpenInDefaultBrowser(), S, XO(), and XXO().