]> sigrok.org Git - pulseview.git/blobdiff - pv/binding/device.hpp
Update to new configuration API.
[pulseview.git] / pv / binding / device.hpp
index 2a4c51634ed2ae734bc5b81a245054552822cde6..563132a205699427ad1903cfab5fd78b1b0e1fe6 100644 (file)
@@ -18,8 +18,8 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#ifndef PULSEVIEW_PV_BINDING_DEVICE_H
-#define PULSEVIEW_PV_BINDING_DEVICE_H
+#ifndef PULSEVIEW_PV_BINDING_DEVICE_HPP
+#define PULSEVIEW_PV_BINDING_DEVICE_HPP
 
 #include <boost/optional.hpp>
 
@@ -30,9 +30,7 @@
 
 #include <pv/prop/property.hpp>
 
-namespace sigrok {
-       class Configurable;
-}
+#include <libsigrokcxx/libsigrokcxx.hpp>
 
 namespace pv {
 
@@ -51,7 +49,9 @@ Q_SIGNALS:
 private:
        void bind_bool(const QString &name,
                prop::Property::Getter getter, prop::Property::Setter setter);
-       void bind_enum(const QString &name, Glib::VariantContainerBase gvar_list,
+       void bind_enum(const QString &name,
+               const sigrok::ConfigKey *key,
+               std::set<const sigrok::Capability *> capabilities,
                prop::Property::Getter getter, prop::Property::Setter setter,
                std::function<QString (Glib::VariantBase)> printer = print_gvariant);
        void bind_int(const QString &name, QString suffix,
@@ -69,4 +69,4 @@ protected:
 } // binding
 } // pv
 
-#endif // PULSEVIEW_PV_BINDING_DEVICE_H
+#endif // PULSEVIEW_PV_BINDING_DEVICE_HPP