MCPcopy Create free account
hub / github.com/clechasseur/pathcopycopy / IconFile

Method IconFile

PathCopyCopy/plugins/src/COMPlugin.cpp:153–166  ·  view source on GitHub ↗

Returns the path to the icon to use for this plugin. @return Path to icon file, or an empty string if not specified.

Source from the content-addressed store, hash-verified

151 // @return Path to icon file, or an empty string if not specified.
152 //
153 std::wstring COMPlugin::IconFile() const
154 {
155 // Check if plugin supports specifying an icon. Otherwise return an empty string.
156 std::wstring iconFile;
157 if (m_cpPluginIcon != nullptr) {
158 // Ask plugin for an icon file path.
159 ATL::CComBSTR bstrIconFile;
160 const HRESULT hRes = m_cpPluginIcon->get_IconFile(&bstrIconFile);
161 if (SUCCEEDED(hRes) && bstrIconFile != nullptr) {
162 iconFile = (LPWSTR) bstrIconFile;
163 }
164 }
165 return iconFile;
166 }
167
168 //
169 // Determines if we should use the default icon for this plugin.

Callers

nothing calls this directly

Calls 1

get_IconFileMethod · 0.45

Tested by

no test coverage detected