From 5546fa38fc0ba2d33288914d4fb40fe4d3d837bf Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 6 Dec 2010 02:41:46 +0000 Subject: Manage attempts to save plugin presets with the same name. Helps with #2662. git-svn-id: svn://localhost/ardour2/branches/3.0@8191 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/plugin.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libs/ardour/ardour/plugin.h') diff --git a/libs/ardour/ardour/plugin.h b/libs/ardour/ardour/plugin.h index bab2b71f31..4a2153c6e0 100644 --- a/libs/ardour/ardour/plugin.h +++ b/libs/ardour/ardour/plugin.h @@ -129,6 +129,7 @@ class Plugin : public PBD::StatefulDestructible, public Latent virtual bool parameter_is_output(uint32_t) const = 0; virtual bool save_preset (std::string) = 0; + virtual void remove_preset (std::string) = 0; virtual bool load_preset (const std::string& uri); struct PresetRecord { @@ -187,6 +188,10 @@ class Plugin : public PBD::StatefulDestructible, public Latent virtual void set_parameter (uint32_t which, float val) = 0; bool save_preset (std::string, std::string /* vst, ladspa etc. */); + void remove_preset (std::string, std::string); + bool write_preset_file (std::string, std::string); + std::string preset_source (std::string, std::string) const; + std::string preset_envvar () const; ARDOUR::AudioEngine& _engine; ARDOUR::Session& _session; -- cgit v1.2.3