Clementine-audio-player-Mac.../src/libraryitem.h

34 lines
700 B
C
Raw Normal View History

2009-12-24 20:16:07 +01:00
#ifndef LIBRARYITEM_H
#define LIBRARYITEM_H
#include <QString>
#include <QList>
#include "song.h"
2009-12-26 14:49:18 +01:00
#include "simpletreeitem.h"
2009-12-24 20:16:07 +01:00
2009-12-26 14:49:18 +01:00
class LibraryItem : public SimpleTreeItem<LibraryItem> {
public:
2009-12-24 20:16:07 +01:00
enum Type {
Type_Root,
Type_Divider,
Type_CompilationArtist,
Type_CompilationAlbum,
Type_Artist,
Type_Album,
Type_Song,
};
2009-12-30 01:31:00 +01:00
LibraryItem(SimpleTreeModel<LibraryItem>* model)
: SimpleTreeItem<LibraryItem>(Type_Root, model) {}
2009-12-26 14:49:18 +01:00
LibraryItem(Type type, const QString& key = QString::null, LibraryItem* parent = NULL)
: SimpleTreeItem<LibraryItem>(type, key, parent) {}
2009-12-24 20:16:07 +01:00
Song song;
// Maybe stores album cover art
QPixmap cover_art;
2009-12-24 20:16:07 +01:00
};
#endif // LIBRARYITEM_H