#include <playlisttrack.h>
The PlayListTrack class provides a track for use with the PlayListModel class.
- Author
- Ilya Kotov forko.nosp@m.tov0.nosp@m.2@ya..nosp@m.ru
◆ PlayListTrack() [1/3]
Constructs an empty plalist item.
◆ PlayListTrack() [2/3]
Constructs a new PlayListTrack that is a copy of the given track other
◆ PlayListTrack() [3/3]
Constructs plalist item with given metadata.
- Parameters
-
info | Media file information. |
◆ ~PlayListTrack()
◆ beginUsage()
Prepares for usage. Increases reference counter.
◆ deleteLater()
Shedules track object for deletion.
◆ endUsage()
End of usage. Decreases reference counter.
◆ formattedLength()
const QString formattedLength |
( |
| ) |
|
|
virtual |
Returns formatted length of the item.
Implements PlayListItem.
◆ formattedTitle()
const QString formattedTitle |
( |
int |
column | ) |
|
|
virtual |
Returns formatted title of the item.
- Parameters
-
Implements PlayListItem.
◆ formattedTitles()
const QStringList formattedTitles |
( |
| ) |
|
|
virtual |
Returns the list of the formatted titles for all columns.
Implements PlayListItem.
◆ groupName()
const QString groupName |
( |
| ) |
|
Returns name of the parent group.
◆ isGroup()
◆ isSheduledForDeletion()
bool isSheduledForDeletion |
( |
| ) |
const |
Returns true if the track object is sheduled for deletion.
◆ isUsed()
Indicates that instance is currently busy in some kind of operation (tags editing etc.) and can't be deleted at the moment. Call deleteLater() instead of delete operator call.
◆ operator=()
Assigns other to this track and returns a reference to this track.
◆ setTrackIndex()
void setTrackIndex |
( |
int |
track_index | ) |
|
|
virtual |
Sets the index of the track.
Reimplemented from PlayListItem.
◆ trackIndex()
Returns the index of the track. Default implementation returns -1.
Reimplemented from PlayListItem.
◆ updateMetaData() [1/2]
void updateMetaData |
( |
const TrackInfo * |
info | ) |
|
Updates current metadata.
- Parameters
-
◆ updateMetaData() [2/2]
Gets new metadata from file (works for local files only).
The documentation for this class was generated from the following file: