X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fbinding%2Fdecoder.hpp;h=a93a057f1a371b8571f19b0cd2808aa11e217b9e;hp=107ac15de8a9407541b2d9cd2f7b8e023d25071e;hb=946b52e1f0e0520415c3653cc6ea9d083718f76d;hpb=7a01bd3654ed046216308fa64edfd79be7cd525f diff --git a/pv/binding/decoder.hpp b/pv/binding/decoder.hpp index 107ac15d..a93a057f 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,12 +24,14 @@ #include +using std::shared_ptr; + struct srd_decoder_option; namespace pv { namespace data { -class DecoderStack; +class DecodeSignal; namespace decode { class Decoder; } @@ -41,12 +42,12 @@ namespace binding { class Decoder : public Binding { public: - Decoder(std::shared_ptr decoder_stack, - std::shared_ptr decoder); + Decoder(shared_ptr decode_signal, + 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 decode_signal_; + shared_ptr decoder_; }; -} // binding -} // pv +} // namespace binding +} // namespace pv #endif // PULSEVIEW_PV_BINDING_DECODER_HPP