aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/mpris/mpris.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2018-07-02 21:20:53 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2018-07-02 21:20:53 +0000
commit20035f2d26e693352328c703a382d0ba86f7708a (patch)
tree675cf26b4427d9716da20da2a43bb43f4cad1fac /src/plugins/General/mpris/mpris.cpp
parent83c44dc39f2ac0324107bfde328d7032e65343cc (diff)
downloadqmmp-20035f2d26e693352328c703a382d0ba86f7708a.tar.gz
qmmp-20035f2d26e693352328c703a382d0ba86f7708a.tar.bz2
qmmp-20035f2d26e693352328c703a382d0ba86f7708a.zip
removed mpris1 support
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8097 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/mpris/mpris.cpp')
-rw-r--r--src/plugins/General/mpris/mpris.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/plugins/General/mpris/mpris.cpp b/src/plugins/General/mpris/mpris.cpp
index c668c6856..bfea8d8d3 100644
--- a/src/plugins/General/mpris/mpris.cpp
+++ b/src/plugins/General/mpris/mpris.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2008-2012 by Ilya Kotov *
+ * Copyright (C) 2008-2018 by Ilya Kotov *
* forkotov02@ya.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -19,9 +19,6 @@
***************************************************************************/
#include <QtDBus>
-#include "mpris1/playerobject.h"
-#include "mpris1/rootobject.h"
-#include "mpris1/tracklistobject.h"
#include "mpris2/root2object.h"
#include "mpris2/player2object.h"
#include "mpris.h"
@@ -29,15 +26,10 @@
MPRIS::MPRIS(QObject *parent) : QObject(parent)
{
QDBusConnection connection = QDBusConnection::sessionBus();
- //MPRISv1.0
- connection.registerObject("/TrackList", new TrackListObject(this), QDBusConnection::ExportAllContents);
- connection.registerObject("/Player", new PlayerObject(this), QDBusConnection::ExportAllContents);
- connection.registerObject("/", new RootObject(this), QDBusConnection::ExportAllContents);
//MPRISv2.0
new Root2Object(this);
new Player2Object(this);
connection.registerObject("/org/mpris/MediaPlayer2", this);
- connection.registerService("org.mpris.qmmp");
connection.registerService("org.mpris.MediaPlayer2.qmmp");
}