MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / startScript

Function startScript

src/sensors/powershell_position_source.cpp:107–117  ·  view source on GitHub ↗

* Returns the main Powershell script. */

Source from the content-addressed store, hash-verified

105 * Returns the main Powershell script.
106 */
107QByteArray startScript()
108{
109 QByteArray script;
110 initPowershellPositionResources();
111 QFile script_file(QStringLiteral(":/sensors/powershell_position_source.ps1"));
112 if (script_file.open(QIODevice::ReadOnly))
113 script = script_file.readAll();
114 if (script_file.error() != QFileDevice::NoError)
115 script.clear();
116 return script;
117}
118
119/**
120 * Configures the process for accessing the Windows Location API via powershell.

Callers 1

defaultSetupFunction · 0.85

Calls 4

openMethod · 0.80
errorMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected