X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdevicemanager.hpp;h=5aed775821300805ebc279439dab11995d2f8894;hp=823cb2bc9542ee8632690be4780db421a8bcc1de;hb=e93f553816d1938ab1917dff497a36acec4257e3;hpb=2acdb232d6bb452cfdfaea3ef5218fb4da592329 diff --git a/pv/devicemanager.hpp b/pv/devicemanager.hpp index 823cb2bc..5aed7758 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 @@ -40,7 +40,7 @@ namespace sigrok { namespace pv { -class SigSession; +class Session; class DeviceManager { @@ -64,10 +64,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 +79,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