From e1ba840a391bda523922eba801a37310ca0c37ca Mon Sep 17 00:00:00 2001
From: Kubat <mael.martin31@gmail.com>
Date: Mon, 2 Aug 2021 08:53:45 +0200
Subject: [PATCH] [WIP] Commit before rebase of master the small classes
 introductions

---
 src/Lib/Utils.hh                     |  4 ++++
 src/UI/DocumentViews/MpvContainer.hh | 27 +++++++++++++++++++++++++++
 2 files changed, 31 insertions(+)
 create mode 100644 src/UI/DocumentViews/MpvContainer.hh

diff --git a/src/Lib/Utils.hh b/src/Lib/Utils.hh
index 7e75014a..b8dee2bd 100644
--- a/src/Lib/Utils.hh
+++ b/src/Lib/Utils.hh
@@ -1,6 +1,10 @@
 #ifndef VIVY_UTILS_H
 #define VIVY_UTILS_H
 
+#ifndef __cplusplus
+#error "This is a C++ header"
+#endif
+
 #include <QString>
 #include <QFileInfo>
 #include <QStringList>
diff --git a/src/UI/DocumentViews/MpvContainer.hh b/src/UI/DocumentViews/MpvContainer.hh
new file mode 100644
index 00000000..063670c9
--- /dev/null
+++ b/src/UI/DocumentViews/MpvContainer.hh
@@ -0,0 +1,27 @@
+#pragma once
+
+#ifndef __cplusplus
+#error "This is a C++ header"
+#endif
+
+#include "../../Lib/Utils.hh"
+
+struct mpv_handle;
+
+namespace Vivy
+{
+class MpvContainer : public QWidget {
+    VIVY_UNMOVABLE_OBJECT(MpvContainer)
+
+private:
+    quint64 wid{ 0 };
+    mpv_handle *mpv{ nullptr };
+
+public:
+    explicit MpvContainer() noexcept;
+    ~MpvContainer() noexcept override;
+
+signals:
+    void mpvEvent();
+};
+}
-- 
GitLab