diff options
Diffstat (limited to 'src/client/PluginModel.cpp')
-rw-r--r-- | src/client/PluginModel.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/client/PluginModel.cpp b/src/client/PluginModel.cpp index 7198235a..e5ec1d5c 100644 --- a/src/client/PluginModel.cpp +++ b/src/client/PluginModel.cpp @@ -16,7 +16,9 @@ */ #include <sstream> +#include "config.h" #include "raul/Path.hpp" +#include "raul/Atom.hpp" #include "PluginModel.hpp" #include "PatchModel.hpp" #include "PluginUI.hpp" @@ -160,5 +162,16 @@ PluginModel::get_lv2_icon_path(SLV2Plugin plugin) } #endif + +const string +PluginModel::string_property(const std::string& name) const +{ + const Raul::Atom& atom = get_property(name); + if (atom.type() == Raul::Atom::STRING) + return atom.get_string(); + else + return ""; +} + } // namespace Client } // namespace Ingen |