PageRenderTime 92ms CodeModel.GetById 40ms app.highlight 7ms RepoModel.GetById 43ms app.codeStats 0ms

/src/libtomahawk/infosystem/infoplugins/unix/mprispluginrootadaptor.cpp

http://github.com/tomahawk-player/tomahawk
C++ | 92 lines | 55 code | 14 blank | 23 comment | 0 complexity | 517c454e213b6d33482eb67f54775359 MD5 | raw file
 1/*
 2 * This file was generated by qdbusxml2cpp version 0.7
 3 * Command line was: qdbusxml2cpp -a mprispluginrootadaptor -c MprisPluginRootAdaptor mprispluginrootadaptor.xml
 4 *
 5 * qdbusxml2cpp is Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
 6 *
 7 * This is an auto-generated file.
 8 * Do not edit! All changes made to it will be lost.
 9 */
10
11#include "mprispluginrootadaptor.h"
12#include <QtCore/QMetaObject>
13#include <QtCore/QByteArray>
14#include <QtCore/QList>
15#include <QtCore/QMap>
16#include <QtCore/QString>
17#include <QtCore/QStringList>
18#include <QtCore/QVariant>
19
20/*
21 * Implementation of adaptor class MprisPluginRootAdaptor
22 */
23
24MprisPluginRootAdaptor::MprisPluginRootAdaptor(QObject *parent)
25    : QDBusAbstractAdaptor(parent)
26{
27    // constructor
28    setAutoRelaySignals(true);
29}
30
31MprisPluginRootAdaptor::~MprisPluginRootAdaptor()
32{
33    // destructor
34}
35
36bool MprisPluginRootAdaptor::canQuit() const
37{
38    // get the value of property CanQuit
39    return qvariant_cast< bool >(parent()->property("CanQuit"));
40}
41
42bool MprisPluginRootAdaptor::canRaise() const
43{
44    qDebug() << Q_FUNC_INFO;
45    // get the value of property CanRaise
46    bool ret = qvariant_cast< bool >(parent()->property("CanRaise"));
47    qDebug() << "ret: " << ret;
48    return ret;
49}
50
51QString MprisPluginRootAdaptor::desktopEntry() const
52{
53    // get the value of property DesktopEntry
54    return qvariant_cast< QString >(parent()->property("DesktopEntry"));
55}
56
57bool MprisPluginRootAdaptor::hasTrackList() const
58{
59    // get the value of property HasTrackList
60    return qvariant_cast< bool >(parent()->property("HasTrackList"));
61}
62
63QString MprisPluginRootAdaptor::identity() const
64{
65    // get the value of property Identity
66    return qvariant_cast< QString >(parent()->property("Identity"));
67}
68
69QStringList MprisPluginRootAdaptor::supportedMimeTypes() const
70{
71    // get the value of property SupportedMimeTypes
72    return qvariant_cast< QStringList >(parent()->property("SupportedMimeTypes"));
73}
74
75QStringList MprisPluginRootAdaptor::supportedUriSchemes() const
76{
77    // get the value of property SupportedUriSchemes
78    return qvariant_cast< QStringList >(parent()->property("SupportedUriSchemes"));
79}
80
81void MprisPluginRootAdaptor::Quit()
82{
83    // handle method call org.mpris.MediaPlayer2.Quit
84    QMetaObject::invokeMethod(parent(), "Quit");
85}
86
87void MprisPluginRootAdaptor::Raise()
88{
89    // handle method call org.mpris.MediaPlayer2.Raise
90    QMetaObject::invokeMethod(parent(), "Raise");
91}
92