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

#include <track_list_implementation.h>

Inheritance diagram for lomiri::MediaHubService::TrackListImplementation:
Collaboration diagram for lomiri::MediaHubService::TrackListImplementation:

Signals

void endOfTrackList ()
void onGoToTrack (const Track::Id &id)
void trackAdded (const Track::Id &id)
void tracksAdded (const QVector< QUrl > &tracks)
void trackRemoved (const Track::Id &id)
void trackMoved (const Track::Id &id, const Track::Id &to)
void trackListReset ()
void trackChanged (const Track::Id &id)
void trackListReplaced (const QVector< Track::Id > &tracks, const Track::Id &currentTrack)

Public Member Functions

 TrackListImplementation (const QSharedPointer< Engine::MetaDataExtractor > &extractor, QObject *parent=nullptr)
 ~TrackListImplementation ()
void setLoopStatus (Player::LoopStatus status)
Player::LoopStatus loopStatus () const
void setShuffle (bool shuffle)
bool shuffle () const
void setCurrentPosition (uint64_t position)
bool canEditTracks () const
QUrl query_uri_for_track (const Track::Id &id)
Track::MetaData query_meta_data_for_track (const Track::Id &id)
void add_track_with_uri_at (const QUrl &uri, const Track::Id &position, bool make_current)
void add_tracks_with_uri_at (const QVector< QUrl > &uris, const Track::Id &position)
bool move_track (const Track::Id &id, const Track::Id &to)
void remove_track (const Track::Id &id)
void go_to (const Track::Id &track)
const TrackList::Containershuffled_tracks () const
void reset ()
const TrackList::Containertracks () const
bool hasNext () const
bool hasPrevious () const
Track::Id next ()
Track::Id previous ()
const Track::Idcurrent () const

Static Public Member Functions

static const Track::IdafterEmptyTrack ()

Detailed Description

Definition at line 74 of file track_list_implementation.h.

Constructor & Destructor Documentation

◆ TrackListImplementation()

◆ ~TrackListImplementation()

TrackListImplementation::~TrackListImplementation ( )

Definition at line 410 of file track_list_implementation.cpp.

Member Function Documentation

◆ add_track_with_uri_at()

void lomiri::MediaHubService::TrackListImplementation::add_track_with_uri_at ( const QUrl & uri,
const Track::Id & position,
bool make_current )

Definition at line 454 of file track_list_implementation.cpp.

References MH_TRACE, and TrackListImplementation().

Here is the call graph for this function:

◆ add_tracks_with_uri_at()

void TrackListImplementation::add_tracks_with_uri_at ( const QVector< QUrl > & uris,
const Track::Id & position )

Definition at line 464 of file track_list_implementation.cpp.

References MH_TRACE, and TrackListImplementation().

Here is the call graph for this function:

◆ afterEmptyTrack()

const Track::Id & TrackListImplementation::afterEmptyTrack ( )
static

◆ canEditTracks()

bool TrackListImplementation::canEditTracks ( ) const

Definition at line 770 of file track_list_implementation.cpp.

◆ current()

const Track::Id & TrackListImplementation::current ( ) const

Definition at line 746 of file track_list_implementation.cpp.

References TrackListImplementation().

Here is the call graph for this function:

◆ endOfTrackList

void lomiri::MediaHubService::TrackListImplementation::endOfTrackList ( )
signal

Referenced by next(), previous(), and reset().

◆ go_to()

void lomiri::MediaHubService::TrackListImplementation::go_to ( const Track::Id & track)

Definition at line 486 of file track_list_implementation.cpp.

References MH_TRACE, and TrackListImplementation().

Here is the call graph for this function:

◆ hasNext()

bool TrackListImplementation::hasNext ( ) const

Definition at line 527 of file track_list_implementation.cpp.

References shuffle(), and TrackListImplementation().

Referenced by next().

Here is the call graph for this function:

◆ hasPrevious()

bool TrackListImplementation::hasPrevious ( ) const

Definition at line 566 of file track_list_implementation.cpp.

References MH_DEBUG, shuffle(), and TrackListImplementation().

Referenced by previous().

Here is the call graph for this function:

◆ loopStatus()

Player::LoopStatus TrackListImplementation::loopStatus ( ) const

Definition at line 758 of file track_list_implementation.cpp.

References TrackListImplementation().

Here is the call graph for this function:

