Mercurial > minori
comparison src/services/services.cpp @ 10:4b198a111713
Update
things actually compile now btw
qttest wants to fuck over the model but that might be my fault so /shrug
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Sat, 16 Sep 2023 02:06:01 -0400 |
| parents | 5c0397762b53 |
| children | cde8f67a7c7d |
comparison
equal
deleted
inserted
replaced
| 9:5c0397762b53 | 10:4b198a111713 |
|---|---|
| 1 #include "session.h" | 1 #include "core/session.h" |
| 2 #include "services/anilist.h" | |
| 3 #include "services/services.h" | |
| 2 | 4 |
| 3 namespace Services { | 5 namespace Services { |
| 4 | 6 |
| 5 void Synchronize() { | 7 void Synchronize() { |
| 6 switch (session.config.service) { | 8 switch (session.config.service) { |
| 7 case ANILIST: AniList::GetAnimeList(); break; | 9 case Anime::Services::ANILIST: AniList::GetAnimeList(); break; |
| 8 default: break; | 10 default: break; |
| 9 } | 11 } |
| 10 } | 12 } |
| 11 | 13 |
| 12 void Authorize() { | 14 void Authorize() { |
| 13 switch (session.config.service) { | 15 switch (session.config.service) { |
| 14 case ANILIST: AniList::AuthorizeUser(); break; | 16 case Anime::Services::ANILIST: AniList::AuthorizeUser(); break; |
| 15 default: break; | 17 default: break; |
| 16 } | 18 } |
| 17 } | 19 } |
| 18 | 20 |
| 19 } // namespace Services | 21 }; // namespace Services |
