log
graph
tags
bookmarks
branches
changeset
browse
file
latest
diff
comparison
annotate
file log
raw
help
Mercurial
>
minori
annotate src/services/services.cpp @ 11:
fc1bf97c528b
Find changesets by keywords (author, files, the commit message), revision number or hash, or
revset expression
.
*: 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 (18 months ago)
parents
4b198a111713
children
cde8f67a7c7d
Ignore whitespace changes -
Everywhere:
Within whitespace:
At end of lines:
rev
line source
10
4b198a111713
Update
Paper <mrpapersonic@gmail.com>
parents:
9
diff
changeset
+
−
1
#include "core/session.h"
4b198a111713
Update
Paper <mrpapersonic@gmail.com>
parents:
9
diff
changeset
+
−
2
#include "services/anilist.h"
4b198a111713
Update
Paper <mrpapersonic@gmail.com>
parents:
9
diff
changeset
+
−
3
#include "services/services.h"
4b198a111713
Update
Paper <mrpapersonic@gmail.com>
parents:
9
diff
changeset
+
−
4
4b198a111713
Update
Paper <mrpapersonic@gmail.com>
parents:
9
diff
changeset
+
−
5
namespace Services {
4b198a111713
Update
Paper <mrpapersonic@gmail.com>
parents:
9
diff
changeset
+
−
6
4b198a111713
Update
Paper <mrpapersonic@gmail.com>
parents:
9
diff
changeset
+
−
7
void Synchronize() {
4b198a111713
Update
Paper <mrpapersonic@gmail.com>
parents:
9
diff
changeset
+
−
8
switch (session.config.service) {
4b198a111713
Update
Paper <mrpapersonic@gmail.com>
parents:
9
diff
changeset
+
−
9
case Anime::Services::ANILIST: AniList::GetAnimeList(); break;
4b198a111713
Update
Paper <mrpapersonic@gmail.com>
parents:
9
diff
changeset
+
−
10
default: break;
4b198a111713
Update
Paper <mrpapersonic@gmail.com>
parents:
9
diff
changeset
+
−
11
}
4b198a111713
Update
Paper <mrpapersonic@gmail.com>
parents:
9
diff
changeset
+
−
12
}
4b198a111713
Update
Paper <mrpapersonic@gmail.com>
parents:
9
diff
changeset
+
−
13
4b198a111713
Update
Paper <mrpapersonic@gmail.com>
parents:
9
diff
changeset
+
−
14
void Authorize() {
4b198a111713
Update
Paper <mrpapersonic@gmail.com>
parents:
9
diff
changeset
+
−
15
switch (session.config.service) {
4b198a111713
Update
Paper <mrpapersonic@gmail.com>
parents:
9
diff
changeset
+
−
16
case Anime::Services::ANILIST: AniList::AuthorizeUser(); break;
4b198a111713
Update
Paper <mrpapersonic@gmail.com>
parents:
9
diff
changeset
+
−
17
default: break;
4b198a111713
Update
Paper <mrpapersonic@gmail.com>
parents:
9
diff
changeset
+
−
18
}
4b198a111713
Update
Paper <mrpapersonic@gmail.com>
parents:
9
diff
changeset
+
−
19
}
4b198a111713
Update
Paper <mrpapersonic@gmail.com>
parents:
9
diff
changeset
+
−
20
4b198a111713
Update
Paper <mrpapersonic@gmail.com>
parents:
9
diff
changeset
+
−
21
}; // namespace Services