2009-12-26 16:13:38 +01:00
|
|
|
#include "radioservice.h"
|
|
|
|
|
|
|
|
RadioService::RadioService(const QString& name, QObject *parent)
|
|
|
|
: QObject(parent),
|
|
|
|
name_(name)
|
|
|
|
{
|
|
|
|
}
|
2010-01-18 03:23:55 +01:00
|
|
|
|
|
|
|
QUrl RadioService::UrlForItem(const RadioItem* item) const {
|
|
|
|
return item->key;
|
|
|
|
}
|
|
|
|
|
|
|
|
QString RadioService::TitleForItem(const RadioItem* item) const {
|
|
|
|
return item->DisplayText();
|
|
|
|
}
|
|
|
|
|
|
|
|
QString RadioService::ArtistForItem(const RadioItem* item) const {
|
|
|
|
return item->artist;
|
|
|
|
}
|
|
|
|
|
|
|
|
void RadioService::LoadNext(const QUrl&) {
|
|
|
|
emit StreamFinished();
|
|
|
|
}
|