• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KMediaPlayer

  • sources
  • kde-4.12
  • kdelibs
  • interfaces
  • kmediaplayer
kmediaplayeradaptor.cpp
Go to the documentation of this file.
1 /*
2  * This file was generated by dbusidl2cpp version 0.4
3  * when processing input file org.kde.KMediaPlayer.xml
4  *
5  * dbusidl2cpp is Copyright (C) 2006 Trolltech AS. All rights reserved.
6  *
7  * This is an auto-generated file.
8  */
9 
10 #include "kmediaplayeradaptor_p.h"
11 #include <QtCore/QArgument>
12 #include <QtCore/QByteRef>
13 #include <QtCore/QList>
14 #include <QtCore/QMap>
15 #include <QtCore/QString>
16 #include <QtCore/QStringList>
17 #include <QtCore/QVariant>
18 
19 /*
20  * Implementation of adaptor class KMediaPlayerAdaptor
21  */
22 
23 KMediaPlayerAdaptor::KMediaPlayerAdaptor(QObject *parent)
24  : QDBusAbstractAdaptor(parent)
25 {
26  // constructor
27  setAutoRelaySignals(true);
28 }
29 
30 KMediaPlayerAdaptor::~KMediaPlayerAdaptor()
31 {
32  // destructor
33 }
34 
35 bool KMediaPlayerAdaptor::hasLength() const
36 {
37  // get the value of property hasLength
38  return qvariant_cast< bool >(parent()->property("hasLength"));
39 }
40 
41 qlonglong KMediaPlayerAdaptor::length() const
42 {
43  // get the value of property length
44  return qvariant_cast< qlonglong >(parent()->property("length"));
45 }
46 
47 bool KMediaPlayerAdaptor::isLooping() const
48 {
49  // get the value of property looping
50  return qvariant_cast< bool >(parent()->property("looping"));
51 }
52 
53 void KMediaPlayerAdaptor::setLooping(bool value)
54 {
55  // set the value of property looping
56  parent()->setProperty("looping", value);
57 }
58 
59 qlonglong KMediaPlayerAdaptor::position() const
60 {
61  // get the value of property position
62  return qvariant_cast< qlonglong >(parent()->property("position"));
63 }
64 
65 bool KMediaPlayerAdaptor::isSeekable() const
66 {
67  // get the value of property seekable
68  return qvariant_cast< bool >(parent()->property("seekable"));
69 }
70 
71 int KMediaPlayerAdaptor::state() const
72 {
73  // get the value of property state
74  return qvariant_cast< int >(parent()->property("state"));
75 }
76 
77 void KMediaPlayerAdaptor::setState(int value)
78 {
79  // set the value of property state
80  parent()->setProperty("state", value);
81 }
82 
83 bool KMediaPlayerAdaptor::openUrl(const QString &file)
84 {
85  // handle method call org.kde.KMediaPlayer.openUrl
86  bool out0;
87  QMetaObject::invokeMethod(parent(), "openUrl", Q_RETURN_ARG(bool, out0), Q_ARG(QString, file));
88 
89  // Alternative:
90  //out0 = static_cast<YourObjectType *>(parent())->openUrl(file);
91  return out0;
92 }
93 
94 void KMediaPlayerAdaptor::pause()
95 {
96  // handle method call org.kde.KMediaPlayer.pause
97  QMetaObject::invokeMethod(parent(), "pause");
98 
99  // Alternative:
100  //static_cast<YourObjectType *>(parent())->pause();
101 }
102 
103 void KMediaPlayerAdaptor::play()
104 {
105  // handle method call org.kde.KMediaPlayer.play
106  QMetaObject::invokeMethod(parent(), "play");
107 
108  // Alternative:
109  //static_cast<YourObjectType *>(parent())->play();
110 }
111 
112 void KMediaPlayerAdaptor::seek(qlonglong msec)
113 {
114  // handle method call org.kde.KMediaPlayer.seek
115  QMetaObject::invokeMethod(parent(), "seek", Q_ARG(qlonglong, msec));
116 
117  // Alternative:
118  //static_cast<YourObjectType *>(parent())->seek(msec);
119 }
120 
121 void KMediaPlayerAdaptor::stop()
122 {
123  // handle method call org.kde.KMediaPlayer.stop
124  QMetaObject::invokeMethod(parent(), "stop");
125 
126  // Alternative:
127  //static_cast<YourObjectType *>(parent())->stop();
128 }
129 
130 
131 #include "kmediaplayeradaptor_p.moc"
KMediaPlayerAdaptor::isSeekable
bool isSeekable() const
Definition: kmediaplayeradaptor.cpp:65
KMediaPlayerAdaptor::isLooping
bool isLooping() const
Definition: kmediaplayeradaptor.cpp:47
QDBusAbstractAdaptor
KMediaPlayerAdaptor::seek
void seek(qlonglong msec)
Definition: kmediaplayeradaptor.cpp:112
QString
QObject
KMediaPlayerAdaptor::pause
void pause()
Definition: kmediaplayeradaptor.cpp:94
KMediaPlayerAdaptor::setLooping
void setLooping(bool value)
Definition: kmediaplayeradaptor.cpp:53
KMediaPlayerAdaptor::openUrl
bool openUrl(const QString &file)
Definition: kmediaplayeradaptor.cpp:83
KMediaPlayerAdaptor::hasLength
bool hasLength() const
kmediaplayeradaptor_p.h
KMediaPlayerAdaptor::play
void play()
Definition: kmediaplayeradaptor.cpp:103
KMediaPlayerAdaptor::position
qlonglong position() const
KMediaPlayerAdaptor::stop
void stop()
Definition: kmediaplayeradaptor.cpp:121
KMediaPlayerAdaptor::state
int state() const
KMediaPlayerAdaptor::setState
void setState(int value)
Definition: kmediaplayeradaptor.cpp:77
KMediaPlayerAdaptor::length
qlonglong length() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:52:16 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KMediaPlayer

Skip menu "KMediaPlayer"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal