File indexing completed on 2024-03-24 15:36:35

0001 /*
0002  * This file was generated by dbusidl2cpp version 0.4
0003  * when processing input file org.kde.KMediaPlayer.xml
0004  *
0005  * dbusidl2cpp is Copyright (C) 2006 Trolltech AS. All rights reserved.
0006  *
0007  * This is an auto-generated file.
0008  */
0009 
0010 #include "kmediaplayeradaptor_p.h"
0011 #include <QString>
0012 
0013 /*
0014  * Implementation of adaptor class KMediaPlayerAdaptor
0015  */
0016 
0017 KMediaPlayerAdaptor::KMediaPlayerAdaptor(QObject *parent)
0018     : QDBusAbstractAdaptor(parent)
0019 {
0020     // constructor
0021     setAutoRelaySignals(true);
0022 }
0023 
0024 KMediaPlayerAdaptor::~KMediaPlayerAdaptor()
0025 {
0026     // destructor
0027 }
0028 
0029 bool KMediaPlayerAdaptor::hasLength() const
0030 {
0031     // get the value of property hasLength
0032     return qvariant_cast< bool >(parent()->property("hasLength"));
0033 }
0034 
0035 qlonglong KMediaPlayerAdaptor::length() const
0036 {
0037     // get the value of property length
0038     return qvariant_cast< qlonglong >(parent()->property("length"));
0039 }
0040 
0041 bool KMediaPlayerAdaptor::isLooping() const
0042 {
0043     // get the value of property looping
0044     return qvariant_cast< bool >(parent()->property("looping"));
0045 }
0046 
0047 void KMediaPlayerAdaptor::setLooping(bool value)
0048 {
0049     // set the value of property looping
0050     parent()->setProperty("looping", value);
0051 }
0052 
0053 qlonglong KMediaPlayerAdaptor::position() const
0054 {
0055     // get the value of property position
0056     return qvariant_cast< qlonglong >(parent()->property("position"));
0057 }
0058 
0059 bool KMediaPlayerAdaptor::isSeekable() const
0060 {
0061     // get the value of property seekable
0062     return qvariant_cast< bool >(parent()->property("seekable"));
0063 }
0064 
0065 int KMediaPlayerAdaptor::state() const
0066 {
0067     // get the value of property state
0068     return qvariant_cast< int >(parent()->property("state"));
0069 }
0070 
0071 void KMediaPlayerAdaptor::setState(int value)
0072 {
0073     // set the value of property state
0074     parent()->setProperty("state", value);
0075 }
0076 
0077 bool KMediaPlayerAdaptor::openUrl(const QString &file)
0078 {
0079     // handle method call org.kde.KMediaPlayer.openUrl
0080     bool out0;
0081     QMetaObject::invokeMethod(parent(), "openUrl", Q_RETURN_ARG(bool, out0), Q_ARG(QString, file));
0082 
0083     // Alternative:
0084     //out0 = static_cast<YourObjectType *>(parent())->openUrl(file);
0085     return out0;
0086 }
0087 
0088 void KMediaPlayerAdaptor::pause()
0089 {
0090     // handle method call org.kde.KMediaPlayer.pause
0091     QMetaObject::invokeMethod(parent(), "pause");
0092 
0093     // Alternative:
0094     //static_cast<YourObjectType *>(parent())->pause();
0095 }
0096 
0097 void KMediaPlayerAdaptor::play()
0098 {
0099     // handle method call org.kde.KMediaPlayer.play
0100     QMetaObject::invokeMethod(parent(), "play");
0101 
0102     // Alternative:
0103     //static_cast<YourObjectType *>(parent())->play();
0104 }
0105 
0106 void KMediaPlayerAdaptor::seek(qlonglong msec)
0107 {
0108     // handle method call org.kde.KMediaPlayer.seek
0109     QMetaObject::invokeMethod(parent(), "seek", Q_ARG(qlonglong, msec));
0110 
0111     // Alternative:
0112     //static_cast<YourObjectType *>(parent())->seek(msec);
0113 }
0114 
0115 void KMediaPlayerAdaptor::stop()
0116 {
0117     // handle method call org.kde.KMediaPlayer.stop
0118     QMetaObject::invokeMethod(parent(), "stop");
0119 
0120     // Alternative:
0121     //static_cast<YourObjectType *>(parent())->stop();
0122 }
0123 
0124 #include "moc_kmediaplayeradaptor_p.cpp"