MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / readArgumentDescription

Method readArgumentDescription

lib/extensionsystem/pluginspec.cpp:735–748  ·  view source on GitHub ↗

! \internal */

Source from the content-addressed store, hash-verified

733 \internal
734*/
735void PluginSpecPrivate::readArgumentDescription(QXmlStreamReader &reader)
736{
737 PluginArgumentDescription arg;
738 arg.name = reader.attributes().value(QLatin1String(ARGUMENT_NAME)).toString();
739 if (arg.name.isEmpty()) {
740 reader.raiseError(msgAttributeMissing(ARGUMENT, ARGUMENT_NAME));
741 return;
742 }
743 arg.parameter = reader.attributes().value(QLatin1String(ARGUMENT_PARAMETER)).toString();
744 arg.description = reader.readElementText();
745 if (reader.tokenType() != QXmlStreamReader::EndElement)
746 reader.raiseError(msgUnexpectedToken());
747 argumentDescriptions.push_back(arg);
748}
749
750bool PluginSpecPrivate::readBooleanValue(QXmlStreamReader &reader, const char *key)
751{

Callers

nothing calls this directly

Calls 4

msgAttributeMissingFunction · 0.85
msgUnexpectedTokenFunction · 0.85
isEmptyMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected