MCPcopy Create free account
hub / github.com/KDE/kdeconnect-kde / sendConfig

Method sendConfig

plugins/runcommand/runcommandplugin.cpp:73–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void RunCommandPlugin::sendConfig()
74{
75 QString commands = config()->getString(QStringLiteral("commands"), QStringLiteral("{}"));
76 NetworkPacket np(PACKET_TYPE_RUNCOMMAND, {{QStringLiteral("commandList"), commands}});
77 np.set<bool>(QStringLiteral("canAddCommand"), true);
78
79 sendPacket(np);
80}
81
82#include "moc_runcommandplugin.cpp"
83#include "runcommandplugin.moc"

Callers

nothing calls this directly

Calls 1

getStringMethod · 0.80

Tested by

no test coverage detected