X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fprop%2Fbinding%2Fdecoderoptions.h;h=6dec9c2ec5bd9d4a2ba5938c7191d3b767dbe30d;hb=182d2f5dbe8b631b24949e5b111762009d1eeefa;hp=e507e87c3accebafe17d356eace0a52dadc6defe;hpb=6e89374a6796f8d5d9cc61b0a2f7e98562a034ae;p=pulseview.git diff --git a/pv/prop/binding/decoderoptions.h b/pv/prop/binding/decoderoptions.h index e507e87..6dec9c2 100644 --- a/pv/prop/binding/decoderoptions.h +++ b/pv/prop/binding/decoderoptions.h @@ -21,14 +21,19 @@ #ifndef PULSEVIEW_PV_PROP_BINDING_DECODEROPTIONS_H #define PULSEVIEW_PV_PROP_BINDING_DECODEROPTIONS_H -#include - #include "binding.h" +#include + +struct srd_decoder_option; + namespace pv { namespace data { class DecoderStack; +namespace decode { +class Decoder; +} } namespace prop { @@ -37,15 +42,21 @@ namespace binding { class DecoderOptions : public Binding { public: - DecoderOptions(boost::shared_ptr decoder); + DecoderOptions(boost::shared_ptr decoder_stack, + 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); private: - boost::shared_ptr _decoder; + boost::shared_ptr _decoder_stack; + boost::shared_ptr _decoder; }; } // binding