9#include "mediaplayer.h"
10#include "mediaplayer_p.h"
11#include "pendingcall.h"
19 return QStringLiteral(
"on");
21 return QStringLiteral(
"off");
29 return QStringLiteral(
"singletrack");
31 return QStringLiteral(
"alltracks");
33 return QStringLiteral(
"group");
35 return QStringLiteral(
"off");
43 return QStringLiteral(
"alltracks");
45 return QStringLiteral(
"group");
47 return QStringLiteral(
"off");
51MediaPlayer::MediaPlayer(
const QString &path,
const QVariantMap &properties)
57MediaPlayer::~MediaPlayer() =
default;
61 return d->q.toStrongRef();
71 return d->m_equalizer;
76 return new PendingCall(d->setDBusProperty(QStringLiteral(
"Equalizer"), equalizerToString(equalizer)), PendingCall::ReturnVoid,
this);
86 return new PendingCall(d->setDBusProperty(QStringLiteral(
"Repeat"), repeatToString(repeat)), PendingCall::ReturnVoid,
this);
96 return new PendingCall(d->setDBusProperty(QStringLiteral(
"Shuffle"), shuffleToString(shuffle)), PendingCall::ReturnVoid,
this);
109quint32 MediaPlayer::position()
const
111 return d->m_position;
116 return new PendingCall(d->m_bluezMediaPlayer->Play(), PendingCall::ReturnVoid,
this);
121 return new PendingCall(d->m_bluezMediaPlayer->Pause(), PendingCall::ReturnVoid,
this);
126 return new PendingCall(d->m_bluezMediaPlayer->Stop(), PendingCall::ReturnVoid,
this);
131 return new PendingCall(d->m_bluezMediaPlayer->Next(), PendingCall::ReturnVoid,
this);
136 return new PendingCall(d->m_bluezMediaPlayer->Previous(), PendingCall::ReturnVoid,
this);
141 return new PendingCall(d->m_bluezMediaPlayer->FastForward(), PendingCall::ReturnVoid,
this);
146 return new PendingCall(d->m_bluezMediaPlayer->Rewind(), PendingCall::ReturnVoid,
this);
151#include "moc_mediaplayer.cpp"
QString path(const QString &relativePath)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:00:59 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.