| 953 | QString BridgeApp::hash(const QString &algorithm, const int length, const QString &input) { return GenerateHash(algorithm, length, input); } |
| 954 | |
| 955 | QJSValue BridgeApp::ids() const |
| 956 | { |
| 957 | QVariantList list; |
| 958 | auto mapAgents = scriptEngine->manager()->GetAgents(); |
| 959 | |
| 960 | for (const auto& agent : mapAgents) |
| 961 | list.append(agent->data.Id); |
| 962 | |
| 963 | return this->scriptEngine->engine()->toScriptValue(list); |
| 964 | } |
| 965 | |
| 966 | QJSValue BridgeApp::interfaces() const |
| 967 | { |