X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fbinding%2Fdecoder.hpp;h=a93a057f1a371b8571f19b0cd2808aa11e217b9e;hp=48e5945bc32f6451c31c8d429b3c9f9846817178;hb=4e2195c8d934f7f874b612eaace8c6849e8b475d;hpb=3cc9ad7b867853315473df611612c562d562ed8a diff --git a/pv/binding/decoder.hpp b/pv/binding/decoder.hpp index 48e5945..a93a057 100644 --- a/pv/binding/decoder.hpp +++ b/pv/binding/decoder.hpp @@ -14,23 +14,24 @@ * 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_H -#define PULSEVIEW_PV_BINDING_DECODER_H +#ifndef PULSEVIEW_PV_BINDING_DECODER_HPP +#define PULSEVIEW_PV_BINDING_DECODER_HPP #include "binding.hpp" #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_H +#endif // PULSEVIEW_PV_BINDING_DECODER_HPP