Music Hub  ..
A session-wide music playback service
lomiri::MediaHub::TrackListPrivate Class Reference

#include <track_list_p.h>

+ Collaboration diagram for lomiri::MediaHub::TrackListPrivate:

Public Member Functions

 TrackListPrivate (TrackList *q)
 
void createProxy (const QDBusConnection &conn, const QString &objectPath)
 
bool ensureProxy () const
 
QString remotePos (int index) const
 
void initialize (const QVariantMap &properties)
 
void addTrackWithUriAt (const QUrl &uri, int position, bool makeCurrent)
 
void addTracksWithUriAt (const QVector< QUrl > &uris, int position)
 
void moveTrack (int index, int to)
 
void removeTrack (int index)
 
void goTo (int index)
 
void reset ()
 
void onTrackAdded (const QString &id)
 
void onTracksAdded (const QStringList &ids)
 
void onTrackMoved (const QString &id, const QString &to)
 
void onTrackRemoved (const QString &id)
 
void onTrackListReset ()
 
void onTrackChanged (const QString &id)
 

Detailed Description

Definition at line 32 of file track_list_p.h.

Constructor & Destructor Documentation

◆ TrackListPrivate()

TrackListPrivate::TrackListPrivate ( TrackList q)

Definition at line 96 of file track_list.cpp.

Member Function Documentation

◆ addTracksWithUriAt()

void TrackListPrivate::addTracksWithUriAt ( const QVector< QUrl > &  uris,
int  position 
)

Definition at line 145 of file track_list.cpp.

References ensureProxy(), remotePos(), and lomiri::MediaHub::DBusUtils::waitForFinished().

+ Here is the call graph for this function:

◆ addTrackWithUriAt()

void TrackListPrivate::addTrackWithUriAt ( const QUrl &  uri,
int  position,
bool  makeCurrent 
)

Definition at line 132 of file track_list.cpp.

References ensureProxy(), remotePos(), and lomiri::MediaHub::DBusUtils::waitForFinished().

+ Here is the call graph for this function:

◆ createProxy()

void TrackListPrivate::createProxy ( const QDBusConnection &  conn,
const QString &  objectPath 
)

Definition at line 103 of file track_list.cpp.

References mpris::objectPath.

◆ ensureProxy()

bool TrackListPrivate::ensureProxy ( ) const

◆ goTo()

void TrackListPrivate::goTo ( int  index)

Definition at line 181 of file track_list.cpp.

References ensureProxy(), remotePos(), and lomiri::MediaHub::DBusUtils::waitForFinished().

+ Here is the call graph for this function:

◆ initialize()

void TrackListPrivate::initialize ( const QVariantMap &  properties)

Definition at line 125 of file track_list.cpp.

Referenced by DBusTrackList::DBusTrackList().

◆ moveTrack()

void TrackListPrivate::moveTrack ( int  index,
int  to 
)

Definition at line 162 of file track_list.cpp.

References ensureProxy(), remotePos(), and lomiri::MediaHub::DBusUtils::waitForFinished().

+ Here is the call graph for this function:

◆ onTrackAdded()

void TrackListPrivate::onTrackAdded ( const QString &  id)

Definition at line 198 of file track_list.cpp.

References onTracksAdded().

+ Here is the call graph for this function:

◆ onTrackChanged()

void TrackListPrivate::onTrackChanged ( const QString &  id)

Definition at line 252 of file track_list.cpp.

◆ onTrackListReset()

void TrackListPrivate::onTrackListReset ( )

Definition at line 243 of file track_list.cpp.

◆ onTrackMoved()

void TrackListPrivate::onTrackMoved ( const QString &  id,
const QString &  to 
)

Definition at line 224 of file track_list.cpp.

◆ onTrackRemoved()

void TrackListPrivate::onTrackRemoved ( const QString &  id)

Definition at line 234 of file track_list.cpp.

◆ onTracksAdded()

void TrackListPrivate::onTracksAdded ( const QStringList &  ids)

Definition at line 203 of file track_list.cpp.

Referenced by onTrackAdded().

◆ remotePos()

QString TrackListPrivate::remotePos ( int  index) const

Definition at line 118 of file track_list.cpp.

Referenced by addTracksWithUriAt(), addTrackWithUriAt(), goTo(), moveTrack(), and removeTrack().

◆ removeTrack()

void TrackListPrivate::removeTrack ( int  index)

Definition at line 172 of file track_list.cpp.

References ensureProxy(), remotePos(), and lomiri::MediaHub::DBusUtils::waitForFinished().

+ Here is the call graph for this function:

◆ reset()

void TrackListPrivate::reset ( )

Definition at line 190 of file track_list.cpp.

References ensureProxy(), and lomiri::MediaHub::DBusUtils::waitForFinished().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: