X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdevice%2Fdevinst.h;h=6e81f49c686fcc8ab1424ed2836ae6e859e5e348;hp=073813f2f7d1d03f418c05b07952ecc63fe784c4;hb=921b90c0b3ae0cf44247da3d87bd7dc0612e9681;hpb=945745012eb57cefa1ef457daf48cfffa99f9ec2 diff --git a/pv/device/devinst.h b/pv/device/devinst.h index 073813f..6e81f49 100644 --- a/pv/device/devinst.h +++ b/pv/device/devinst.h @@ -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; };