File indexing completed on 2024-04-21 15:02:15

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 #ifndef KMEDIAPLAYERADAPTOR_H_19781146507443
0011 #define KMEDIAPLAYERADAPTOR_H_19781146507443
0012 
0013 #include <QObject>
0014 #include <QDBusAbstractAdaptor>
0015 template<class T> class QList;
0016 template<class Key, class Value> class QMap;
0017 class QString;
0018 
0019 /*
0020  * Adaptor class for interface org.kde.KMediaPlayer
0021  */
0022 class KMediaPlayerAdaptor: public QDBusAbstractAdaptor
0023 {
0024     Q_OBJECT
0025     Q_CLASSINFO("D-Bus Interface", "org.kde.KMediaPlayer")
0026     Q_CLASSINFO("D-Bus Introspection", ""
0027                 "  <interface name=\"org.kde.KMediaPlayer\" >"
0028                 "    <method name=\"openUrl\" >"
0029                 "      <arg direction=\"in\" type=\"s\" name=\"file\" />"
0030                 "      <arg direction=\"out\" type=\"b\" />"
0031                 "    </method>"
0032                 "    <method name=\"pause\" />"
0033                 "    <method name=\"play\" />"
0034                 "    <method name=\"stop\" />"
0035                 "    <method name=\"seek\" >"
0036                 "      <arg direction=\"in\" type=\"x\" name=\"msec\" />"
0037                 "    </method>"
0038                 "    <property access=\"read\" type=\"b\" name=\"seekable\" >"
0039                 "      <annotation value=\"isSeekable\" name=\"com.trolltech.QtDBus.propertyGetter\" />"
0040                 "    </property>"
0041                 "    <property access=\"read\" type=\"x\" name=\"position\" />"
0042                 "    <property access=\"read\" type=\"b\" name=\"hasLength\" />"
0043                 "    <property access=\"read\" type=\"x\" name=\"length\" />"
0044                 "    <property access=\"readwrite\" type=\"b\" name=\"looping\" >"
0045                 "      <annotation value=\"isLooping\" name=\"com.trolltech.QtDBus.propertyGetter\" />"
0046                 "    </property>"
0047                 "    <property access=\"readwrite\" type=\"i\" name=\"state\" />"
0048                 "  </interface>"
0049                 "")
0050 public:
0051     KMediaPlayerAdaptor(QObject *parent);
0052     ~KMediaPlayerAdaptor() override;
0053 
0054 public: // PROPERTIES
0055     Q_PROPERTY(bool hasLength READ hasLength)
0056     bool hasLength() const;
0057 
0058     Q_PROPERTY(qlonglong length READ length)
0059     qlonglong length() const;
0060 
0061     Q_PROPERTY(bool looping READ isLooping WRITE setLooping)
0062     bool isLooping() const;
0063     void setLooping(bool value);
0064 
0065     Q_PROPERTY(qlonglong position READ position)
0066     qlonglong position() const;
0067 
0068     Q_PROPERTY(bool seekable READ isSeekable)
0069     bool isSeekable() const;
0070 
0071     Q_PROPERTY(int state READ state WRITE setState)
0072     int state() const;
0073     void setState(int value);
0074 
0075 public Q_SLOTS: // METHODS
0076     bool openUrl(const QString &file);
0077     void pause();
0078     void play();
0079     void seek(qlonglong msec);
0080     void stop();
0081 Q_SIGNALS: // SIGNALS
0082 };
0083 
0084 #endif