MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / tooltipInfo

Method tooltipInfo

FastCopy/FileInfoViewModel.cpp:78–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 }
77
78 winrt::Windows::Foundation::Collections::IVector<winrt::Windows::Foundation::IInspectable> FileInfoViewModel::tooltipInfo()
79 {
80 for (auto&& [name, key] :
81 {
82 std::pair{L"FileDescription", PKEY_FileDescription},
83 std::pair{L"ProductName", PKEY_Software_ProductName},
84 std::pair{L"FileVersion", PKEY_FileVersion},
85 std::pair{L"Copyright", PKEY_Copyright }
86 })
87 {
88 auto value = GetShellPropStringFromPath(m_path.data(), key);
89 if (value.empty())
90 continue;
91 m_tooltipInfo.push_back(winrt::box_value(winrt::FastCopy::ExtendedFileInfo{.name = name, .value = value.data()}));
92 }
93 return winrt::single_threaded_vector(std::move(m_tooltipInfo));
94 }
95}

Callers

nothing calls this directly

Calls 2

dataMethod · 0.80

Tested by

no test coverage detected