comparison include/core/anime_db.h @ 369:47c9f8502269

*: clang-format all the things I've edited the formatting a bit. Now pointer asterisks (and reference ampersands) are on the variable instead of the type, as well as having newlines for function braces (but nothing else)
author Paper <paper@tflc.us>
date Fri, 25 Jul 2025 10:16:02 -0400
parents b5d6c27c308f
children
comparison
equal deleted inserted replaced
368:6d37a998cf91 369:47c9f8502269
16 size_t GetTotalWatchedAmount() const; 16 size_t GetTotalWatchedAmount() const;
17 size_t GetTotalPlannedAmount() const; 17 size_t GetTotalPlannedAmount() const;
18 double GetAverageScore() const; 18 double GetAverageScore() const;
19 double GetScoreDeviation() const; 19 double GetScoreDeviation() const;
20 size_t GetListsAnimeAmount(ListStatus status) const; 20 size_t GetListsAnimeAmount(ListStatus status) const;
21 int LookupAnimeTitle(const std::string& title) const; 21 int LookupAnimeTitle(const std::string &title) const;
22 22
23 bool GetDatabaseAsJSON(nlohmann::json& json) const; 23 bool GetDatabaseAsJSON(nlohmann::json &json) const;
24 bool SaveDatabaseToDisk() const; 24 bool SaveDatabaseToDisk() const;
25 25
26 bool ParseDatabaseJSON(const nlohmann::json& json); 26 bool ParseDatabaseJSON(const nlohmann::json &json);
27 bool LoadDatabaseFromDisk(); 27 bool LoadDatabaseFromDisk();
28 28
29 /* These are here to make sure that our service IDs don't collide 29 /* These are here to make sure that our service IDs don't collide
30 * and make the whole thing go boom. */ 30 * and make the whole thing go boom. */
31 int GetUnusedId() const; 31 int GetUnusedId() const;
32 int LookupServiceId(Service service, const std::string& id_to_find) const; 32 int LookupServiceId(Service service, const std::string &id_to_find) const;
33 int LookupServiceIdOrUnused(Service service, const std::string& id_to_find) const; 33 int LookupServiceIdOrUnused(Service service, const std::string &id_to_find) const;
34 34
35 /* when syncing we don't want to keep deleted anime */ 35 /* when syncing we don't want to keep deleted anime */
36 void RemoveAllUserData(); 36 void RemoveAllUserData();
37 37
38 std::vector<int> GetAllAnimeForSeason(Season season); 38 std::vector<int> GetAllAnimeForSeason(Season season);