[PVR][Estuary] Timer settings dialog: Show client name in timer type selection dialog...
[xbmc.git] / xbmc / utils / LegacyPathTranslation.h
blobba6450be7bb1a6dd68d3ea871e0971b0f89369ad
1 /*
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.
7 */
9 #pragma once
11 #include <string>
13 typedef struct Translator Translator;
15 class CURL;
17 /*!
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
26 public:
27 /*!
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);
36 /*!
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);
45 private:
46 static std::string TranslatePath(const std::string &legacyPath, Translator *translationMap, size_t translationMapSize);