X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;ds=sidebyside;f=pv%2Fdevicemanager.h;h=511ba76091083679bdf96b021a6c4f312e12b5a2;hb=a4cf020a253c8c874ed8652f38a1c61c9a4754a4;hp=0a47a35a004659b09da56ce7545135159a448939;hpb=cbe9f991ccfc62182cddb758c69bc5d90f30302f;p=pulseview.git diff --git a/pv/devicemanager.h b/pv/devicemanager.h index 0a47a35..511ba76 100644 --- a/pv/devicemanager.h +++ b/pv/devicemanager.h @@ -64,15 +64,20 @@ public: const std::shared_ptr find_device_from_info( const std::map search_info); - static std::string device_description(std::shared_ptr device); + const std::string build_display_name(std::shared_ptr device); + + const std::string get_display_name(std::shared_ptr dev); + + void update_display_name(std::shared_ptr dev); private: - static bool compare_devices(std::shared_ptr a, - std::shared_ptr b); + bool compare_devices(std::shared_ptr a, + std::shared_ptr b); protected: std::shared_ptr _context; std::list< std::shared_ptr > _devices; + std::map< std::shared_ptr, std::string > _display_names; }; } // namespace pv