* Returns the main Powershell script. */
| 105 | * Returns the main Powershell script. |
| 106 | */ |
| 107 | QByteArray 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. |
no test coverage detected