Mercurial > minori
annotate include/core/anime_db.h @ 46:d0adc4aedfc8
*: update...
this commit:
1. consolidates dark theme stuff to dark_theme.cpp
2. creates a new widgets folder to store all of our
custom widgets
3. creates the list settings page in the information
dialog, although much of it is nonfunctional: it
doesn't save, and the status doesn't even get filled
in... we'll fix this later!
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sat, 23 Sep 2023 01:02:15 -0400 |
parents | fc1bf97c528b |
children | fe719c109dbc |
rev | line source |
---|---|
10 | 1 #ifndef __core__anime_db_h |
2 #define __core__anime_db_h | |
3 #include "core/anime.h" | |
4 #include <unordered_map> | |
5 | |
6 namespace Anime { | |
7 | |
8 class Database { | |
9 public: | |
10 std::unordered_map<int, Anime> items; | |
11 int GetTotalAnimeAmount(); | |
12 int GetTotalEpisodeAmount(); | |
13 int GetTotalWatchedAmount(); | |
14 int GetTotalPlannedAmount(); | |
15 double GetAverageScore(); | |
16 double GetScoreDeviation(); | |
17 int GetListsAnimeAmount(ListStatus status); | |
18 }; | |
19 | |
11 | 20 extern Database db; |
10 | 21 |
22 } // namespace Anime | |
23 #endif // __core__anime_db_h |