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

Method Enabled

PathCopyCopy/plugins/src/InternetPathPlugin.cpp:75–79  ·  view source on GitHub ↗

Determines if the plugin should be enabled or not in the contextual menu. In our case, we inherit from the UNC path plugin, which grays itself out if there are no valid shares. In our case however, we always want to be enabled and we'll use the long path if no UNC path is available. @param p_ParentPath Path of parent directory; unused. @param p_File Path of one file selected; unused. @return alwa

Source from the content-addressed store, hash-verified

73 // @return always true to tell PCC to enable our plugin.
74 //
75 bool InternetPathPlugin::Enabled(const std::wstring& /*p_ParentPath*/,
76 const std::wstring& /*p_File*/) const noexcept(false)
77 {
78 return true;
79 }
80
81 //
82 // Returns the path of the specified file in file URI format

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected