#include <playlistitem.h>

Public Types | |
| enum | FLAGS { FREE = 0, EDITING, SCHEDULED_FOR_DELETION } |
Public Member Functions | |
| PlayListItem () | |
| PlayListItem (FileInfo *info) | |
| ~PlayListItem () | |
| void | setSelected (bool select) |
| bool | isSelected () const |
| void | setCurrent (bool yes) |
| bool | isCurrent () const |
| FLAGS | flag () const |
| void | setFlag (FLAGS) |
| const QString | text () |
| void | setText (const QString &title) |
| void | updateMetaData (const QMap< Qmmp::MetaData, QString > &metaData) |
| void | updateTags () |
| enum PlayListItem::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.
| PlayListItem::PlayListItem | ( | ) |
Constructs an empty plalist item.
| PlayListItem::PlayListItem | ( | FileInfo * | info | ) |
Constructs plalist item with given metadata.
| info | Media file information. |
| PlayListItem::~PlayListItem | ( | ) |
Object destructor.
| FLAGS PlayListItem::flag | ( | ) | const |
Returns current state of the playlist item.
| bool PlayListItem::isCurrent | ( | ) | const |
Returns true if the item is the current item; otherwise returns returns false.
| bool PlayListItem::isSelected | ( | ) | const |
Return true if item is selected, otherwise returns false.
| void PlayListItem::setCurrent | ( | bool | yes | ) |
It is used by PlayListModel class.
| void PlayListItem::setFlag | ( | FLAGS | ) |
Sets state of the playlist item.
| void PlayListItem::setSelected | ( | bool | select | ) |
Sets item selection flag to select
| select | State of selection (true select, false unselect) |
| void PlayListItem::setText | ( | const QString & | title | ) |
Direct access to the item short title.
| title | New short title. |
| const QString PlayListItem::text | ( | ) |
Returns item short title.
| void PlayListItem::updateMetaData | ( | const QMap< Qmmp::MetaData, QString > & | metaData | ) |
Updates current metadata.
| metaData | Map with metadata values. |
| void PlayListItem::updateTags | ( | ) |
Gets new metadata from file (works for local files only).
1.5.9