aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/mpris/mpris2
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2011-05-07 19:23:40 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2011-05-07 19:23:40 +0000
commit67cc84bdd339f12e1390a8ecdd2142602c9fdf8e (patch)
tree579b4849c91843965b3457608f8fcb503e56ac15 /src/plugins/General/mpris/mpris2
parentf5bf7b1ac031f164d7eef81d302e2ce2dc9f2bc8 (diff)
downloadqmmp-67cc84bdd339f12e1390a8ecdd2142602c9fdf8e.tar.gz
qmmp-67cc84bdd339f12e1390a8ecdd2142602c9fdf8e.tar.bz2
qmmp-67cc84bdd339f12e1390a8ecdd2142602c9fdf8e.zip
fixed broken mpris2 (Closes issue 466)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2177 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/mpris/mpris2')
-rw-r--r--src/plugins/General/mpris/mpris2/player2object.cpp7
-rw-r--r--src/plugins/General/mpris/mpris2/player2object.h4
-rw-r--r--src/plugins/General/mpris/mpris2/root2object.cpp4
-rw-r--r--src/plugins/General/mpris/mpris2/root2object.h6
4 files changed, 11 insertions, 10 deletions
diff --git a/src/plugins/General/mpris/mpris2/player2object.cpp b/src/plugins/General/mpris/mpris2/player2object.cpp
index 161153c68..979b33282 100644
--- a/src/plugins/General/mpris/mpris2/player2object.cpp
+++ b/src/plugins/General/mpris/mpris2/player2object.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2010 by Ilya Kotov *
+ * Copyright (C) 2010-2011 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -29,7 +29,7 @@
#include <qmmpui/playlistmanager.h>
#include "player2object.h"
-Player2Object::Player2Object(QObject *parent) : QObject(parent)
+Player2Object::Player2Object(QObject *parent) : QDBusAbstractAdaptor(parent)
{
m_prev_item = 0;
m_previous_pos = 0;
@@ -348,7 +348,8 @@ void Player2Object::playItem(PlayListItem *item)
void Player2Object::disconnectPl()
{
- disconnect(sender(), SIGNAL(itemAddded(itemAdded(PlayListItem*))), this, SLOT(playItem(PlayListItem*)));
+ disconnect(sender(), SIGNAL(itemAddded(itemAdded(PlayListItem*))),
+ this, SLOT(playItem(PlayListItem*)));
}
void Player2Object::syncProperties()
diff --git a/src/plugins/General/mpris/mpris2/player2object.h b/src/plugins/General/mpris/mpris2/player2object.h
index a3addf2f2..8a0763487 100644
--- a/src/plugins/General/mpris/mpris2/player2object.h
+++ b/src/plugins/General/mpris/mpris2/player2object.h
@@ -20,7 +20,7 @@
#ifndef PLAYER2OBJECT_H
#define PLAYER2OBJECT_H
-#include <QObject>
+#include <QDBusAbstractAdaptor>
#include <QVariantMap>
#include <QDBusObjectPath>
#include <QMap>
@@ -35,7 +35,7 @@ class PlayListItem;
/**
@author Ilya Kotov <forkotov02@hotmail.ru>
*/
-class Player2Object : public QObject
+class Player2Object : public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.mpris.MediaPlayer2.Player")
diff --git a/src/plugins/General/mpris/mpris2/root2object.cpp b/src/plugins/General/mpris/mpris2/root2object.cpp
index c0eca65fb..1f964272e 100644
--- a/src/plugins/General/mpris/mpris2/root2object.cpp
+++ b/src/plugins/General/mpris/mpris2/root2object.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2010 by Ilya Kotov *
+ * Copyright (C) 2010-2011 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -29,7 +29,7 @@
#include <qmmp/metadatamanager.h>
#include "root2object.h"
-Root2Object::Root2Object(QObject *parent) : QObject(parent)
+Root2Object::Root2Object(QObject *parent) : QDBusAbstractAdaptor(parent)
{}
diff --git a/src/plugins/General/mpris/mpris2/root2object.h b/src/plugins/General/mpris/mpris2/root2object.h
index f661df200..9da148a97 100644
--- a/src/plugins/General/mpris/mpris2/root2object.h
+++ b/src/plugins/General/mpris/mpris2/root2object.h
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2010 by Ilya Kotov *
+ * Copyright (C) 2010-2011 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -20,13 +20,13 @@
#ifndef ROOT2OBJECT_H
#define ROOT2OBJECT_H
-#include <QObject>
+#include <QDBusAbstractAdaptor>
#include <QStringList>
/**
@author Ilya Kotov <forkotov02@hotmail.ru>
*/
-class Root2Object : public QObject
+class Root2Object : public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.mpris.MediaPlayer2")