PageRenderTime 183ms CodeModel.GetById 101ms app.highlight 9ms RepoModel.GetById 71ms app.codeStats 0ms

/src/libtomahawk/infosystem/infoplugins/unix/mprispluginplayeradaptor.h

http://github.com/tomahawk-player/tomahawk
C++ Header | 140 lines | 106 code | 21 blank | 13 comment | 0 complexity | 568f75d85b47aafb16858b220b2c4d4f MD5 | raw file
  1/*
  2 * This file was generated by qdbusxml2cpp version 0.7
  3 * Command line was: qdbusxml2cpp -a mprispluginplayeradaptor -c MprisPluginPlayerAdaptor mprispluginplayeradaptor.xml
  4 *
  5 * qdbusxml2cpp is Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
  6 *
  7 * This is an auto-generated file.
  8 * This file may have been hand-edited. Look for HAND-EDIT comments
  9 * before re-generating it.
 10 */
 11
 12#ifndef MPRISPLUGINPLAYERADAPTOR_H_1313089554
 13#define MPRISPLUGINPLAYERADAPTOR_H_1313089554
 14
 15#include <QtCore/QObject>
 16#include <QtDBus/QtDBus>
 17
 18class QByteArray;
 19template<class T> class QList;
 20template<class Key, class Value> class QMap;
 21class QString;
 22class QStringList;
 23class QVariant;
 24
 25/*
 26 * Adaptor class for interface org.mpris.MediaPlayer2.Player
 27 */
 28class MprisPluginPlayerAdaptor: public QDBusAbstractAdaptor
 29{
 30    Q_OBJECT
 31    Q_CLASSINFO("D-Bus Interface", "org.mpris.MediaPlayer2.Player")
 32    Q_CLASSINFO("D-Bus Introspection", ""
 33"  <interface name=\"org.mpris.MediaPlayer2.Player\">\n"
 34"    <method name=\"Next\"/>\n"
 35"    <method name=\"Previous\"/>\n"
 36"    <method name=\"Pause\"/>\n"
 37"    <method name=\"PlayPause\"/>\n"
 38"    <method name=\"Stop\"/>\n"
 39"    <method name=\"Play\"/>\n"
 40"    <method name=\"Seek\">\n"
 41"      <arg direction=\"in\" type=\"x\" name=\"Offset\"/>\n"
 42"    </method>\n"
 43"    <method name=\"SetPosition\">\n"
 44"      <arg direction=\"in\" type=\"o\" name=\"TrackId\"/>\n"
 45"      <arg direction=\"in\" type=\"x\" name=\"Position\"/>\n"
 46"    </method>\n"
 47"    <method name=\"OpenUri\">\n"
 48"      <arg direction=\"in\" type=\"s\" name=\"Uri\"/>\n"
 49"    </method>\n"
 50"    <signal name=\"Seeked\">\n"
 51"      <arg direction=\"out\" type=\"x\" name=\"Position\"/>\n"
 52"    </signal>\n"
 53"    <property access=\"read\" type=\"s\" name=\"PlaybackStatus\"/>\n"
 54"    <property access=\"readwrite\" type=\"s\" name=\"LoopStatus\"/>\n"
 55"    <property access=\"readwrite\" type=\"d\" name=\"Rate\"/>\n"
 56"    <property access=\"readwrite\" type=\"b\" name=\"Shuffle\"/>\n"
 57"    <property access=\"read\" type=\"a{sv}\" name=\"Metadata\">\n"
 58"      <annotation value=\"QVariantMap\" name=\"com.trolltech.QtDBus.QtTypeName\"/>\n"
 59"    </property>\n"
 60"    <property access=\"readwrite\" type=\"d\" name=\"Volume\"/>\n"
 61"    <property access=\"read\" type=\"x\" name=\"Position\"/>\n"
 62"    <property access=\"read\" type=\"d\" name=\"MinimumRate\"/>\n"
 63"    <property access=\"read\" type=\"d\" name=\"MaximumRate\"/>\n"
 64"    <property access=\"read\" type=\"b\" name=\"CanGoNext\"/>\n"
 65"    <property access=\"read\" type=\"b\" name=\"CanGoPrevious\"/>\n"
 66"    <property access=\"read\" type=\"b\" name=\"CanPlay\"/>\n"
 67"    <property access=\"read\" type=\"b\" name=\"CanPause\"/>\n"
 68"    <property access=\"read\" type=\"b\" name=\"CanSeek\"/>\n"
 69"    <property access=\"read\" type=\"b\" name=\"CanControl\"/>\n"
 70"  </interface>\n"
 71        "")
 72public:
 73    MprisPluginPlayerAdaptor(QObject *parent);
 74    virtual ~MprisPluginPlayerAdaptor();
 75
 76public: // PROPERTIES
 77    Q_PROPERTY(bool CanControl READ canControl)
 78    bool canControl() const;
 79
 80    Q_PROPERTY(bool CanGoNext READ canGoNext)
 81    bool canGoNext() const;
 82
 83    Q_PROPERTY(bool CanGoPrevious READ canGoPrevious)
 84    bool canGoPrevious() const;
 85
 86    Q_PROPERTY(bool CanPause READ canPause)
 87    bool canPause() const;
 88
 89    Q_PROPERTY(bool CanPlay READ canPlay)
 90    bool canPlay() const;
 91
 92    Q_PROPERTY(bool CanSeek READ canSeek)
 93    bool canSeek() const;
 94
 95    Q_PROPERTY(QString LoopStatus READ loopStatus WRITE setLoopStatus)
 96    QString loopStatus() const;
 97    void setLoopStatus(const QString &value);
 98
 99    Q_PROPERTY(double MaximumRate READ maximumRate)
100    double maximumRate() const;
101
102    Q_PROPERTY(QVariantMap Metadata READ metadata)
103    QVariantMap metadata() const;
104
105    Q_PROPERTY(double MinimumRate READ minimumRate)
106    double minimumRate() const;
107
108    Q_PROPERTY(QString PlaybackStatus READ playbackStatus)
109    QString playbackStatus() const;
110
111    Q_PROPERTY(qlonglong Position READ position)
112    qlonglong position() const;
113
114    Q_PROPERTY(double Rate READ rate WRITE setRate)
115    double rate() const;
116    void setRate(double value);
117
118    Q_PROPERTY(bool Shuffle READ shuffle WRITE setShuffle)
119    bool shuffle() const;
120    void setShuffle(bool value);
121
122    Q_PROPERTY(double Volume READ volume WRITE setVolume)
123    double volume() const;
124    void setVolume(double value);
125
126public Q_SLOTS: // METHODS
127    void Next();
128    void OpenUri(const QString &Uri);
129    void Pause();
130    void Play();
131    void PlayPause();
132    void Previous();
133    void Seek(qlonglong Offset);
134    void SetPosition(const QDBusObjectPath &TrackId, qlonglong Position);
135    void Stop();
136Q_SIGNALS: // SIGNALS
137    void Seeked(qlonglong Position);
138};
139
140#endif