示例#1
0
void RockmaxServer::getTrack(const Station& station) {
    QNetworkReply* reply = manager->get(QNetworkRequest(QUrl(
	station.id() > 0 
	    ? QString("http://www.rockmax.cz/stream_%0/all_songs_%0.txt").arg(station.nick())
	    : QString("http://www.rockmax.cz/stream_live/all_songs.txt")
    )));
    connect(reply, SIGNAL(finished()), SLOT(processTrack()));
}
示例#2
0
QString RockmaxServer::streamUrl(const Station& station, const Format& format) const {
    return QString("http://212.111.2.151:8000/%0%1_%2.mp3")
        .arg(station.id()>0 ? "rm_":"").arg(station.nick()).arg(format.nick());
}