diff include/core/config.h @ 9:5c0397762b53

INCOMPLETE: megacommit :)
author Paper <mrpapersonic@gmail.com>
date Sun, 10 Sep 2023 03:59:16 -0400
parents
children fc1bf97c528b
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/core/config.h	Sun Sep 10 03:59:16 2023 -0400
@@ -0,0 +1,38 @@
+#ifndef __core__config_h
+#define __core__config_h
+#include "core/anime.h"
+
+enum class Themes {
+	LIGHT,
+	DARK,
+	OS // AKA "Default"
+};
+
+class Config {
+	public:
+		int Load();
+		int Save();
+
+		Anime::Services service;
+		Themes theme;
+
+		struct {
+			public:
+				Anime::TitleLanguage language;
+				bool display_aired_episodes;
+				bool display_available_episodes;
+				bool highlight_anime_if_available;
+				bool highlighted_anime_above_others;
+		} anime_list;
+
+		struct {
+			public:
+				std::string auth_token;
+				std::string username;
+				int user_id;
+		} anilist;
+};
+#define CONFIG_DIR		"weeaboo"
+#define CONFIG_NAME		"config.json"
+#define MAX_LINE_LENGTH 256
+#endif // __core__config_h