projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace ann_format with ann_class.
[pulseview.git]
/
pv
/
prop
/
binding
/
decoderoptions.h
diff --git
a/pv/prop/binding/decoderoptions.h
b/pv/prop/binding/decoderoptions.h
index 62f4fe184cb766e51b7affdfeab35ede0ad851fa..a0b8dc4d3880b04495edcb2e8d6726cd17ba095b 100644
(file)
--- a/
pv/prop/binding/decoderoptions.h
+++ b/
pv/prop/binding/decoderoptions.h
@@
-21,10
+21,12
@@
#ifndef PULSEVIEW_PV_PROP_BINDING_DECODEROPTIONS_H
#define PULSEVIEW_PV_PROP_BINDING_DECODEROPTIONS_H
#ifndef PULSEVIEW_PV_PROP_BINDING_DECODEROPTIONS_H
#define PULSEVIEW_PV_PROP_BINDING_DECODEROPTIONS_H
-#include <glib.h>
-
#include "binding.h"
#include "binding.h"
+#include <pv/prop/property.h>
+
+struct srd_decoder_option;
+
namespace pv {
namespace data {
namespace pv {
namespace data {
@@
-40,17
+42,21
@@
namespace binding {
class DecoderOptions : public Binding
{
public:
class DecoderOptions : public Binding
{
public:
- DecoderOptions(
boost
::shared_ptr<pv::data::DecoderStack> decoder_stack,
-
boost
::shared_ptr<pv::data::decode::Decoder> decoder);
+ DecoderOptions(
std
::shared_ptr<pv::data::DecoderStack> decoder_stack,
+
std
::shared_ptr<pv::data::decode::Decoder> decoder);
private:
private:
+ static std::shared_ptr<Property> bind_enum(const QString &name,
+ const srd_decoder_option *option,
+ Property::Getter getter, Property::Setter setter);
+
GVariant* getter(const char *id);
void setter(const char *id, GVariant *value);
private:
GVariant* getter(const char *id);
void setter(const char *id, GVariant *value);
private:
-
boost
::shared_ptr<pv::data::DecoderStack> _decoder_stack;
-
boost
::shared_ptr<pv::data::decode::Decoder> _decoder;
+
std
::shared_ptr<pv::data::DecoderStack> _decoder_stack;
+
std
::shared_ptr<pv::data::decode::Decoder> _decoder;
};
} // binding
};
} // binding