Begin rewriting Player in C++
This commit is contained in:
18
player.h
Normal file
18
player.h
Normal 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();
|
||||
};
|
||||
Reference in New Issue
Block a user