Mercurial > minori
comparison include/core/anime_db.h @ 64:fe719c109dbc
*: update
1. add media tracking ability, and it displays info on the `now playing` page
2. the `now playing` page now actually shows something
3. renamed every page class to be more accurate to what it is
4. ...
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Sun, 01 Oct 2023 23:15:43 -0400 |
| parents | fc1bf97c528b |
| children | 3364fadc8a36 |
comparison
equal
deleted
inserted
replaced
| 63:3d2decf093bb | 64:fe719c109dbc |
|---|---|
| 1 #ifndef __core__anime_db_h | 1 #ifndef __core__anime_db_h |
| 2 #define __core__anime_db_h | 2 #define __core__anime_db_h |
| 3 #include "core/anime.h" | 3 #include "core/anime.h" |
| 4 #include <unordered_map> | 4 #include <unordered_map> |
| 5 #include <string> | |
| 5 | 6 |
| 6 namespace Anime { | 7 namespace Anime { |
| 7 | 8 |
| 8 class Database { | 9 class Database { |
| 9 public: | 10 public: |
| 13 int GetTotalWatchedAmount(); | 14 int GetTotalWatchedAmount(); |
| 14 int GetTotalPlannedAmount(); | 15 int GetTotalPlannedAmount(); |
| 15 double GetAverageScore(); | 16 double GetAverageScore(); |
| 16 double GetScoreDeviation(); | 17 double GetScoreDeviation(); |
| 17 int GetListsAnimeAmount(ListStatus status); | 18 int GetListsAnimeAmount(ListStatus status); |
| 19 int GetAnimeFromTitle(std::string title); | |
| 18 }; | 20 }; |
| 19 | 21 |
| 20 extern Database db; | 22 extern Database db; |
| 21 | 23 |
| 22 } // namespace Anime | 24 } // namespace Anime |
