diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2011-09-13 16:38:23 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2011-09-13 16:38:23 +0000 |
| commit | 9408303fad1efd3b889f7677dd255b9437276cfc (patch) | |
| tree | 0657a5fd272ab0eb8469626d059e9d1f9f560238 /src/plugins/General/mpris | |
| parent | d0e1f9e4e1e44dbe3372a6cdb621bf0ee9baa668 (diff) | |
| download | qmmp-9408303fad1efd3b889f7677dd255b9437276cfc.tar.gz qmmp-9408303fad1efd3b889f7677dd255b9437276cfc.tar.bz2 qmmp-9408303fad1efd3b889f7677dd255b9437276cfc.zip | |
fixed general plugin api
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2351 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/mpris')
| -rw-r--r-- | src/plugins/General/mpris/mpris.cpp | 2 | ||||
| -rw-r--r-- | src/plugins/General/mpris/mpris.h | 6 | ||||
| -rw-r--r-- | src/plugins/General/mpris/mprisfactory.cpp | 4 | ||||
| -rw-r--r-- | src/plugins/General/mpris/mprisfactory.h | 6 |
4 files changed, 9 insertions, 9 deletions
diff --git a/src/plugins/General/mpris/mpris.cpp b/src/plugins/General/mpris/mpris.cpp index 61caaae64..c45bb44c5 100644 --- a/src/plugins/General/mpris/mpris.cpp +++ b/src/plugins/General/mpris/mpris.cpp @@ -26,7 +26,7 @@ #include "mpris2/player2object.h" #include "mpris.h" -MPRIS::MPRIS(QObject *parent) : General(parent) +MPRIS::MPRIS(QObject *parent) : QObject(parent) { QDBusConnection connection = QDBusConnection::sessionBus(); //MPRISv1.0 diff --git a/src/plugins/General/mpris/mpris.h b/src/plugins/General/mpris/mpris.h index 370809da7..1cab01efe 100644 --- a/src/plugins/General/mpris/mpris.h +++ b/src/plugins/General/mpris/mpris.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008 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 * @@ -26,10 +26,10 @@ class DBUSAdaptor; /** - @author Ilya Kotov <forkotov02@hotmail.ru> + @author Ilya Kotov <forkotov02@hotmail.ru> */ -class MPRIS : public General +class MPRIS : public QObject { Q_OBJECT public: diff --git a/src/plugins/General/mpris/mprisfactory.cpp b/src/plugins/General/mpris/mprisfactory.cpp index 079f3b674..a13f62d23 100644 --- a/src/plugins/General/mpris/mprisfactory.cpp +++ b/src/plugins/General/mpris/mprisfactory.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008 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,7 +34,7 @@ const GeneralProperties MPRISFactory::properties() const return properties; } -General *MPRISFactory::create(QObject *parent) +QObject *MPRISFactory::create(QObject *parent) { return new MPRIS(parent); } diff --git a/src/plugins/General/mpris/mprisfactory.h b/src/plugins/General/mpris/mprisfactory.h index 27708dd6e..38d1b66ed 100644 --- a/src/plugins/General/mpris/mprisfactory.h +++ b/src/plugins/General/mpris/mprisfactory.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008 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 * @@ -32,10 +32,10 @@ class MPRISFactory : public QObject, public GeneralFactory { Q_OBJECT -Q_INTERFACES(GeneralFactory); +Q_INTERFACES(GeneralFactory) public: const GeneralProperties properties() const; - General *create(QObject *parent); + QObject *create(QObject *parent); QDialog *createConfigDialog(QWidget *parent); void showAbout(QWidget *parent); QTranslator *createTranslator(QObject *parent); |
