/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. #include "mprispluginrootadaptor.h"
  11. #include <QtCore/QMetaObject>
  12. #include <QtCore/QByteArray>
  13. #include <QtCore/QList>
  14. #include <QtCore/QMap>
  15. #include <QtCore/QString>
  16. #include <QtCore/QStringList>
  17. #include <QtCore/QVariant>
  18. /*
  19. * Implementation of adaptor class MprisPluginRootAdaptor
  20. */
  21. MprisPluginRootAdaptor::MprisPluginRootAdaptor(QObject *parent)
  22. : QDBusAbstractAdaptor(parent)
  23. {
  24. // constructor
  25. setAutoRelaySignals(true);
  26. }
  27. MprisPluginRootAdaptor::~MprisPluginRootAdaptor()
  28. {
  29. // destructor
  30. }
  31. bool MprisPluginRootAdaptor::canQuit() const
  32. {
  33. // get the value of property CanQuit
  34. return qvariant_cast< bool >(parent()->property("CanQuit"));
  35. }
  36. bool MprisPluginRootAdaptor::canRaise() const
  37. {
  38. qDebug() << Q_FUNC_INFO;
  39. // get the value of property CanRaise
  40. bool ret = qvariant_cast< bool >(parent()->property("CanRaise"));
  41. qDebug() << "ret: " << ret;
  42. return ret;
  43. }
  44. QString MprisPluginRootAdaptor::desktopEntry() const
  45. {
  46. // get the value of property DesktopEntry
  47. return qvariant_cast< QString >(parent()->property("DesktopEntry"));
  48. }
  49. bool MprisPluginRootAdaptor::hasTrackList() const
  50. {
  51. // get the value of property HasTrackList
  52. return qvariant_cast< bool >(parent()->property("HasTrackList"));
  53. }
  54. QString MprisPluginRootAdaptor::identity() const
  55. {
  56. // get the value of property Identity
  57. return qvariant_cast< QString >(parent()->property("Identity"));
  58. }
  59. QStringList MprisPluginRootAdaptor::supportedMimeTypes() const
  60. {
  61. // get the value of property SupportedMimeTypes
  62. return qvariant_cast< QStringList >(parent()->property("SupportedMimeTypes"));
  63. }
  64. QStringList MprisPluginRootAdaptor::supportedUriSchemes() const
  65. {
  66. // get the value of property SupportedUriSchemes
  67. return qvariant_cast< QStringList >(parent()->property("SupportedUriSchemes"));
  68. }
  69. void MprisPluginRootAdaptor::Quit()
  70. {
  71. // handle method call org.mpris.MediaPlayer2.Quit
  72. QMetaObject::invokeMethod(parent(), "Quit");
  73. }
  74. void MprisPluginRootAdaptor::Raise()
  75. {
  76. // handle method call org.mpris.MediaPlayer2.Raise
  77. QMetaObject::invokeMethod(parent(), "Raise");
  78. }