Miam-Player  0.8.0
A nice music player
UniqueLibraryItemModel Class Reference

The UniqueLibraryItemModel class is the model used to store all tracks in a list view. More...

#include <uniquelibraryitemmodel.h>

Inheritance diagram for UniqueLibraryItemModel:
MiamItemModel

Public Slots

void insertTracks (const QList< TrackDAO > nodes)
 
void insertAlbums (const QList< AlbumDAO > nodes)
 
void insertArtists (const QList< ArtistDAO > nodes)
 
- Public Slots inherited from MiamItemModel
virtual void insertNode (GenericDAO *)
 
virtual void updateNode (GenericDAO *node)
 

Public Member Functions

 UniqueLibraryItemModel (QObject *parent=nullptr)
 
virtual QChar currentLetter (const QModelIndex &index) const override
 
virtual MiamSortFilterProxyModelproxy () const override
 
- Public Member Functions inherited from MiamItemModel
 MiamItemModel (QObject *parent=nullptr)
 
QStandardItem * letterItem (const QString &letter) const
 

Additional Inherited Members

- Protected Member Functions inherited from MiamItemModel
SeparatorIteminsertSeparator (const QStandardItem *node)
 
void removeNode (const QModelIndex &node)
 
- Protected Attributes inherited from MiamItemModel
QHash< uint, QStandardItem * > _hash
 
QHash< QString, SeparatorItem * > _letters
 
QMultiHash< SeparatorItem *, QModelIndex > _topLevelItems
 
QHash< QString, QStandardItem * > _tracks
 

Detailed Description

The UniqueLibraryItemModel class is the model used to store all tracks in a list view.

This class is populated from SqlDatabase where all relevant informations are gathered together: A track is related to Artist, Album, Year so we can sort them nicely and draw cover albums.

Author
Matthieu Bachelier

Constructor & Destructor Documentation

UniqueLibraryItemModel::UniqueLibraryItemModel ( QObject *  parent = nullptr)
explicit

Member Function Documentation

QChar UniqueLibraryItemModel::currentLetter ( const QModelIndex &  index) const
overridevirtual

Implements MiamItemModel.

void UniqueLibraryItemModel::insertAlbums ( const QList< AlbumDAO nodes)
slot
void UniqueLibraryItemModel::insertArtists ( const QList< ArtistDAO nodes)
slot
void UniqueLibraryItemModel::insertTracks ( const QList< TrackDAO nodes)
slot
MiamSortFilterProxyModel * UniqueLibraryItemModel::proxy ( ) const
overridevirtual

Implements MiamItemModel.


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