diff include/gui/window.h @ 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 c8375765f0fc
children 4d461ef7d424
line wrap: on
line diff
--- a/include/gui/window.h	Sun Nov 19 19:13:28 2023 -0500
+++ b/include/gui/window.h	Tue Jan 02 06:05:06 2024 -0500
@@ -10,8 +10,24 @@
 #include <QWidget>
 #include <QStackedWidget>
 #include <QCloseEvent>
+#include <QThread>
 #include "gui/widgets/sidebar.h"
 
+Q_DECLARE_METATYPE(std::vector<std::string>);
+
+class PlayingThread : public QThread {
+		Q_OBJECT
+
+	public:
+		PlayingThread(QObject* object = nullptr) : QThread(object) {}
+
+	private:
+		void run() override;
+
+	signals:
+		void Done(const std::vector<std::string>& files);
+};
+
 class MainWindow final : public QMainWindow {
 		Q_OBJECT
 
@@ -30,6 +46,8 @@
 		std::unique_ptr<QWidget> main_widget = nullptr;
 		std::unique_ptr<QStackedWidget> stack = nullptr;
 		std::unique_ptr<SideBar> sidebar = nullptr;
+
+        std::unique_ptr<PlayingThread> thread = nullptr;
 };
 
 #endif // __window_h