X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdevicemanager.h;h=823cb2bc9542ee8632690be4780db421a8bcc1de;hb=8dbbc7f0b9ea59d0f0d62225772f8a56eee125f5;hp=0a47a35a004659b09da56ce7545135159a448939;hpb=e8d009288de28cb194bc7964f96677c2baf900c9;p=pulseview.git diff --git a/pv/devicemanager.h b/pv/devicemanager.h index 0a47a35..823cb2b 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::shared_ptr context_; + std::list< std::shared_ptr > devices_; + std::map< std::shared_ptr, std::string > display_names_; }; } // namespace pv