comparison include/gui/translate/anime.h @ 185:62e336597bb7

anime list: add support for different score formats
author Paper <mrpapersonic@gmail.com>
date Tue, 05 Dec 2023 13:45:23 -0500
parents f88eda79c60a
children 649786bae914
comparison
equal deleted inserted replaced
184:09492158bcc5 185:62e336597bb7
1 #ifndef __gui__translate__anime_h
2 #define __gui__translate__anime_h
3
1 #include "core/anime.h" 4 #include "core/anime.h"
2 5
3 namespace Translate { 6 namespace Translate {
4 7
5 std::string ToString(const Anime::ListStatus status); 8 std::string ToString(const Anime::ListStatus status);
6 std::string ToString(const Anime::SeriesFormat format); 9 std::string ToString(const Anime::SeriesFormat format);
7 std::string ToString(const Anime::SeriesSeason season); 10 std::string ToString(const Anime::SeriesSeason season);
8 std::string ToString(const Anime::SeriesStatus status); 11 std::string ToString(const Anime::SeriesStatus status);
9 std::string ToString(const Anime::Services service); 12 std::string ToString(const Anime::Services service);
10 std::string ToString(const Anime::TitleLanguage language); 13 std::string ToString(const Anime::TitleLanguage language);
14 std::string ToString(const Anime::ScoreFormat format);
11 15
12 std::string ToLocalString(const Anime::ListStatus status); 16 std::string ToLocalString(const Anime::ListStatus status);
13 std::string ToLocalString(const Anime::SeriesFormat format); 17 std::string ToLocalString(const Anime::SeriesFormat format);
14 std::string ToLocalString(const Anime::SeriesSeason season); 18 std::string ToLocalString(const Anime::SeriesSeason season);
15 std::string ToLocalString(const Anime::SeriesStatus status); 19 std::string ToLocalString(const Anime::SeriesStatus status);
20 Anime::SeriesFormat ToSeriesFormat(const std::string& str); 24 Anime::SeriesFormat ToSeriesFormat(const std::string& str);
21 Anime::SeriesSeason ToSeriesSeason(const std::string& str); 25 Anime::SeriesSeason ToSeriesSeason(const std::string& str);
22 Anime::SeriesStatus ToSeriesStatus(const std::string& str); 26 Anime::SeriesStatus ToSeriesStatus(const std::string& str);
23 Anime::Services ToService(const std::string& str); 27 Anime::Services ToService(const std::string& str);
24 Anime::TitleLanguage ToLanguage(const std::string& str); 28 Anime::TitleLanguage ToLanguage(const std::string& str);
29 Anime::ScoreFormat ToScoreFormat(const std::string& str);
25 30
26 } // namespace Translate 31 } // namespace Translate
32
33 #endif // __gui__translate__anime_h