]> sigrok.org Git - pulseview.git/blobdiff - pv/device/devinst.h
Moved SigSession::is_trigger_enabled into DevInst
[pulseview.git] / pv / device / devinst.h
index 9098027eb84e0674da978a65c38e67df3485c36f..5ee387477a7e0119ddb7331bc4271496687c916a 100644 (file)
@@ -46,10 +46,10 @@ class DevInst : public QObject
        Q_OBJECT
 
 protected:
-       DevInst(sr_dev_inst *sdi);
+       DevInst();
 
 public:
-       sr_dev_inst* dev_inst() const;
+       virtual sr_dev_inst* dev_inst() const = 0;
 
        void use(SigSession *owner);
 
@@ -75,11 +75,12 @@ public:
         */
        uint64_t get_sample_limit();
 
+       virtual bool is_trigger_enabled() const;
+
 signals:
        void config_changed();
 
 protected:
-       sr_dev_inst *const _sdi;
        SigSession *_owner;
 };