PlayListGroup Class Reference

The PlayListTrack class provides a group for use with the PlayListModel class. More...

#include <playlistgroup.h>

Inheritance diagram for PlayListGroup:

PlayListItem

List of all members.

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


Detailed Description

The PlayListTrack class provides a group for use with the PlayListModel class.

Author:
Ilya Kotov <forkotov02@hotmail.ru>

Constructor & Destructor Documentation

PlayListGroup ( const QString &  formattedTitle  ) 

Constructor.

Parameters:
formattedTitle Title of the group.

virtual ~PlayListGroup (  )  [virtual]

Object destructor.


Member Function Documentation

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.

Parameters:
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.


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

Generated on Mon May 9 23:58:51 2016 for Qmmp by  doxygen 1.5.9