#include <track_list.h>
Classes | |
struct | Errors |
Public Types | |
typedef std::vector< Track::Id > | Container |
typedef std::vector< Track::UriType > | ContainerURI |
typedef std::tuple< std::vector< Track::Id >, Track::Id > | ContainerTrackIdTuple |
typedef std::tuple< Track::Id, Track::Id > | TrackIdTuple |
typedef Container::iterator | Iterator |
typedef Container::const_iterator | ConstIterator |
Public Member Functions | |
TrackList (const TrackList &)=delete | |
~TrackList () | |
TrackList & | operator= (const TrackList &)=delete |
bool | operator== (const TrackList &) const =delete |
virtual const core::Property< bool > & | can_edit_tracks () const =0 |
virtual const core::Property< Container > & | tracks () const =0 |
virtual Track::MetaData | query_meta_data_for_track (const Track::Id &id)=0 |
virtual Track::UriType | query_uri_for_track (const Track::Id &id)=0 |
virtual void | add_track_with_uri_at (const Track::UriType &uri, const Track::Id &position, bool make_current)=0 |
virtual void | add_tracks_with_uri_at (const ContainerURI &uris, const Track::Id &position)=0 |
virtual bool | move_track (const Track::Id &id, const Track::Id &to)=0 |
virtual void | remove_track (const Track::Id &id)=0 |
virtual void | go_to (const Track::Id &track)=0 |
bool | has_next () const |
bool | has_previous () const |
virtual Track::Id | next ()=0 |
virtual Track::Id | previous ()=0 |
virtual void | reset ()=0 |
virtual const core::Signal< ContainerTrackIdTuple > & | on_track_list_replaced () const =0 |
virtual const core::Signal< Track::Id > & | on_track_added () const =0 |
virtual const core::Signal< ContainerURI > & | on_tracks_added () const =0 |
virtual const core::Signal< TrackIdTuple > & | on_track_moved () const =0 |
virtual const core::Signal< Track::Id > & | on_track_removed () const =0 |
virtual const core::Signal< void > & | on_track_list_reset () const =0 |
virtual const core::Signal< Track::Id > & | on_track_changed () const =0 |
virtual const core::Signal< Track::Id > & | on_go_to_track () const =0 |
virtual const core::Signal< void > & | on_end_of_tracklist () const =0 |
Static Public Member Functions | |
static const Track::Id & | after_empty_track () |
Protected Member Functions | |
TrackList () | |
Definition at line 40 of file track_list.h.
typedef Container::const_iterator core::ubuntu::media::TrackList::ConstIterator |
Definition at line 48 of file track_list.h.
typedef std::vector<Track::Id> core::ubuntu::media::TrackList::Container |
Definition at line 43 of file track_list.h.
typedef std::tuple<std::vector<Track::Id>, Track::Id> core::ubuntu::media::TrackList::ContainerTrackIdTuple |
Definition at line 45 of file track_list.h.
typedef std::vector<Track::UriType> core::ubuntu::media::TrackList::ContainerURI |
Definition at line 44 of file track_list.h.
typedef Container::iterator core::ubuntu::media::TrackList::Iterator |
Definition at line 47 of file track_list.h.
typedef std::tuple<Track::Id, Track::Id> core::ubuntu::media::TrackList::TrackIdTuple |
Definition at line 46 of file track_list.h.
|
delete |
core::ubuntu::media::TrackList::~TrackList | ( | ) |
Definition at line 60 of file track_list.cpp.
|
protected |
Definition at line 56 of file track_list.cpp.
|
pure virtual |
Adds a URI into the TrackList.
Implemented in core::ubuntu::media::TrackListStub, and core::ubuntu::media::TrackListImplementation.
|
pure virtual |
Adds a list of URIs into the TrackList.
Implemented in core::ubuntu::media::TrackListStub, and core::ubuntu::media::TrackListImplementation.
|
static |
Definition at line 50 of file track_list.cpp.
|
pure virtual |
If set to false, calling add_track_with_uri_at or remove_track will have no effect.
Implemented in core::ubuntu::media::TrackListSkeleton, and core::ubuntu::media::TrackListStub.
|
pure virtual |
Skip to the specified TrackId.
Implemented in core::ubuntu::media::TrackListStub, and core::ubuntu::media::TrackListImplementation.
bool core::ubuntu::media::TrackList::has_next | ( | ) | const |
Returns true if there is a next track in the TrackList after the current one playing
Definition at line 64 of file track_list.cpp.
bool core::ubuntu::media::TrackList::has_previous | ( | ) | const |
Returns true if there is a previous track in the TrackList before the current one playing
Definition at line 69 of file track_list.cpp.
|
pure virtual |
Moves track 'id' from its old position in the TrackList to new position.
Implemented in core::ubuntu::media::TrackListStub, and core::ubuntu::media::TrackListImplementation.
|
pure virtual |
Skip to the next Track in the TrackList if there is one.
Implemented in core::ubuntu::media::TrackListStub, and core::ubuntu::media::TrackListSkeleton.
|
pure virtual |
Used to notify the Player of when the end of the tracklist has been reached.
Implemented in core::ubuntu::media::TrackListStub, and core::ubuntu::media::TrackListSkeleton.
|
pure virtual |
Used to notify the Player of when the client requested that the Player should immediately play a new track.
Implemented in core::ubuntu::media::TrackListStub, and core::ubuntu::media::TrackListSkeleton.
|
pure virtual |
Indicates that a track has been added to the track list.
Implemented in core::ubuntu::media::TrackListStub, and core::ubuntu::media::TrackListSkeleton.
|
pure virtual |
Indicates that the track list advanced from one track to another.
Implemented in core::ubuntu::media::TrackListStub, and core::ubuntu::media::TrackListSkeleton.
|
pure virtual |
Indicates that the entire tracklist has been replaced.
Implemented in core::ubuntu::media::TrackListStub, and core::ubuntu::media::TrackListSkeleton.
|
pure virtual |
Indicates that the track list has been reset and there are no tracks now
Implemented in core::ubuntu::media::TrackListStub, and core::ubuntu::media::TrackListSkeleton.
|
pure virtual |
Indicates that a track has been moved within the track list. First template param holds the id of the track being moved. Second param holds the id of the track of the position to move the track to in the TrackList.
Implemented in core::ubuntu::media::TrackListStub, and core::ubuntu::media::TrackListSkeleton.
|
pure virtual |
Indicates that a track has been removed from the track list.
Implemented in core::ubuntu::media::TrackListStub, and core::ubuntu::media::TrackListSkeleton.
|
pure virtual |
Indicates that one or more tracks have been added to the track list.
Implemented in core::ubuntu::media::TrackListStub, and core::ubuntu::media::TrackListSkeleton.
|
delete |
|
pure virtual |
Skip to the previous Track in the TrackList if there is one.
Implemented in core::ubuntu::media::TrackListStub, and core::ubuntu::media::TrackListSkeleton.
|
pure virtual |
Gets all the metadata available for a given Track.
Implemented in core::ubuntu::media::TrackListStub, and core::ubuntu::media::TrackListImplementation.
|
pure virtual |
Gets the URI for a given Track.
Implemented in core::ubuntu::media::TrackListStub, and core::ubuntu::media::TrackListImplementation.
Referenced by core::ubuntu::media::operator<<().
|
pure virtual |
Removes a Track from the TrackList.
Implemented in core::ubuntu::media::TrackListStub, and core::ubuntu::media::TrackListImplementation.
|
pure virtual |
Clears and resets the TrackList to the same as a newly constructed instance.
Implemented in core::ubuntu::media::TrackListSkeleton, core::ubuntu::media::TrackListStub, and core::ubuntu::media::TrackListImplementation.
|
pure virtual |
An array which contains the identifier of each track in the tracklist, in order.
Implemented in core::ubuntu::media::TrackListSkeleton, and core::ubuntu::media::TrackListStub.
Referenced by core::ubuntu::media::operator<<().