From: Joel Holdsworth Date: Fri, 6 Sep 2013 12:46:39 +0000 (+0100) Subject: Added empty DecoderOptions binding X-Git-Tag: pulseview-0.2.0~293 X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=21ad818feabcb0a1cb51c61c534adce553c7e325 Added empty DecoderOptions binding --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4d1e9190..f633cd55 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -122,6 +122,7 @@ set(pulseview_SOURCES pv/prop/int.cpp pv/prop/property.cpp pv/prop/binding/binding.cpp + pv/prop/binding/decoderoptions.cpp pv/prop/binding/deviceoptions.cpp pv/toolbars/contextbar.cpp pv/toolbars/samplingbar.cpp diff --git a/pv/prop/binding/decoderoptions.cpp b/pv/prop/binding/decoderoptions.cpp new file mode 100644 index 00000000..27ac4456 --- /dev/null +++ b/pv/prop/binding/decoderoptions.cpp @@ -0,0 +1,35 @@ +/* + * This file is part of the PulseView project. + * + * Copyright (C) 2013 Joel Holdsworth + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * 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 + */ + +#include "decoderoptions.h" + +namespace pv { +namespace prop { +namespace binding { + +DecoderOptions::DecoderOptions(struct srd_decoder *decoder) : + _decoder(decoder) +{ +} + +} // binding +} // prop +} // pv + diff --git a/pv/prop/binding/decoderoptions.h b/pv/prop/binding/decoderoptions.h new file mode 100644 index 00000000..ac32d42c --- /dev/null +++ b/pv/prop/binding/decoderoptions.h @@ -0,0 +1,45 @@ +/* + * This file is part of the PulseView project. + * + * Copyright (C) 2013 Joel Holdsworth + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * 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 + */ + +#ifndef PULSEVIEW_PV_PROP_BINDING_DECODEROPTIONS_H +#define PULSEVIEW_PV_PROP_BINDING_DECODEROPTIONS_H + +#include + +#include "binding.h" + +namespace pv { +namespace prop { +namespace binding { + +class DecoderOptions : public Binding +{ +public: + DecoderOptions(struct srd_decoder *decoder); + +protected: + struct srd_decoder *const _decoder; +}; + +} // binding +} // prop +} // pv + +#endif // PULSEVIEW_PV_PROP_BINDING_DECODEROPTIONS_H