| 1145 | } |
| 1146 | |
| 1147 | QJSValue BridgeApp::screenshots() |
| 1148 | { |
| 1149 | QVariantMap list; |
| 1150 | auto screenshots = scriptEngine->manager()->GetScreenshots(); |
| 1151 | |
| 1152 | for (const auto& screen : screenshots) { |
| 1153 | QVariantMap map; |
| 1154 | map["id"] = screen.ScreenId; |
| 1155 | map["user"] = screen.User; |
| 1156 | map["computer"] = screen.Computer; |
| 1157 | map["note"] = screen.Note; |
| 1158 | map["date"] = screen.Date; |
| 1159 | list[screen.ScreenId] = map; |
| 1160 | } |
| 1161 | |
| 1162 | return this->scriptEngine->engine()->toScriptValue(list); |
| 1163 | } |
| 1164 | |
| 1165 | void BridgeApp::service_command(const QString &service, const QString &command, const QJSValue &args) |
| 1166 | { |
nothing calls this directly
no test coverage detected