annotate src/services/services.cpp @ 12:cf6a73a5ba1c

cmake: fix for mingw
author Paper <mrpapersonic@gmail.com>
date Mon, 18 Sep 2023 23:40:11 -0400
parents 4b198a111713
children cde8f67a7c7d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
1 #include "core/session.h"
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
2 #include "services/anilist.h"
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
3 #include "services/services.h"
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
4
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
5 namespace Services {
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
6
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
7 void Synchronize() {
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
8 switch (session.config.service) {
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
9 case Anime::Services::ANILIST: AniList::GetAnimeList(); break;
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
10 default: break;
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
11 }
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
12 }
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
13
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
14 void Authorize() {
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
15 switch (session.config.service) {
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
16 case Anime::Services::ANILIST: AniList::AuthorizeUser(); break;
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
17 default: break;
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
18 }
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
19 }
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
20
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
21 }; // namespace Services