Clementine-audio-player-Mac.../src/radioservice.cpp

24 lines
480 B
C++
Raw Normal View History

#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();
}