X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdevinst.h;h=0ce767452742c691f38b9caf58fa39d35bcfd90c;hb=e183f4e328db8bb134652254ba9bf0707dc16c66;hp=4b61810933bf5c6a1ab2b571a8032093bc09b2ec;hpb=8dd4419097191563045396946f0dcff5ac9714b2;p=pulseview.git diff --git a/pv/devinst.h b/pv/devinst.h index 4b618109..0ce76745 100644 --- a/pv/devinst.h +++ b/pv/devinst.h @@ -25,15 +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); @@ -47,6 +52,11 @@ public: 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; };