Files
qyouradio/player.h

19 lines
325 B
C
Raw Normal View History

2025-10-16 19:21:35 +02:00
#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();
};