Content is read in text-mode in utf8 encoding
| 86 | } |
| 87 | // Content is read in text-mode in utf8 encoding |
| 88 | QMap<QString, QVariant> readFile(const QString& filename) const override { |
| 89 | Q_UNUSED(filename); |
| 90 | return { |
| 91 | {QStringLiteral("status"), ScriptAPIInterface::SystemAccess_Failed}, |
| 92 | {QStringLiteral("result"), QString()}, |
| 93 | {QStringLiteral("message"), QStringLiteral("This is only a MockAPI")}, |
| 94 | }; |
| 95 | } |
| 96 | int fileExists(const QString& filename) const override { |
| 97 | Q_UNUSED(filename); |
| 98 | return ScriptAPIInterface::SystemAccess_Failed; |