bool DevInst::set_config(const sr_probe_group *group, int key, GVariant *data)
{
- return sr_config_set(_sdi, group, key, data) == SR_OK;
+ if(sr_config_set(_sdi, group, key, data) == SR_OK) {
+ config_changed();
+ return true;
+ }
+ return false;
}
GVariant* DevInst::list_config(const sr_probe_group *group, int key)
#include <boost/shared_ptr.hpp>
+#include <QObject>
+
#include <glib.h>
struct sr_dev_inst;
namespace pv {
-class DevInst
+class DevInst : public QObject
{
+ Q_OBJECT
+
public:
DevInst(sr_dev_inst *sdi);
GVariant* list_config(const sr_probe_group *group, int key);
+signals:
+ void config_changed();
+
private:
sr_dev_inst *const _sdi;
};