◆ move_track()

bool TrackListImplementation::move_track ( const Track::Id & id,
const Track::Id & to )

Definition at line 472 of file track_list_implementation.cpp.

References MH_TRACE, and TrackListImplementation().

Here is the call graph for this function:

◆ next()

media::Track::Id lomiri::MediaHubService::TrackListImplementation::next ( )

◆ onGoToTrack

void lomiri::MediaHubService::TrackListImplementation::onGoToTrack ( const Track::Id & id)
signal

Referenced by next(), and previous().

◆ previous()

media::Track::Id lomiri::MediaHubService::TrackListImplementation::previous ( )

◆ query_meta_data_for_track()

Track::MetaData TrackListImplementation::query_meta_data_for_track ( const Track::Id & id)

Definition at line 443 of file track_list_implementation.cpp.

References TrackListImplementation().

Here is the call graph for this function:

◆ query_uri_for_track()

QUrl TrackListImplementation::query_uri_for_track ( const Track::Id & id)

Definition at line 432 of file track_list_implementation.cpp.

References TrackListImplementation().

Here is the call graph for this function:

◆ remove_track()

void lomiri::MediaHubService::TrackListImplementation::remove_track ( const Track::Id & id)

Definition at line 480 of file track_list_implementation.cpp.

References TrackListImplementation().

Here is the call graph for this function:

◆ reset()

void lomiri::MediaHubService::TrackListImplementation::reset ( )

Definition at line 499 of file track_list_implementation.cpp.

References endOfTrackList(), MH_TRACE, TrackListImplementation(), and trackListReset().

Here is the call graph for this function:

◆ setCurrentPosition()

void TrackListImplementation::setCurrentPosition ( uint64_t position)

Definition at line 764 of file track_list_implementation.cpp.

References TrackListImplementation().

Here is the call graph for this function:

◆ setLoopStatus()

void TrackListImplementation::setLoopStatus ( Player::LoopStatus status)

Definition at line 752 of file track_list_implementation.cpp.

References TrackListImplementation().

Here is the call graph for this function:

◆ setShuffle()

void TrackListImplementation::setShuffle ( bool shuffle)

Definition at line 414 of file track_list_implementation.cpp.

References shuffle(), and TrackListImplementation().

Here is the call graph for this function:

◆ shuffle()

bool TrackListImplementation::shuffle ( ) const

Definition at line 426 of file track_list_implementation.cpp.

References TrackListImplementation().

Referenced by hasNext(), hasPrevious(), next(), previous(), and setShuffle().

Here is the call graph for this function:

◆ shuffled_tracks()

const TrackList::Container & TrackListImplementation::shuffled_tracks ( ) const

Definition at line 493 of file track_list_implementation.cpp.

References TrackListImplementation().

Here is the call graph for this function:

◆ trackAdded

void lomiri::MediaHubService::TrackListImplementation::trackAdded ( const Track::Id & id)
signal

◆ trackChanged

void lomiri::MediaHubService::TrackListImplementation::trackChanged ( const Track::Id & id)
signal

◆ trackListReplaced

void lomiri::MediaHubService::TrackListImplementation::trackListReplaced ( const QVector< Track::Id > & tracks,
const Track::Id & currentTrack )
signal

References TrackListImplementation(), and tracks().

Referenced by lomiri::MediaHubService::TrackListSkeleton::TrackListSkeleton().

Here is the call graph for this function:

◆ trackListReset

void lomiri::MediaHubService::TrackListImplementation::trackListReset ( )
signal

◆ trackMoved

void lomiri::MediaHubService::TrackListImplementation::trackMoved ( const Track::Id & id,
const Track::Id & to )
signal

◆ trackRemoved

void lomiri::MediaHubService::TrackListImplementation::trackRemoved ( const Track::Id & id)
signal

◆ tracks()

const TrackList::Container & TrackListImplementation::tracks ( ) const

Definition at line 516 of file track_list_implementation.cpp.

References TrackListImplementation().

Referenced by trackListReplaced(), and tracksAdded().

Here is the call graph for this function:

◆ tracksAdded

void lomiri::MediaHubService::TrackListImplementation::tracksAdded ( const QVector< QUrl > & tracks)
signal

References tracks().

Referenced by lomiri::MediaHubService::TrackListSkeleton::TrackListSkeleton().

Here is the call graph for this function:

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