Qmmp
Loading...
Searching...
No Matches
PlayListGroup Class Reference

#include <qmmpui/playlistgroup.h>

Inheritance diagram for PlayListGroup:
PlayListItem

Public Member Functions

 PlayListGroup (const QString &formattedTitle)
 
virtual ~PlayListGroup ()
 
QString formattedTitle (int line=0) const override
 
QStringList formattedTitles () const override
 
bool contains (PlayListTrack *track) const
 
bool isEmpty () const
 
QList< PlayListTrack * > tracks () const
 
int count () const
 
QString formattedDuration () const override
 
bool isGroup () const override
 
QString firstTrackPath () const
 
bool isCoverLoaded () const
 
QImage cover () const override
 
void setCover (const QImage &cover)
 
- Public Member Functions inherited from PlayListItem
 PlayListItem ()
 
virtual ~PlayListItem ()
 
void setSelected (bool select)
 
bool isSelected () const
 
virtual int trackIndex () const
 

Friends

class GroupedContainer
 

Detailed Description

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

Constructor & Destructor Documentation

◆ PlayListGroup()

PlayListGroup ( const QString & formattedTitle)
explicit

Constructor.

Parameters
formattedTitleTitle of the group.

◆ ~PlayListGroup()

virtual ~PlayListGroup ( )
virtual

Object destructor.

Member Function Documentation

◆ contains()

bool contains ( PlayListTrack * track) const

Returns true if the group contains track track. Otherwise returns false.

◆ count()

int count ( ) const

Returns number of tracks if the group.

◆ cover()

QImage cover ( ) const
overridevirtual

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
lineNumber 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.

◆ isCoverLoaded()

bool isCoverLoaded ( ) const

Returns true if the cover is available. Otherwise returns false.

◆ isEmpty()

bool isEmpty ( ) const

Returns true if the group is empty. Otherwise returns false.

◆ isGroup()

bool isGroup ( ) const
overridevirtual

Returns true.

Implements PlayListItem.

◆ setCover()

void setCover ( const QImage & cover)

Sets cover image for all group.

◆ tracks()

QList< PlayListTrack * > tracks ( ) const

Returns a list of tracks if the group.


The documentation for this class was generated from the following file: