Mercurial > minori
annotate src/services/services.cpp @ 11:fc1bf97c528b
*: use C++11 standard
I've been meaning to do this for a while, but I didn't want to reimplement
the filesystem code. Now we are on C++11 and most compilers from the past 5 centuries should support this now
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 17 Sep 2023 06:14:30 -0400 |
parents | 4b198a111713 |
children | cde8f67a7c7d |
rev | line source |
---|---|
10 | 1 #include "core/session.h" |
2 #include "services/anilist.h" | |
3 #include "services/services.h" | |
4 | |
5 namespace Services { | |
6 | |
7 void Synchronize() { | |
8 switch (session.config.service) { | |
9 case Anime::Services::ANILIST: AniList::GetAnimeList(); break; | |
10 default: break; | |
11 } | |
12 } | |
13 | |
14 void Authorize() { | |
15 switch (session.config.service) { | |
16 case Anime::Services::ANILIST: AniList::AuthorizeUser(); break; | |
17 default: break; | |
18 } | |
19 } | |
20 | |
21 }; // namespace Services |