Make member variable underscores a suffix instead of a prefix
[pulseview.git] / pv / prop / property.h
index 22e211b1936905146d5d80118a2756dc5859b7da..dd6d25bad37460d4e1fe9bac6992366a42933907 100644 (file)
 #ifndef PULSEVIEW_PV_PROP_PROPERTY_H
 #define PULSEVIEW_PV_PROP_PROPERTY_H
 
-#include <glib-2.0/glib.h>
-
-#include <boost/function.hpp>
+#include <glibmm-2.4/glibmm.h>
 
+#include <functional>
 #include <QString>
 #include <QWidget>
 
@@ -38,8 +37,8 @@ class Property : public QObject
        Q_OBJECT;
 
 public:
-       typedef boost::function<GVariant* ()> Getter;
-       typedef boost::function<void (GVariant*)> Setter;
+       typedef std::function<Glib::VariantBase ()> Getter;
+       typedef std::function<void (Glib::VariantBase)> Setter;
 
 protected:
        Property(QString name, Getter getter, Setter setter);
@@ -54,11 +53,11 @@ public:
        virtual void commit() = 0;
 
 protected:
-       const Getter _getter;
-       const Setter _setter;
+       const Getter getter_;
+       const Setter setter_;
 
 private:
-       QString _name;
+       QString name_;
 };
 
 } // prop