Public Member Functions | |
PlayerPrivate (Player *q) | |
~PlayerPrivate () | |
void | updateProperties (const QVariantMap &properties) |
void | onVideoDimensionChanged (quint32 height, quint32 width) |
void | onError (quint16 dbusCode) |
void | watchErrors (const QDBusPendingCall &call) |
void | onSuccessfulCompletion (const QDBusPendingCall &call, MethodCb callback) |
void | setProperty (const QString &name, const QVariant &value, VoidMethodCb callback=[](){}) |
QVariant | getProperty (const QString &name) const |
void | setTrackList (TrackList *trackList) |
void | call (const QString &method, const QVariant &arg1=QVariant(), const QVariant &arg2=QVariant()) |
void | blockingCall (const QString &method, const QVariant &arg1=QVariant(), const QVariant &arg2=QVariant()) |
VideoSink & | createGLTextureVideoSink (uint32_t textureId) |
Definition at line 82 of file player.cpp.
PlayerPrivate::PlayerPrivate | ( | Player * | q | ) |
Definition at line 198 of file player.cpp.
References DBusService::createSession(), FDO_PROPERTIES_INTERFACE, onError(), onVideoDimensionChanged(), lomiri::MediaHub::Player::serviceDisconnected(), and lomiri::MediaHub::Player::serviceReconnected().
PlayerPrivate::~PlayerPrivate | ( | ) |
Definition at line 273 of file player.cpp.
References DBusService::destroySession().
void PlayerPrivate::blockingCall | ( | const QString & | method, |
const QVariant & | arg1 = QVariant() , |
||
const QVariant & | arg2 = QVariant() |
||
) |
Definition at line 454 of file player.cpp.
References call(), lomiri::MediaHub::errorFromDBus(), lomiri::MediaHub::Player::errorOccurred(), and lomiri::MediaHub::DBusUtils::waitForFinished().
void PlayerPrivate::call | ( | const QString & | method, |
const QVariant & | arg1 = QVariant() , |
||
const QVariant & | arg2 = QVariant() |
||
) |
Definition at line 447 of file player.cpp.
References watchErrors().
Referenced by blockingCall(), onSuccessfulCompletion(), setProperty(), and watchErrors().
VideoSink & PlayerPrivate::createGLTextureVideoSink | ( | uint32_t | textureId | ) |
Definition at line 465 of file player.cpp.
References lomiri::MediaHub::errorFromDBus(), and lomiri::MediaHub::Player::errorOccurred().
QVariant PlayerPrivate::getProperty | ( | const QString & | name | ) | const |
Definition at line 415 of file player.cpp.
References FDO_PROPERTIES_INTERFACE, and MPRIS_PLAYER_INTERFACE.
void PlayerPrivate::onError | ( | quint16 | dbusCode | ) |
Definition at line 353 of file player.cpp.
References lomiri::MediaHub::errorFromApiCode(), lomiri::MediaHub::Player::errorOccurred(), and lomiri::MediaHub::Error::isError().
Referenced by DBusPlayer::onError(), and PlayerPrivate().
void PlayerPrivate::onSuccessfulCompletion | ( | const QDBusPendingCall & | call, |
MethodCb | callback | ||
) |
Definition at line 377 of file player.cpp.
References call(), lomiri::MediaHub::errorFromDBus(), and lomiri::MediaHub::Player::errorOccurred().
Referenced by setProperty().
void PlayerPrivate::onVideoDimensionChanged | ( | quint32 | height, |
quint32 | width | ||
) |
Definition at line 347 of file player.cpp.
References lomiri::MediaHub::Player::videoDimensionChanged().
Referenced by DBusPlayer::onVideoDimensionChanged(), and PlayerPrivate().
void PlayerPrivate::setProperty | ( | const QString & | name, |
const QVariant & | value, | ||
VoidMethodCb | callback = [](){} |
||
) |
Definition at line 395 of file player.cpp.
References call(), FDO_PROPERTIES_INTERFACE, MPRIS_PLAYER_INTERFACE, and onSuccessfulCompletion().
void PlayerPrivate::setTrackList | ( | TrackList * | trackList | ) |
Definition at line 436 of file player.cpp.
void PlayerPrivate::updateProperties | ( | const QVariantMap & | properties | ) |
Definition at line 278 of file player.cpp.
References lomiri::MediaHub::Player::controlsChanged(), lomiri::MediaHub::Player::metaDataForCurrentTrackChanged(), lomiri::MediaHub::Player::orientationChanged(), lomiri::MediaHub::Player::playbackStatusChanged(), and lomiri::MediaHub::Player::sourceTypeChanged().
Referenced by DBusPlayer::onPropertiesChanged().
void PlayerPrivate::watchErrors | ( | const QDBusPendingCall & | call | ) |
Definition at line 362 of file player.cpp.
References call(), lomiri::MediaHub::errorFromDBus(), and lomiri::MediaHub::Player::errorOccurred().
Referenced by call().