X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fprop%2Fbinding%2Fdeviceoptions.h;h=4a6eff2eb1694f07ef61aa43b7feef2d95f191e2;hb=945745012eb57cefa1ef457daf48cfffa99f9ec2;hp=0b441599e70df89b9c57f5665282cbadecf3a723;hpb=117ef0090a0c285369ce48bcc7e01d92faa9f329;p=pulseview.git diff --git a/pv/prop/binding/deviceoptions.h b/pv/prop/binding/deviceoptions.h index 0b44159..4a6eff2 100644 --- a/pv/prop/binding/deviceoptions.h +++ b/pv/prop/binding/deviceoptions.h @@ -26,26 +26,29 @@ #include -#include - #include "binding.h" +#include + +struct sr_dev_inst; +struct sr_probe_group; + namespace pv { + +namespace device { +class DevInst; +} + namespace prop { namespace binding { class DeviceOptions : public Binding { public: - DeviceOptions(struct sr_dev_inst *sdi); + DeviceOptions(boost::shared_ptr dev_inst, + const sr_probe_group *group = NULL); private: - - static GVariant* config_getter( - const struct sr_dev_inst *sdi, int key); - static void config_setter( - const struct sr_dev_inst *sdi, int key, GVariant* value); - void bind_bool(const QString &name, int key); void bind_enum(const QString &name, int key, GVariant *const gvar_list, @@ -60,7 +63,8 @@ private: static QString print_voltage_threshold(GVariant *const gvar); protected: - struct sr_dev_inst *const _sdi; + boost::shared_ptr _dev_inst; + const sr_probe_group *const _group; }; } // binding