KMediaPlayer
Go to the documentation of this file.
11#include <QtCore/QArgument>
12#include <QtCore/QByteRef>
13#include <QtCore/QList>
15#include <QtCore/QString>
16#include <QtCore/QStringList>
17#include <QtCore/QVariant>
23KMediaPlayerAdaptor::KMediaPlayerAdaptor(
QObject *parent)
27 setAutoRelaySignals(
true);
30KMediaPlayerAdaptor::~KMediaPlayerAdaptor()
38 return qvariant_cast< bool >(parent()->property(
"hasLength"));
44 return qvariant_cast< qlonglong >(parent()->property(
"length"));
50 return qvariant_cast< bool >(parent()->property(
"looping"));
56 parent()->setProperty(
"looping", value);
62 return qvariant_cast< qlonglong >(parent()->property(
"position"));
68 return qvariant_cast< bool >(parent()->property(
"seekable"));
74 return qvariant_cast< int >(parent()->property(
"state"));
80 parent()->setProperty(
"state", value);
87 QMetaObject::invokeMethod(parent(),
"openUrl", Q_RETURN_ARG(
bool, out0), Q_ARG(QString, file));
97 QMetaObject::invokeMethod(parent(),
"pause");
106 QMetaObject::invokeMethod(parent(),
"play");
115 QMetaObject::invokeMethod(parent(),
"seek", Q_ARG(qlonglong, msec));
124 QMetaObject::invokeMethod(parent(),
"stop");
131#include "kmediaplayeradaptor_p.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by
doxygen 1.9.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.