Begin rewriting Player in C++

This commit is contained in:
Dark Steveneq
2025-10-16 19:21:35 +02:00
parent 1f821d58cc
commit 01a3775ac7
11 changed files with 184 additions and 3 deletions

18
player.h Normal file
View File

@@ -0,0 +1,18 @@
#pragma once
#include <QDebug>
#include <QObject>
#include <QtQmlIntegration/qqmlintegration.h>
class Player : public QObject
{
Q_OBJECT
QML_SINGLETON
QML_ELEMENT
public:
Player(QObject *parent = nullptr);
~Player();
Q_INVOKABLE void startPlaying(int index);
Q_INVOKABLE void stopPlaying();
};