]> sigrok.org Git - pulseview.git/blobdiff - pv/device/devinst.h
Added pv::device::Device
[pulseview.git] / pv / device / devinst.h
index 073813f2f7d1d03f418c05b07952ecc63fe784c4..6e81f49c686fcc8ab1424ed2836ae6e859e5e348 100644 (file)
@@ -42,12 +42,13 @@ class DevInst : public QObject
 {
        Q_OBJECT
 
-public:
+protected:
        DevInst(sr_dev_inst *sdi);
 
+public:
        sr_dev_inst* dev_inst() const;
 
-       std::string format_device_title() const;
+       virtual std::string format_device_title() const = 0;
 
        GVariant* get_config(const sr_probe_group *group, int key);
 
@@ -68,7 +69,7 @@ public:
 signals:
        void config_changed();
 
-private:
+protected:
        sr_dev_inst *const _sdi;
 };