|
Qmmp
|
#include <playlisttrack.h>
Public Types | |
| enum | FLAGS { FREE = 0, EDITING, SCHEDULED_FOR_DELETION } |
Public Member Functions | |
| PlayListTrack () | |
| PlayListTrack (const PlayListTrack &item) | |
| PlayListTrack (FileInfo *info) | |
| ~PlayListTrack () | |
| const QString | formattedTitle () |
| const QString | formattedLength () |
| qint64 | length () const |
| void | setLength (qint64 length) |
| const QString | url () const |
| void | updateMetaData (const QMap< Qmmp::MetaData, QString > &metaData) |
| void | updateMetaData () |
| const QString | groupName () |
| bool | isGroup () const |
| FLAGS | flag () const |
| void | setFlag (FLAGS) |
The PlayListTrack class provides an item for use with the PlayListModel class.
| enum FLAGS |
Current state of playlist item. FREE - instance is free and may be deleted EDITING - instance is currently busy in some kind of operation(tags editing etc.) and can't be deleted at the moment. Set flag SCHEDULED_FOR_DELETION for it instead of delete operator call.
| PlayListTrack | ( | ) |
Constructs an empty plalist item.
| PlayListTrack | ( | const PlayListTrack & | item | ) |
Constructs a new PlayListTrack that is a copy of the given item
| PlayListTrack | ( | FileInfo * | info | ) |
Constructs plalist item with given metadata.
| info | Media file information. |
| ~PlayListTrack | ( | ) |
Object destructor.
| const QString formattedLength | ( | ) | [virtual] |
Returns formatted length of the item.
Implements PlayListItem.
| const QString formattedTitle | ( | ) | [virtual] |
Returns formatted title of the item.
Implements PlayListItem.
| qint64 length | ( | ) | const |
Returns song length in seconds.
| void setLength | ( | qint64 | length | ) |
Sets length in seconds.
| void updateMetaData | ( | const QMap< Qmmp::MetaData, QString > & | metaData | ) |
Updates current metadata.
| metaData | Map with metadata values. |
| void updateMetaData | ( | ) |
Gets new metadata from file (works for local files only).
1.7.6.1