2 * Copyright (C) 2013-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
13 typedef struct Translator Translator
;
18 \brief Translates old internal paths into new ones
20 Translates old videodb:// and musicdb:// paths which used numbers
21 to indicate a specific category to new paths using more descriptive
22 strings to indicate categories.
24 class CLegacyPathTranslation
28 \brief Translates old videodb:// paths to new ones
30 \param legacyPath Path in the old videodb:// format using numbers
31 \return Path in the new videodb:// format using descriptive strings
33 static std::string
TranslateVideoDbPath(const CURL
&legacyPath
);
34 static std::string
TranslateVideoDbPath(const std::string
&legacyPath
);
37 \brief Translates old musicdb:// paths to new ones
39 \param legacyPath Path in the old musicdb:// format using numbers
40 \return Path in the new musicdb:// format using descriptive strings
42 static std::string
TranslateMusicDbPath(const CURL
&legacyPath
);
43 static std::string
TranslateMusicDbPath(const std::string
&legacyPath
);
46 static std::string
TranslatePath(const std::string
&legacyPath
, Translator
*translationMap
, size_t translationMapSize
);