annotate src/services/services.cpp @ 44:619cbd6e69f9

filesystem: fix CreateDirectories function
author Paper <mrpapersonic@gmail.com>
date Fri, 22 Sep 2023 13:52:11 -0400
parents cde8f67a7c7d
children d8eb763e6661
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
44
619cbd6e69f9 filesystem: fix CreateDirectories function
Paper <mrpapersonic@gmail.com>
parents: 15
diff changeset
14 bool Authorize() {
10
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
15 switch (session.config.service) {
44
619cbd6e69f9 filesystem: fix CreateDirectories function
Paper <mrpapersonic@gmail.com>
parents: 15
diff changeset
16 case Anime::Services::ANILIST:
619cbd6e69f9 filesystem: fix CreateDirectories function
Paper <mrpapersonic@gmail.com>
parents: 15
diff changeset
17 return AniList::AuthorizeUser();
619cbd6e69f9 filesystem: fix CreateDirectories function
Paper <mrpapersonic@gmail.com>
parents: 15
diff changeset
18 default:
619cbd6e69f9 filesystem: fix CreateDirectories function
Paper <mrpapersonic@gmail.com>
parents: 15
diff changeset
19 return true;
10
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
20 }
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
21 }
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
22
44
619cbd6e69f9 filesystem: fix CreateDirectories function
Paper <mrpapersonic@gmail.com>
parents: 15
diff changeset
23 }; // namespace Services