Music Hub ..
A session-wide music playback service
Loading...
Searching...
No Matches
lomiri::MediaHub::PlayerPrivate Class Reference
Collaboration diagram for lomiri::MediaHub::PlayerPrivate:

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())
VideoSinkcreateGLTextureVideoSink (uint32_t textureId)

Detailed Description

Definition at line 82 of file player.cpp.

Constructor & Destructor Documentation

◆ PlayerPrivate()

PlayerPrivate::PlayerPrivate ( Player * q)

◆ ~PlayerPrivate()

PlayerPrivate::~PlayerPrivate ( )

Definition at line 273 of file player.cpp.

Member Function Documentation

◆ blockingCall()

void PlayerPrivate::blockingCall ( const QString & method,
const QVariant & arg1 = QVariant(),
const QVariant & arg2 = QVariant() )

Definition at line 479 of file player.cpp.

References call(), lomiri::MediaHub::errorFromDBus(), lomiri::MediaHub::Player::errorOccurred(), and lomiri::MediaHub::DBusUtils::waitForFinished().

Here is the call graph for this function:

◆ call()

void PlayerPrivate::call ( const QString & method,
const QVariant & arg1 = QVariant(),
const QVariant & arg2 = QVariant() )

Definition at line 447 of file player.cpp.

References call(), and watchErrors().

Referenced by blockingCall(), call(), onSuccessfulCompletion(), setProperty(), and watchErrors().

Here is the call graph for this function:

◆ createGLTextureVideoSink()

VideoSink & PlayerPrivate::createGLTextureVideoSink ( uint32_t textureId)

Definition at line 490 of file player.cpp.

References lomiri::MediaHub::errorFromDBus(), and lomiri::MediaHub::Player::errorOccurred().

Here is the call graph for this function:

◆ getProperty()

QVariant PlayerPrivate::getProperty ( const QString & name) const

Definition at line 415 of file player.cpp.

References FDO_PROPERTIES_INTERFACE, and MPRIS_PLAYER_INTERFACE.

◆ onError()

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 PlayerPrivate().

Here is the call graph for this function:

◆ onSuccessfulCompletion()

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().

Here is the call graph for this function:

◆ onVideoDimensionChanged()

void PlayerPrivate::onVideoDimensionChanged ( quint32 height,
quint32 width )

Definition at line 347 of file player.cpp.

References lomiri::MediaHub::Player::videoDimensionChanged().

Referenced by PlayerPrivate().

Here is the call graph for this function:

◆ setProperty()

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().

Here is the call graph for this function:

◆ setTrackList()

void PlayerPrivate::setTrackList ( TrackList * trackList)

Definition at line 436 of file player.cpp.

◆ updateProperties()

◆ watchErrors()

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().

Here is the call graph for this function:

The documentation for this class was generated from the following file:
  • /build/media-hub-4.7~20260316060616.27~fbd9644+ubports26.04.1/src/lib/MediaHub/player.cpp