mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-18 12:28:31 +01:00
Add ROCKRADIO.com. Fixes issue 3295
This commit is contained in:
parent
df21da786e
commit
3cc0ba7969
@ -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>
|
||||
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user