X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdevicemanager.hpp;h=b99a047c6327100f9f0d15fb9b92f0ece53d418a;hb=8e99ef9634a6c91d38e85c3fa7587a4ae22fcd2b;hp=fa116223305a179884c27d400d76b25c53e87caa;hpb=2b81ae4682ade4109ffa442794de36ceb32045eb;p=pulseview.git diff --git a/pv/devicemanager.hpp b/pv/devicemanager.hpp index fa116223..b99a047c 100644 --- a/pv/devicemanager.hpp +++ b/pv/devicemanager.hpp @@ -18,8 +18,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef PULSEVIEW_PV_DEVICEMANAGER_H -#define PULSEVIEW_PV_DEVICEMANAGER_H +#ifndef PULSEVIEW_PV_DEVICEMANAGER_HPP +#define PULSEVIEW_PV_DEVICEMANAGER_HPP #include #include @@ -49,6 +49,8 @@ public: ~DeviceManager(); + const std::shared_ptr& context() const; + std::shared_ptr context(); const std::list< std::shared_ptr >& @@ -64,10 +66,12 @@ public: const std::shared_ptr find_device_from_info( const std::map search_info); - const std::string build_display_name(std::shared_ptr device); + void build_display_name(std::shared_ptr device); const std::string get_display_name(std::shared_ptr dev); + const std::string get_full_name(std::shared_ptr dev); + void update_display_name(std::shared_ptr dev); private: @@ -77,9 +81,11 @@ private: protected: std::shared_ptr context_; std::list< std::shared_ptr > devices_; + std::map< std::shared_ptr, std::string > display_names_; + std::map< std::shared_ptr, std::string > full_names_; }; } // namespace pv -#endif // PULSEVIEW_PV_DEVICEMANAGER_H +#endif // PULSEVIEW_PV_DEVICEMANAGER_HPP