Music Hub ..
A session-wide music playback service
Loading...
Searching...
No Matches
lomiri::MediaHub::TrackList Class Reference

#include <track_list.h>

Inheritance diagram for lomiri::MediaHub::TrackList:
Collaboration diagram for lomiri::MediaHub::TrackList:

Signals

void canEditTracksChanged ()
void currentTrackChanged ()
void tracksAdded (int start, int end)
void trackRemoved (int index)
void trackMoved (int index, int to)
void trackListReset ()

Public Member Functions

 TrackList (QObject *parent=nullptr)
 ~TrackList ()
const QVector< Track > & tracks () const
bool canEditTracks () const
int currentTrack () const
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 ()

Properties

bool canEditTracks
int currentTrack

Friends

class PlayerPrivate

Detailed Description

Definition at line 35 of file track_list.h.

Constructor & Destructor Documentation

◆ TrackList()

TrackList::TrackList ( QObject * parent = nullptr)

◆ ~TrackList()

TrackList::~TrackList ( )
default

Member Function Documentation

◆ addTracksWithUriAt()

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

Adds a list of URIs into the TrackList.

Definition at line 292 of file track_list.cpp.

References TrackList().

Here is the call graph for this function:

◆ addTrackWithUriAt()

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

Adds a URI into the TrackList.

Definition at line 285 of file track_list.cpp.

References TrackList().

Here is the call graph for this function:

◆ canEditTracks()

bool TrackList::canEditTracks ( ) const

Definition at line 273 of file track_list.cpp.

References TrackList().

Here is the call graph for this function:

◆ canEditTracksChanged

void lomiri::MediaHub::TrackList::canEditTracksChanged ( )
signal

Referenced by currentTrackChanged().

◆ currentTrack()

int TrackList::currentTrack ( ) const

Definition at line 279 of file track_list.cpp.

References TrackList().

Here is the call graph for this function:

◆ currentTrackChanged

void lomiri::MediaHub::TrackList::currentTrackChanged ( )
signal

References canEditTracksChanged().

Referenced by tracksAdded().

Here is the call graph for this function:

◆ goTo()

void TrackList::goTo ( int index)

Skip to the specified Track.

Definition at line 310 of file track_list.cpp.

References TrackList().

Here is the call graph for this function:

◆ moveTrack()

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

Moves track at 'index' from its old position in the TrackList to new position.

Definition at line 298 of file track_list.cpp.

References TrackList().

Here is the call graph for this function:

◆ removeTrack()

void TrackList::removeTrack ( int index)

Removes a Track from the TrackList.

Definition at line 304 of file track_list.cpp.

References TrackList().

Here is the call graph for this function:

◆ reset()

void TrackList::reset ( )

Clears and resets the TrackList to the same as a newly constructed instance.

Definition at line 316 of file track_list.cpp.

References TrackList().

Here is the call graph for this function:

◆ trackListReset

void lomiri::MediaHub::TrackList::trackListReset ( )
signal

References trackListReset(), trackMoved(), and trackRemoved().

Referenced by trackListReset().

Here is the call graph for this function:

◆ trackMoved

void lomiri::MediaHub::TrackList::trackMoved ( int index,
int to )
signal

References tracksAdded().

Referenced by trackListReset().

Here is the call graph for this function:

◆ trackRemoved

void lomiri::MediaHub::TrackList::trackRemoved ( int index)
signal

Referenced by trackListReset().

◆ tracks()

const QVector< Track > & TrackList::tracks ( ) const

Definition at line 267 of file track_list.cpp.

References TrackList().

Here is the call graph for this function:

◆ tracksAdded

void lomiri::MediaHub::TrackList::tracksAdded ( int start,
int end )
signal

References currentTrackChanged().

Referenced by trackMoved().

Here is the call graph for this function:

◆ PlayerPrivate

friend class PlayerPrivate
friend

Definition at line 97 of file track_list.h.

References PlayerPrivate, and TrackList().

Referenced by PlayerPrivate.

Property Documentation

◆ canEditTracks

bool lomiri::MediaHub::TrackList::canEditTracks
read

If set to false, calling add_track_with_uri_at or remove_track will have no effect.

Definition at line 45 of file track_list.h.

◆ currentTrack

int lomiri::MediaHub::TrackList::currentTrack
readwrite

Definition at line 46 of file track_list.h.


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