Music Hub  ..
A session-wide music playback service
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.

References DBusService::destroySession().

+ Here is the call graph for this function:

Member Function Documentation

◆ blockingCall()

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

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

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

+ Here is the call graph for this function:

◆ createGLTextureVideoSink()

VideoSink & PlayerPrivate::createGLTextureVideoSink ( uint32_t  textureId)

Definition at line 465 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 DBusPlayer::onError(), and 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 
)

◆ 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: