X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fbinding%2Fdevice.hpp;h=d4fbf3714ba040236cb055488a5dbc2fd4014a5a;hp=4c4d6f44dcf5ab8d3d678d7f78229b0e9b9ee5c4;hb=4e2195c8d934f7f874b612eaace8c6849e8b475d;hpb=870ea3dbf35b182e120c5d84ab89bf9cb7691232 diff --git a/pv/binding/device.hpp b/pv/binding/device.hpp index 4c4d6f4..d4fbf37 100644 --- a/pv/binding/device.hpp +++ b/pv/binding/device.hpp @@ -20,6 +20,8 @@ #ifndef PULSEVIEW_PV_BINDING_DEVICE_HPP #define PULSEVIEW_PV_BINDING_DEVICE_HPP +#include + #include #include @@ -40,7 +42,7 @@ namespace pv { namespace binding { -class Device : public QObject, public Binding +class Device : public Binding { Q_OBJECT @@ -51,14 +53,14 @@ Q_SIGNALS: void config_changed(); private: - void bind_bool(const QString &name, + void bind_bool(const QString &name, const QString &desc, prop::Property::Getter getter, prop::Property::Setter setter); - void bind_enum(const QString &name, + void bind_enum(const QString &name, const QString &desc, const sigrok::ConfigKey *key, set capabilities, prop::Property::Getter getter, prop::Property::Setter setter, function printer = print_gvariant); - void bind_int(const QString &name, QString suffix, + void bind_int(const QString &name, const QString &desc, QString suffix, boost::optional< pair > range, prop::Property::Getter getter, prop::Property::Setter setter);