X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdevinst.h;h=0ce767452742c691f38b9caf58fa39d35bcfd90c;hp=64d27583b24e08e8226bb14121dddb0454805ceb;hb=e183f4e328db8bb134652254ba9bf0707dc16c66;hpb=19adbc2c342b190161ec1223377a3619974b91f7 diff --git a/pv/devinst.h b/pv/devinst.h index 64d27583..0ce76745 100644 --- a/pv/devinst.h +++ b/pv/devinst.h @@ -25,12 +25,20 @@ #include +#include + +#include + struct sr_dev_inst; +struct sr_probe; +struct sr_probe_group; namespace pv { -class DevInst +class DevInst : public QObject { + Q_OBJECT + public: DevInst(sr_dev_inst *sdi); @@ -38,6 +46,17 @@ public: 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); + + void enable_probe(const sr_probe *probe, bool enable = true); + +signals: + void config_changed(); + private: sr_dev_inst *const _sdi; };