annotate src/services/services.cpp @ 36:2743011a6042

*: mass update formatted all source files, converted ALL instances of setStyleSheet() to palettes and fonts (stylesheets suck), and I changed the clang-format file because it wasn't working on my laptop for some reason.
author Paper <mrpapersonic@gmail.com>
date Thu, 21 Sep 2023 15:17:47 -0400
parents cde8f67a7c7d
children 619cbd6e69f9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15
cde8f67a7c7d *: update, megacommit :)
Paper <mrpapersonic@gmail.com>
parents: 10
diff changeset
1 #include "services/services.h"
10
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
2 #include "core/session.h"
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
3 #include "services/anilist.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