|
Qmmp
|
#include <playlistitem.h>
Public Member Functions | |
| PlayListItem () | |
| virtual | ~PlayListItem () |
| void | setSelected (bool select) |
| bool | isSelected () const |
| virtual const QString | formattedTitle (int column)=0 |
| virtual const QStringList | formattedTitles ()=0 |
| virtual const QString | formattedLength ()=0 |
| virtual bool | isGroup () const =0 |
| virtual void | setTrackIndex (int number) |
| virtual int | trackIndex () const |
The PlayListItem class provides an item for use with the PlayListModel class.
| PlayListItem | ( | ) |
Constructs an empty plalist item.
| virtual ~PlayListItem | ( | ) | [virtual] |
Object destructor.
| virtual const QString formattedLength | ( | ) | [pure virtual] |
Returns formatted length of the item.
Implemented in PlayListGroup, and PlayListTrack.
| virtual const QString formattedTitle | ( | int | column | ) | [pure virtual] |
Returns formatted title of the item.
| column | Number of column. |
Implemented in PlayListTrack, and PlayListGroup.
| virtual const QStringList formattedTitles | ( | ) | [pure virtual] |
Returns the list of the formatted titles for all columns. Group separators contain only one title.
Implemented in PlayListTrack, and PlayListGroup.
| virtual bool isGroup | ( | ) | const [pure virtual] |
Returns true if the PlayListItem is group separator. Otherwise returns false.
Implemented in PlayListTrack, and PlayListGroup.
| bool isSelected | ( | ) | const |
Return true if item is selected, otherwise returns false.
| void setSelected | ( | bool | select | ) |
Sets item selection flag to select
| select | State of selection (true select, false unselect) |
| virtual void setTrackIndex | ( | int | number | ) | [virtual] |
Sets the index of the track. Default implementation does nothing.
Reimplemented in PlayListTrack.
| virtual int trackIndex | ( | ) | const [virtual] |
Returns the index of the track. Default implementation returns -1.
Reimplemented in PlayListTrack.
1.7.6.1