Qmmp
|
The PlayListTrack class provides a group for use with the PlayListModel class. More...
#include <playlistgroup.h>
Public Member Functions | |
PlayListGroup (const QString &formattedTitle) | |
virtual | ~PlayListGroup () |
const QString | formattedTitle (int column=0) |
const QStringList | formattedTitles () |
bool | contains (PlayListTrack *track) const |
bool | isEmpty () const |
QList< PlayListTrack * > | tracks () const |
int | count () const |
const QString | formattedLength () |
bool | isGroup () const |
Friends | |
class | GroupedContainer |
The PlayListTrack class provides a group for use with the PlayListModel class.
PlayListGroup | ( | const QString & | formattedTitle | ) |
Constructor.
formattedTitle | Title of the group. |
virtual ~PlayListGroup | ( | ) | [virtual] |
Object destructor.
bool contains | ( | PlayListTrack * | track | ) | const |
Returns true if the group contains track track. Otherwise returns false.
int count | ( | ) | const |
Returns number of tracks if the group.
const QString formattedLength | ( | ) | [inline, virtual] |
Returns formatted length of the item.
Implements PlayListItem.
const QString formattedTitle | ( | int | column = 0 | ) | [virtual] |
Returns formatted title of the group.
column | Number of column (unused). |
Implements PlayListItem.
const QStringList formattedTitles | ( | ) | [virtual] |
Returns the list of the formatted titles for all columns. Group separators contain only one title.
Implements PlayListItem.
bool isEmpty | ( | ) | const |
Returns true if the group is empty. Otherwise returns false.
bool isGroup | ( | ) | const [virtual] |
Returns true.
Implements PlayListItem.
QList<PlayListTrack *> tracks | ( | ) | const |
Returns a list of tracks if the group.