#include <track_list.h>
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 |
Definition at line 35 of file track_list.h.
| TrackList::TrackList | ( | QObject * | parent = nullptr | ) |
Definition at line 259 of file track_list.cpp.
Referenced by addTracksWithUriAt(), addTrackWithUriAt(), canEditTracks(), currentTrack(), goTo(), moveTrack(), PlayerPrivate, removeTrack(), reset(), and tracks().
|
default |
| 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().
| 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().
| bool TrackList::canEditTracks | ( | ) | const |
Definition at line 273 of file track_list.cpp.
References TrackList().
|
signal |
Referenced by currentTrackChanged().
| int TrackList::currentTrack | ( | ) | const |
Definition at line 279 of file track_list.cpp.
References TrackList().
|
signal |
References canEditTracksChanged().
Referenced by tracksAdded().
| void TrackList::goTo | ( | int | index | ) |
Skip to the specified Track.
Definition at line 310 of file track_list.cpp.
References TrackList().
| 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().
| void TrackList::removeTrack | ( | int | index | ) |
Removes a Track from the TrackList.
Definition at line 304 of file track_list.cpp.
References TrackList().
| 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().
|
signal |
References trackListReset(), trackMoved(), and trackRemoved().
Referenced by trackListReset().
|
signal |
|
signal |
Referenced by trackListReset().
| const QVector< Track > & TrackList::tracks | ( | ) | const |
Definition at line 267 of file track_list.cpp.
References TrackList().
|
signal |
References currentTrackChanged().
Referenced by trackMoved().
|
friend |
Definition at line 97 of file track_list.h.
References PlayerPrivate, and TrackList().
Referenced by PlayerPrivate.
|
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.
|
readwrite |
Definition at line 46 of file track_list.h.