diff include/gui/dialog/settings.h @ 116:254b1d2b7096

settings: add torrents page, make rss feed configurable
author Paper <mrpapersonic@gmail.com>
date Tue, 07 Nov 2023 13:52:13 -0500
parents 2004b41d4a59
children 4eae379cb1ff
line wrap: on
line diff
--- a/include/gui/dialog/settings.h	Tue Nov 07 12:04:51 2023 -0500
+++ b/include/gui/dialog/settings.h	Tue Nov 07 13:52:13 2023 -0500
@@ -3,6 +3,7 @@
 
 #include "core/anime.h"
 #include "core/config.h"
+#include "core/session.h"
 #include <QDialog>
 #include <QWidget>
 #include <QLocale>
@@ -58,6 +59,18 @@
 		bool highlighted_anime_above_others;
 };
 
+class SettingsPageTorrents final : public SettingsPage {
+		Q_OBJECT
+
+	public:
+		SettingsPageTorrents(QWidget* parent = nullptr);
+		void SaveInfo() override;
+
+	private:
+		QWidget* CreateGeneralWidget();
+		decltype(session.config.torrents.feed_link) feed_link;
+};
+
 class SettingsDialog final : public QDialog {
 		Q_OBJECT