diff options
Diffstat (limited to 'mediaplayer')
-rw-r--r-- | mediaplayer/mediaplayer.cpp | 9 | ||||
-rw-r--r-- | mediaplayer/mediaplayer.h | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/mediaplayer/mediaplayer.cpp b/mediaplayer/mediaplayer.cpp index bf0b4bc..186cebe 100644 --- a/mediaplayer/mediaplayer.cpp +++ b/mediaplayer/mediaplayer.cpp @@ -87,6 +87,15 @@ void Mediaplayer::control(QString control) Mediaplayer::control(control, parameter); } +void Mediaplayer::disconnect() +{ + control("disconnect"); +} + +void Mediaplayer::connect() +{ + control("connect"); +} void Mediaplayer::play() { control("play"); diff --git a/mediaplayer/mediaplayer.h b/mediaplayer/mediaplayer.h index 36c8164..baefb01 100644 --- a/mediaplayer/mediaplayer.h +++ b/mediaplayer/mediaplayer.h @@ -76,6 +76,8 @@ class Mediaplayer : public QObject virtual ~Mediaplayer(); // controls + Q_INVOKABLE void disconnect(); + Q_INVOKABLE void connect(); Q_INVOKABLE void play(); Q_INVOKABLE void pause(); Q_INVOKABLE void previous(); |