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

33 lines
586 B
C
Raw Normal View History

#ifndef RADIOITEM_H
#define RADIOITEM_H
#include <QIcon>
2009-12-26 23:15:57 +01:00
#include <QUrl>
#include "simpletreeitem.h"
class RadioService;
class RadioItem : public SimpleTreeItem<RadioItem> {
public:
enum Type {
Type_Root = 1,
Type_Service,
};
2009-12-30 01:31:00 +01:00
RadioItem(SimpleTreeModel<RadioItem>* model);
RadioItem(RadioService* _service, int type, const QString& key = QString::null,
RadioItem* parent = NULL);
2009-12-30 00:17:54 +01:00
QUrl Url() const;
QString Title() const;
2010-01-18 03:23:55 +01:00
QString Artist() const;
2009-12-30 00:17:54 +01:00
QIcon icon;
2010-01-18 03:23:55 +01:00
QString artist;
RadioService* service;
2009-12-26 22:35:45 +01:00
bool playable;
};
#endif // RADIOITEM_H