| 47 | const QString PathMappings::pathMappingLocalEntry(QStringLiteral("Local")); |
| 48 | |
| 49 | QUrl PathMappings::convertToLocalUrl(const KConfigGroup& config, const QUrl& remoteUrl) |
| 50 | { |
| 51 | if (remoteUrl.isLocalFile() && QFile::exists(remoteUrl.toLocalFile())) { |
| 52 | return remoteUrl; |
| 53 | } |
| 54 | |
| 55 | KConfigGroup cfg = config.group(pathMappingsEntry); |
| 56 | return rebaseMatchingUrl(remoteUrl, cfg, pathMappingRemoteEntry, pathMappingLocalEntry); |
| 57 | } |
| 58 | |
| 59 | QUrl PathMappings::convertToRemoteUrl(const KConfigGroup& config, const QUrl& localUrl) |
| 60 | { |
no test coverage detected