Mercurial > minori
annotate src/include/config.h @ 8:b1f73678ef61
update
text paragraphs are now their own objects, as they should be
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sat, 26 Aug 2023 03:39:34 -0400 |
parents | 07a9095eaeed |
children |
rev | line source |
---|---|
2 | 1 #ifndef __config_h |
2 #define __config_h | |
7 | 3 enum AnimeTitleLanguage { |
4 ROMAJI, | |
5 NATIVE, | |
6 ENGLISH | |
7 }; | |
8 | |
2 | 9 enum AnimeListServices { |
10 NONE, | |
6
1d82f6e04d7d
Update: add first parts to the settings dialog
Paper <mrpapersonic@gmail.com>
parents:
2
diff
changeset
|
11 ANILIST, |
1d82f6e04d7d
Update: add first parts to the settings dialog
Paper <mrpapersonic@gmail.com>
parents:
2
diff
changeset
|
12 NB_SERVICES |
2 | 13 }; |
14 | |
15 enum Themes { | |
16 LIGHT, | |
17 DARK, | |
18 OS | |
19 }; | |
20 | |
21 class Config { | |
22 public: | |
23 int Load(); | |
24 int Save(); | |
25 | |
26 enum AnimeListServices service; | |
27 enum Themes theme; | |
7 | 28 |
29 struct { | |
30 enum AnimeTitleLanguage language; | |
31 bool display_aired_episodes; | |
32 bool display_available_episodes; | |
33 bool highlight_anime_if_available; | |
34 bool highlighted_anime_above_others; | |
35 } anime_list; | |
36 | |
2 | 37 struct { |
38 std::string auth_token; | |
39 std::string username; | |
40 int user_id; | |
41 } anilist; | |
42 }; | |
43 #define CONFIG_DIR "weeaboo" | |
44 #define CONFIG_NAME "config.json" | |
45 #define MAX_LINE_LENGTH 256 | |
46 #endif // __config_h |