projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added DevInst::config_changed signal
[pulseview.git]
/
pv
/
devinst.h
diff --git
a/pv/devinst.h
b/pv/devinst.h
index 64d27583b24e08e8226bb14121dddb0454805ceb..400f7c32893be45e7f275ce97eec05e9fb6cb0aa 100644
(file)
--- a/
pv/devinst.h
+++ b/
pv/devinst.h
@@
-25,12
+25,19
@@
#include <boost/shared_ptr.hpp>
#include <boost/shared_ptr.hpp>
+#include <QObject>
+
+#include <glib.h>
+
struct sr_dev_inst;
struct sr_dev_inst;
+struct sr_probe_group;
namespace pv {
namespace pv {
-class DevInst
+class DevInst
: public QObject
{
{
+ Q_OBJECT
+
public:
DevInst(sr_dev_inst *sdi);
public:
DevInst(sr_dev_inst *sdi);
@@
-38,6
+45,15
@@
public:
std::string format_device_title() const;
std::string format_device_title() const;
+ GVariant* get_config(const sr_probe_group *group, int key);
+
+ bool set_config(const sr_probe_group *group, int key, GVariant *data);
+
+ GVariant* list_config(const sr_probe_group *group, int key);
+
+signals:
+ void config_changed();
+
private:
sr_dev_inst *const _sdi;
};
private:
sr_dev_inst *const _sdi;
};