X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fprop%2Fproperty.h;h=6ab83193963c3d0a8f6b470c2bd551c41ad625ac;hp=002c91161faffd053d2a690e15f641a65282de9d;hb=9b25892767cee1d871ac18beb025033e905b28ae;hpb=2db7704ab7ca681917b0eb091ea49378fe18c4a8 diff --git a/pv/prop/property.h b/pv/prop/property.h index 002c9116..6ab83193 100644 --- a/pv/prop/property.h +++ b/pv/prop/property.h @@ -21,6 +21,8 @@ #ifndef PULSEVIEW_PV_PROP_PROPERTY_H #define PULSEVIEW_PV_PROP_PROPERTY_H +#include + #include #include @@ -33,8 +35,12 @@ namespace prop { class Property { +public: + typedef boost::function Getter; + typedef boost::function Setter; + protected: - Property(QString name); + Property(QString name, Getter getter, Setter setter); public: const QString& name() const; @@ -43,6 +49,10 @@ public: virtual void commit() = 0; +protected: + const Getter _getter; + const Setter _setter; + private: QString _name; };