29 lines
613 B
C++
29 lines
613 B
C++
#include "radioitem.h"
|
|
#include "radioservice.h"
|
|
|
|
RadioItem::RadioItem(SimpleTreeModel<RadioItem> *model)
|
|
: SimpleTreeItem<RadioItem>(Type_Root, model),
|
|
service(NULL)
|
|
{
|
|
}
|
|
|
|
RadioItem::RadioItem(RadioService* _service, int type, const QString& key,
|
|
RadioItem* parent)
|
|
: SimpleTreeItem<RadioItem>(type, key, parent),
|
|
service(_service),
|
|
playable(false)
|
|
{
|
|
}
|
|
|
|
QUrl RadioItem::Url() const {
|
|
return service->UrlForItem(this);
|
|
}
|
|
|
|
QString RadioItem::Title() const {
|
|
return service->TitleForItem(this);
|
|
}
|
|
|
|
QString RadioItem::Artist() const {
|
|
return service->ArtistForItem(this);
|
|
}
|