Mercurial > minori
annotate src/include/config.h @ 6:1d82f6e04d7d
Update: add first parts to the settings dialog
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 16 Aug 2023 00:49:17 -0400 |
parents | 23d0d9319a00 |
children | 07a9095eaeed |
rev | line source |
---|---|
2 | 1 #ifndef __config_h |
2 #define __config_h | |
3 /* This should be moved to anime_list.h, but unfortunately | |
4 #include-ing anime_list.h in this file causes a shitstorm for | |
5 whatever reason, so I'll just leave it here */ | |
6 enum AnimeListServices { | |
7 NONE, | |
6
1d82f6e04d7d
Update: add first parts to the settings dialog
Paper <mrpapersonic@gmail.com>
parents:
2
diff
changeset
|
8 ANILIST, |
1d82f6e04d7d
Update: add first parts to the settings dialog
Paper <mrpapersonic@gmail.com>
parents:
2
diff
changeset
|
9 NB_SERVICES |
2 | 10 }; |
11 | |
12 /* todo: make this a class enum */ | |
13 enum Themes { | |
14 LIGHT, | |
15 DARK, | |
16 OS | |
17 }; | |
18 | |
19 class Config { | |
20 public: | |
21 int Load(); | |
22 int Save(); | |
23 | |
24 enum AnimeListServices service; | |
25 enum Themes theme; | |
26 struct { | |
27 std::string auth_token; | |
28 std::string username; | |
29 int user_id; | |
30 } anilist; | |
31 }; | |
32 #define CONFIG_DIR "weeaboo" | |
33 #define CONFIG_NAME "config.json" | |
34 #define MAX_LINE_LENGTH 256 | |
35 #endif // __config_h |