X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fbinding%2Finputoutput.hpp;h=acfb61cb6b401ceaaa4b839088cb0b36803b6387;hp=7cf535b27450b5955a5223701fa5ce6ab477fdf3;hb=9a267f8dec48c9a28472c1a3bb146c624819e98b;hpb=efdec55aec1a137460fa362a381ed1904182bfed diff --git a/pv/binding/inputoutput.hpp b/pv/binding/inputoutput.hpp index 7cf535b2..acfb61cb 100644 --- a/pv/binding/inputoutput.hpp +++ b/pv/binding/inputoutput.hpp @@ -28,6 +28,11 @@ #include +using std::map; +using std::shared_ptr; +using std::string; +using std::vector; + namespace sigrok { class Option; } @@ -45,36 +50,35 @@ public: * Constructs a new @c InputOutput binding. * @param options the map of options to use as a template. */ - InputOutput( - const std::map> - &options); + InputOutput(const map> &options); /** * Gets the map of selected options. * @return the options. */ - const std::map& options() const; + const map& options() const; private: /** * A helper function to bind an option list to and enum property. * @param name the name of the property. + * @param name the description of the property. * @param values the list of values. * @param getter the getter that will read the values out of the map. * @param setter the setter that will set the values into the map. */ - std::shared_ptr bind_enum(const QString &name, - const std::vector &values, + shared_ptr bind_enum(const QString &name, + const QString &desc, const vector &values, prop::Property::Getter getter, prop::Property::Setter setter); private: /** * The current map of options. */ - std::map options_; + map options_; }; -} // binding -} // pv +} // namespace binding +} // namespace pv #endif // PULSEVIEW_PV_BINDING_INPUTOUTPUT_H