Mercurial > minori
comparison include/core/config.h @ 317:b1f4d1867ab1
services: VERY initial Kitsu support
it only supports user authentication for now, but it's definitely
a start.
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 12 Jun 2024 04:07:10 -0400 |
parents | 657fda1b9cac |
children | 3b355fa948c7 |
comparison
equal
deleted
inserted
replaced
316:180714442770 | 317:b1f4d1867ab1 |
---|---|
1 #ifndef MINORI_CORE_CONFIG_H_ | 1 #ifndef MINORI_CORE_CONFIG_H_ |
2 #define MINORI_CORE_CONFIG_H_ | 2 #define MINORI_CORE_CONFIG_H_ |
3 | 3 |
4 #include "core/anime.h" | 4 #include "core/anime.h" |
5 #include "core/time.h" | |
5 #include "gui/locale.h" | 6 #include "gui/locale.h" |
6 #include "gui/theme.h" | 7 #include "gui/theme.h" |
7 | 8 |
8 #include "animone/player.h" | 9 #include "animone/player.h" |
9 | 10 |
38 struct { | 39 struct { |
39 struct { | 40 struct { |
40 std::string auth_token; | 41 std::string auth_token; |
41 int user_id; | 42 int user_id; |
42 } anilist; | 43 } anilist; |
44 struct { | |
45 std::string access_token; | |
46 Time::Timestamp access_token_expiration; /* Unix time */ | |
47 std::string refresh_token; | |
48 std::string user_id; | |
49 } kitsu; | |
43 } auth; | 50 } auth; |
44 | 51 |
45 struct { | 52 struct { |
46 bool detect_media_players; | 53 bool detect_media_players; |
47 std::vector<MediaPlayer> players; | 54 std::vector<MediaPlayer> players; |