]> sigrok.org Git - pulseview.git/commitdiff
Added empty DecoderOptions binding
authorJoel Holdsworth <redacted>
Fri, 6 Sep 2013 12:46:39 +0000 (13:46 +0100)
committerJoel Holdsworth <redacted>
Sun, 29 Sep 2013 14:56:12 +0000 (23:56 +0900)
CMakeLists.txt
pv/prop/binding/decoderoptions.cpp [new file with mode: 0644]
pv/prop/binding/decoderoptions.h [new file with mode: 0644]

index 4d1e9190119bc60bb0d0b4eb0a69062165e45cdd..f633cd5505562c585bfca86c683cdafd1b85a49e 100644 (file)
@@ -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 (file)
index 0000000..27ac445
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * This file is part of the PulseView project.
+ *
+ * Copyright (C) 2013 Joel Holdsworth <joel@airwebreathe.org.uk>
+ *
+ * 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 (file)
index 0000000..ac32d42
--- /dev/null
@@ -0,0 +1,45 @@
+/*
+ * This file is part of the PulseView project.
+ *
+ * Copyright (C) 2013 Joel Holdsworth <joel@airwebreathe.org.uk>
+ *
+ * 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 <libsigrokdecode/libsigrokdecode.h>
+
+#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