Qmmp
Public Member Functions | List of all members
PlayListItem Class Referenceabstract

#include <playlistitem.h>

Inheritance diagram for PlayListItem:
PlayListGroup PlayListTrack

Public Member Functions

 PlayListItem ()
 
virtual ~PlayListItem ()
 
void setSelected (bool select)
 
bool isSelected () const
 
virtual QString formattedTitle (int column)=0
 
virtual QStringList formattedTitles ()=0
 
virtual QString formattedLength ()=0
 
virtual bool isGroup () const =0
 
virtual void setTrackIndex (int number)
 
virtual int trackIndex () const
 

Detailed Description

The PlayListItem class provides an item for use with the PlayListModel class.

Author
Ilya Kotov forko.nosp@m.tov0.nosp@m.2@ya..nosp@m.ru

Constructor & Destructor Documentation

◆ PlayListItem()

Constructs an empty plalist item.

◆ ~PlayListItem()

virtual ~PlayListItem ( )
virtual

Object destructor.

Member Function Documentation

◆ formattedLength()

virtual QString formattedLength ( )
pure virtual

Returns formatted length of the item.

Implemented in PlayListGroup, and PlayListTrack.

◆ formattedTitle()

virtual QString formattedTitle ( int  column)
pure virtual

Returns formatted title of the item.

Parameters
columnNumber of column.

Implemented in PlayListTrack, and PlayListGroup.

◆ formattedTitles()

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

◆ isGroup()

virtual bool isGroup ( ) const
pure virtual

Returns true if the PlayListItem is group separator. Otherwise returns false.

Implemented in PlayListTrack, and PlayListGroup.

◆ isSelected()

bool isSelected ( ) const

Return true if item is selected, otherwise returns false.

◆ setSelected()

void setSelected ( bool  select)

Sets item selection flag to select

Parameters
selectState of selection (true select, false unselect)

◆ setTrackIndex()

virtual void setTrackIndex ( int  number)
virtual

Sets the index of the track. Default implementation does nothing.

Reimplemented in PlayListTrack.

◆ trackIndex()

virtual int trackIndex ( ) const
virtual

Returns the index of the track. Default implementation returns -1.

Reimplemented in PlayListTrack.


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