diff options
Diffstat (limited to 'src/plugins/General/mpris/mpris.cpp')
| -rw-r--r-- | src/plugins/General/mpris/mpris.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/General/mpris/mpris.cpp b/src/plugins/General/mpris/mpris.cpp index 6e53d11d9..61caaae64 100644 --- a/src/plugins/General/mpris/mpris.cpp +++ b/src/plugins/General/mpris/mpris.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2010 by Ilya Kotov * + * Copyright (C) 2008-2011 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -34,10 +34,9 @@ MPRIS::MPRIS(QObject *parent) : General(parent) connection.registerObject("/Player", new PlayerObject(this), QDBusConnection::ExportAllContents); connection.registerObject("/", new RootObject(this), QDBusConnection::ExportAllContents); //MPRISv2.0 - connection.registerObject("/org/mpris/MediaPlayer2", new Root2Object(this), - QDBusConnection::ExportAllContents); - connection.registerObject("/org/mpris/MediaPlayer2/Player", new Player2Object(this), - QDBusConnection::ExportAllContents); + new Root2Object(this); + new Player2Object(this); + connection.registerObject("/org/mpris/MediaPlayer2", this); connection.registerService("org.mpris.qmmp"); connection.registerService("org.mpris.MediaPlayer2.qmmp"); } |
