kodi
LegacyPathTranslation.h
1 /*
2  * Copyright (C) 2013-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include <string>
12 
13 typedef struct Translator Translator;
14 
15 class CURL;
16 
25 {
26 public:
33  static std::string TranslateVideoDbPath(const CURL &legacyPath);
34  static std::string TranslateVideoDbPath(const std::string &legacyPath);
35 
42  static std::string TranslateMusicDbPath(const CURL &legacyPath);
43  static std::string TranslateMusicDbPath(const std::string &legacyPath);
44 
45 private:
46  static std::string TranslatePath(const std::string &legacyPath, Translator *translationMap, size_t translationMapSize);
47 };
static std::string TranslateMusicDbPath(const CURL &legacyPath)
Translates old musicdb:// paths to new ones.
Definition: LegacyPathTranslation.cpp:77
Definition: URL.h:21
Translates old internal paths into new ones.
Definition: LegacyPathTranslation.h:24
Definition: LegacyPathTranslation.cpp:14
static std::string TranslateVideoDbPath(const CURL &legacyPath)
Translates old videodb:// paths to new ones.
Definition: LegacyPathTranslation.cpp:72