Audacity 3.2.0
AudacityFileConfig.h
Go to the documentation of this file.
1/**********************************************************************
2
3Audacity: A Digital Audio Editor
4
5@file AudacityFileConfig.h
6@brief Extend FileConfig with application-specific behavior
7
8Paul Licameli split from Prefs.h
9
10**********************************************************************/
11
12#ifndef __AUDACITY_FILE_CONFIG__
13#define __AUDACITY_FILE_CONFIG__
14
15#include <memory>
16#include "FileConfig.h" // to inherit
17
19class AUDACITY_DLL_API AudacityFileConfig final : public FileConfig
20{
21public:
23 static std::unique_ptr<AudacityFileConfig> Create(
24 const wxString& appName = {},
25 const wxString& vendorName = {},
26 const wxString& localFilename = {},
27 const wxString& globalFilename = {},
28 long style = wxCONFIG_USE_LOCAL_FILE | wxCONFIG_USE_GLOBAL_FILE,
29 const wxMBConv& conv = wxConvAuto()
30 );
31
33
34protected:
35 void Warn() override;
36
37private:
40 const wxString& appName,
41 const wxString& vendorName,
42 const wxString& localFilename,
43 const wxString& globalFilename,
44 long style,
45 const wxMBConv& conv
46 );
47};
48#endif
Our own specialisation of FileConfig.
~AudacityFileConfig() override
virtual void Warn()
Definition: FileConfig.cpp:288