2 * SomePlayer - An alternate music player for Maemo 5
3 * Copyright (C) 2010 Nikolay (somebody) Tischenko <niktischenko@gmail.com>
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 #include <QtCore/QObject>
24 #include <QtDBus/QtDBus>
26 template<class T> class QList;
27 template<class Key, class Value> class QMap;
33 * Adaptor class for interface ru.somebody.someplayer
35 class DBusAdaptop: public QDBusAbstractAdaptor
38 Q_CLASSINFO("D-Bus Interface", "ru.somebody.someplayer")
39 Q_CLASSINFO("D-Bus Introspection", ""
40 " <interface name=\"ru.somebody.someplayer\">\n"
41 " <method name=\"prev\">\n"
42 " <annotation value=\"true\" name=\"org.freedesktop.DBus.Method.NoReply\"/>\n"
44 " <method name=\"next\">\n"
45 " <annotation value=\"true\" name=\"org.freedesktop.DBus.Method.NoReply\"/>\n"
47 " <method name=\"toggle\">\n"
48 " <annotation value=\"true\" name=\"org.freedesktop.DBus.Method.NoReply\"/>\n"
50 " <method name=\"stop\">\n"
51 " <annotation value=\"true\" name=\"org.freedesktop.DBus.Method.NoReply\"/>\n"
53 " <method name=\"artist\">\n"
54 " <arg direction=\"out\" type=\"s\"/>\n"
56 " <method name=\"album\">\n"
57 " <arg direction=\"out\" type=\"s\"/>\n"
59 " <method name=\"title\">\n"
60 " <arg direction=\"out\" type=\"s\"/>\n"
65 DBusAdaptop(QObject *parent);
66 virtual ~DBusAdaptop();
69 public Q_SLOTS: // METHODS
72 Q_NOREPLY void next();
73 Q_NOREPLY void prev();
74 Q_NOREPLY void stop();
76 Q_NOREPLY void toggle();