]> sigrok.org Git - pulseview.git/blobdiff - pv/prop/binding/hwcap.h
Ported pv::prop::binding::HwCap to new sigrok API
[pulseview.git] / pv / prop / binding / hwcap.h
index 6848720133f5cc533845ef5e60a3cab61fc8eecd..1c6a7474c50d1a5b579a7f17a74c7ee1af38d602 100644 (file)
@@ -21,6 +21,8 @@
 #ifndef PULSEVIEW_PV_PROP_BINDING_HWCAP_H
 #define PULSEVIEW_PV_PROP_BINDING_HWCAP_H
 
+#include <QString>
+
 extern "C" {
 #include <libsigrok/libsigrok.h>
 }
@@ -36,6 +38,17 @@ class HwCap : public Binding
 public:
        HwCap(struct sr_dev_inst *sdi);
 
+private:
+       void expose_enum(const struct sr_config_info *info,
+               const std::vector<std::pair<const void*, QString> > &values,
+               int opt);
+
+       void bind_stropt(const struct sr_config_info *info, int key);
+
+       void bind_buffer_size(const struct sr_config_info *info);
+       void bind_time_base(const struct sr_config_info *info);
+       void bind_vdiv(const struct sr_config_info *info);
+
 protected:
        const struct sr_dev_inst *_sdi;
 };