X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fbinding%2Fdecoder.hpp;h=0e93cffee8ddc9b284222f036cb9174b1f7746d7;hp=48e5945bc32f6451c31c8d429b3c9f9846817178;hb=6f925ba9d6faf1077b73c5a5808259576081716a;hpb=3cc9ad7b867853315473df611612c562d562ed8a diff --git a/pv/binding/decoder.hpp b/pv/binding/decoder.hpp index 48e5945..0e93cff 100644 --- a/pv/binding/decoder.hpp +++ b/pv/binding/decoder.hpp @@ -14,17 +14,18 @@ * 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 { @@ -41,11 +42,11 @@ 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, + static shared_ptr bind_enum(const QString &name, const srd_decoder_option *option, prop::Property::Getter getter, prop::Property::Setter setter); @@ -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 -#endif // PULSEVIEW_PV_BINDING_DECODER_H +#endif // PULSEVIEW_PV_BINDING_DECODER_HPP