2 * Copyright 2008 Alex Merry <alex.merry@kdemail.net>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #include "mprisdbustypes.h"
22 #include "../player.h"
24 #include <QVariantMap>
28 class Mpris
: public QObject
, public Player
34 * @param name the media player name.
36 explicit Mpris(const QString
& name
,
37 PlayerFactory
* factory
= 0);
65 void setVolume(qreal volume
);
71 void trackChanged(const QVariantMap
& metadata
);
72 void stateChanged(MprisDBusStatus state
);
73 void capsChanged(int caps
);
77 MprisPlayer
* m_player
;
80 QVariantMap m_metadata
;
83 QMap
<QString
,QString
> m_artfiles
;