#include <qmmpui/playlistgroup.h>
The PlayListTrack class provides a group for use with the PlayListModel class.
- Author
- Ilya Kotov forko.nosp@m.tov0.nosp@m.2@ya..nosp@m.ru
◆ PlayListGroup()
Constructor.
- Parameters
-
| groupName | Internal name of the group. |
◆ ~PlayListGroup()
◆ contains()
Returns true if the group contains track track. Otherwise returns false.
◆ count()
Returns number of tracks if the group.
◆ cover()
Returns available cover image.
Reimplemented from PlayListItem.
◆ firstTrackPath()
| QString firstTrackPath |
( |
| ) |
const |
Returns path or URL of the first track of the group.
◆ formattedDuration()
| QString formattedDuration |
( |
| ) |
const |
|
overridevirtual |
Returns formatted length of the item.
Implements PlayListItem.
◆ formattedTitle()
| QString formattedTitle |
( |
int | line = 0 | ) |
const |
|
overridevirtual |
Returns formatted title of the group.
- Parameters
-
| line | Number of title (0 or 1). |
Implements PlayListItem.
◆ formattedTitles()
| QStringList formattedTitles |
( |
| ) |
const |
|
overridevirtual |
Returns the list of the all avaibale formatted titles (1 or 2).
Implements PlayListItem.
◆ groupName()
| QString groupName |
( |
| ) |
const |
|
overridevirtual |
Returns internal group name. This name is intended for grouping only.
Implements PlayListItem.
◆ isCoverLoaded()
| bool isCoverLoaded |
( |
| ) |
const |
Returns true if the cover is available. Otherwise returns false.
◆ isEmpty()
Returns true if the group is empty. Otherwise returns false.
◆ isGroup()
◆ setCover()
| void setCover |
( |
const QImage & | cover | ) |
|
Sets cover image for all group.
◆ tracks()
Returns a list of tracks if the group.
◆ updateMetaData()
Updates all group titles.
The documentation for this class was generated from the following file: