| 965 | } |
| 966 | |
| 967 | bool 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 | |
| 978 | String UniversalLocator::getDefQueryText( PluginCapability capability ) { |
| 979 | bool hasCapability = findCapability( capability ); |
nothing calls this directly
no test coverage detected