X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fbinding%2Fdecoder.hpp;h=bf670403dee317f486c5d43ab093eb74932288fa;hp=107ac15de8a9407541b2d9cd2f7b8e023d25071e;hb=33094993339188a3baef302fb09eff6bf6bb6779;hpb=7a01bd3654ed046216308fa64edfd79be7cd525f diff --git a/pv/binding/decoder.hpp b/pv/binding/decoder.hpp index 107ac15d..bf670403 100644 --- a/pv/binding/decoder.hpp +++ b/pv/binding/decoder.hpp @@ -14,8 +14,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ #ifndef PULSEVIEW_PV_BINDING_DECODER_HPP @@ -25,6 +24,8 @@ #include +using std::shared_ptr; + struct srd_decoder_option; namespace pv { @@ -41,12 +42,12 @@ namespace binding { class Decoder : public Binding { public: - Decoder(std::shared_ptr decoder_stack, - std::shared_ptr decoder); + Decoder(shared_ptr decoder_stack, + shared_ptr decoder); private: - static std::shared_ptr bind_enum(const QString &name, - const srd_decoder_option *option, + static shared_ptr bind_enum(const QString &name, + const QString &desc, const srd_decoder_option *option, prop::Property::Getter getter, prop::Property::Setter setter); Glib::VariantBase getter(const char *id); @@ -54,11 +55,11 @@ private: void setter(const char *id, Glib::VariantBase value); private: - std::shared_ptr decoder_stack_; - std::shared_ptr decoder_; + shared_ptr decoder_stack_; + shared_ptr decoder_; }; -} // binding -} // pv +} // namespace binding +} // namespace pv #endif // PULSEVIEW_PV_BINDING_DECODER_HPP