X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fprop%2Fbinding%2Fdecoderoptions.h;h=6dec9c2ec5bd9d4a2ba5938c7191d3b767dbe30d;hb=8bd26d8b9c831b509ee3241ea4dac6f50c023622;hp=c08f1017fb2a822106f21a603f7be76768d66050;hpb=5b1994c45194a95069dfcadf637723f3db8249da;p=pulseview.git diff --git a/pv/prop/binding/decoderoptions.h b/pv/prop/binding/decoderoptions.h index c08f1017..6dec9c2e 100644 --- a/pv/prop/binding/decoderoptions.h +++ b/pv/prop/binding/decoderoptions.h @@ -23,6 +23,10 @@ #include "binding.h" +#include + +struct srd_decoder_option; + namespace pv { namespace data { @@ -42,6 +46,10 @@ public: boost::shared_ptr decoder); private: + static boost::shared_ptr bind_enum(const QString &name, + const srd_decoder_option *option, + Property::Getter getter, Property::Setter setter); + GVariant* getter(const char *id); void setter(const char *id, GVariant *value);