RadioParadiseService: Use API to receive streams
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user