mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 11:35:24 +01:00
25 lines
535 B
C++
25 lines
535 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);
|
|
}
|