diff src/services/services.cc @ 250:c130f47f6f48

*: many many changes e.g. the search page is actually implemented now!
author Paper <paper@paper.us.eu.org>
date Sun, 04 Feb 2024 21:17:17 -0500
parents 80f49f623d30
children 657fda1b9cac
line wrap: on
line diff
--- a/src/services/services.cc	Wed Jan 24 20:18:59 2024 -0500
+++ b/src/services/services.cc	Sun Feb 04 21:17:17 2024 -0500
@@ -2,7 +2,6 @@
 #include "core/session.h"
 #include "gui/dialog/settings.h"
 #include "services/anilist.h"
-#include <QMessageBox>
 
 namespace Services {
 
@@ -13,6 +12,13 @@
 	}
 }
 
+std::vector<int> Search(const std::string& search) {
+	switch (session.config.service) {
+		case Anime::Services::ANILIST: return AniList::Search(search);
+		default: return {};
+	}
+}
+
 void UpdateAnimeEntry(int id) {
 	switch (session.config.service) {
 		case Anime::Services::ANILIST: AniList::UpdateAnimeEntry(id); break;