Mercurial > minori
view src/services/services.cc @ 202:71832ffe425a
animia: re-add kvm fd source
this is all being merged from my wildly out-of-date laptop. SORRY!
in other news, I edited the CI file to install the wayland client
as well, so the linux CI build might finally get wayland stuff.
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Tue, 02 Jan 2024 06:05:06 -0500 |
parents | 80f49f623d30 |
children | c130f47f6f48 |
line wrap: on
line source
#include "services/services.h" #include "core/session.h" #include "gui/dialog/settings.h" #include "services/anilist.h" #include <QMessageBox> namespace Services { void Synchronize() { switch (session.config.service) { case Anime::Services::ANILIST: AniList::GetAnimeList(); break; default: break; } } void UpdateAnimeEntry(int id) { switch (session.config.service) { case Anime::Services::ANILIST: AniList::UpdateAnimeEntry(id); break; default: break; } } bool Authorize() { switch (session.config.service) { case Anime::Services::ANILIST: return AniList::AuthorizeUser(); default: return true; } } }; // namespace Services