Add ROCKRADIO.com. Fixes issue 3295

This commit is contained in:
David Sansome 2012-11-18 11:18:51 +11:00
parent df21da786e
commit 3cc0ba7969
5 changed files with 21 additions and 1 deletions

View File

@ -265,6 +265,7 @@
<file>nomusic.png</file>
<file>now_playing_tooltip.txt</file>
<file>nyancat.png</file>
<file>oauthsuccess.html</file>
<file>osd_background.png</file>
<file>osd_shadow_corner.png</file>
<file>osd_shadow_edge.png</file>
@ -288,6 +289,7 @@
<file>providers/myspace.png</file>
<file>providers/podcast16.png</file>
<file>providers/podcast32.png</file>
<file>providers/rockradio.png</file>
<file>providers/skyfm.png</file>
<file>providers/somafm.png</file>
<file>providers/songkick.png</file>
@ -350,6 +352,5 @@
<file>volumeslider-handle_glow.png</file>
<file>volumeslider-handle.png</file>
<file>volumeslider-inset.png</file>
<file>oauthsuccess.html</file>
</qresource>
</RCC>

View File

@ -272,3 +272,14 @@ JazzRadioService::JazzRadioService(
app, model, parent)
{
}
RockRadioService::RockRadioService(
Application* app, InternetModel* model, QObject* parent)
: DigitallyImportedServiceBase("RockRadio",
"ROCKRADIO.com",
QUrl("http://www.rockradio.com"),
QIcon(":/providers/rockradio.png"),
"rockradio",
app, model, parent)
{
}

View File

@ -127,4 +127,9 @@ public:
JazzRadioService(Application* app, InternetModel* model, QObject* parent = NULL);
};
class RockRadioService : public DigitallyImportedServiceBase {
public:
RockRadioService(Application* app, InternetModel* model, QObject* parent = NULL);
};
#endif // DIGITALLYIMPORTEDSERVICEBASE_H

View File

@ -43,6 +43,8 @@ QIcon DigitallyImportedUrlHandler::icon() const {
return QIcon(":providers/skyfm.png");
} else if (scheme() == "jazzradio") {
return QIcon(":providers/jazzradio.png");
} else if (scheme() == "rockradio") {
return QIcon(":providers/rockradio.png");
}
return QIcon();
}

View File

@ -77,6 +77,7 @@ InternetModel::InternetModel(Application* app, QObject* parent)
AddService(new JazzRadioService(app, this));
AddService(new MagnatuneService(app, this));
AddService(new PodcastService(app, this));
AddService(new RockRadioService(app, this));
AddService(new SavedRadio(app, this));
AddService(new SkyFmService(app, this));
AddService(new SomaFMService(app, this));