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

Method remoteArguments

lib/extensionsystem/pluginmanager.cpp:544–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542*/
543
544void PluginManager::remoteArguments(const QString &serializedArgument, QObject *socket)
545{
546 if (serializedArgument.isEmpty())
547 return;
548 QStringList serializedArguments = serializedArgument.split(QLatin1Char('|'));
549 const QStringList arguments = subList(serializedArguments, QLatin1String(argumentKeywordC));
550 foreach (const PluginSpec *ps, plugins()) {
551 if (ps->state() == PluginSpec::Running) {
552 const QStringList pluginOptions = subList(serializedArguments, QLatin1Char(':') + ps->name());
553 QObject *socketParent = ps->plugin()->remoteCommand(pluginOptions, arguments);
554 if (socketParent && socket) {
555 socket->setParent(socketParent);
556 socket = 0;
557 }
558 }
559 }
560 if (socket)
561 delete socket;
562}
563
564/*!
565 Takes the list of command line options in \a args and parses them.

Callers

nothing calls this directly

Calls 2

subListFunction · 0.85
isEmptyMethod · 0.80

Tested by

no test coverage detected