RadioParadiseService: Use API to receive streams

This commit is contained in:
Jonas Kvinge
2024-02-12 16:57:51 +01:00
parent 6bdd9ad4dd
commit 05381096aa
2 changed files with 104 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
/*
* Strawberry Music Player
* Copyright 2021, Jonas Kvinge <jonas@jkvinge.net>
* Copyright 2021-2024, Jonas Kvinge <jonas@jkvinge.net>
*
* Strawberry is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -24,9 +24,11 @@
#include <QUrl>
#include "radioservice.h"
#include "radiochannel.h"
class Application;
class NetworkAccessManager;
class QNetworkReply;
class RadioParadiseService : public RadioService {
Q_OBJECT
@@ -37,8 +39,18 @@ class RadioParadiseService : public RadioService {
QUrl Homepage() override;
QUrl Donate() override;
void Abort();
public slots:
void GetChannels() override;
private slots:
void GetChannelsReply(QNetworkReply *reply, const int task_id);
private:
static const char *kApiChannelsUrl;
QList<QNetworkReply*> replies_;
RadioChannelList channels_;
};
#endif // RADIOPARADISESERVICE_H