MCPcopy Create free account
hub / github.com/SpartanJ/eepp / findCapability

Method findCapability

src/tools/ecode/universallocator.cpp:967–976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

965}
966
967bool UniversalLocator::findCapability( PluginCapability capability ) {
968 nlohmann::json capa;
969 capa["capability"] = capability;
970 capa["uri"] = getCurDocURI();
971 PluginRequestHandle resp = mApp->getPluginManager()->sendRequest(
972 PluginMessageType::QueryPluginCapability, PluginMessageFormat::JSON, &capa );
973 if ( resp.isResponse() && resp.getResponse().data.is_boolean() )
974 return resp.getResponse().data.get<bool>();
975 return false;
976}
977
978String UniversalLocator::getDefQueryText( PluginCapability capability ) {
979 bool hasCapability = findCapability( capability );

Callers

nothing calls this directly

Calls 4

getResponseMethod · 0.80
sendRequestMethod · 0.45
getPluginManagerMethod · 0.45
isResponseMethod · 0.45

Tested by

no test coverage detected