forked from Sneeds-Feed-and-Seed/sneedacity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSneedacityFileConfig.h
48 lines (38 loc) · 1.36 KB
/
SneedacityFileConfig.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**********************************************************************
Sneedacity: A Digital Audio Editor
@file SneedacityFileConfig.h
@brief Extend FileConfig with application-specific behavior
Paul Licameli split from Prefs.h
**********************************************************************/
#ifndef __SNEEDACITY_FILE_CONFIG__
#define __SNEEDACITY_FILE_CONFIG__
#include <memory>
#include "widgets/FileConfig.h" // to inherit
/// \brief Our own specialisation of FileConfig.
class SNEEDACITY_DLL_API SneedacityFileConfig final : public FileConfig
{
public:
//! Require a call to this factory, to guarantee proper two-phase initialization
static std::unique_ptr<SneedacityFileConfig> 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()
);
~SneedacityFileConfig() override;
protected:
void Warn() override;
private:
//! Disallow direct constructor call, because a two-phase initialization is required
SneedacityFileConfig(
const wxString& appName,
const wxString& vendorName,
const wxString& localFilename,
const wxString& globalFilename,
long style,
const wxMBConv& conv
);
};
#endif