Sayonara Player
|
Signals | |
void | sigStopped () |
void | sigError () |
void | sigDataAvailable () |
void | sigUrlCountExceeded (int urlCount, int maxUrlCount) |
Public Member Functions | |
PodcastHandler (PlaylistCreator *playlistCreator, QObject *parent=nullptr) | |
bool | getAllStreams (QList< StationPtr > &stations) override |
This method should return all stations in database. More... | |
bool | addNewStream (StationPtr station) override |
This method should add a new station to database. If the station already exists, there should be a corresponding error handling. More... | |
bool | deleteStream (const QString &station_name) override |
Delete a station from the database. More... | |
bool | update (const QString &station_name, StationPtr station) override |
Update the url of a station. More... | |
StationPtr | createStreamInstance (const QString &name, const QString &url) const override |
StationPtr | station (const QString &name) override |
bool | parseStation (StationPtr station) |
Retrieves data from the station and tries to interprete it via the parse_content() method. More... | |
bool | save (StationPtr station) |
Saves the station. Calls the add_stream() method. More... | |
void | stop () |
Clears all station content. | |
Protected Member Functions | |
void | createPlaylist (StationPtr station, MetaDataList &tracks) override |
|
overridevirtual |
This method should add a new station to database. If the station already exists, there should be a corresponding error handling.
station_name | station name |
url | url |
Implements AbstractStationHandler.
|
overrideprotectedvirtual |
Reimplemented from AbstractStationHandler.
|
overridevirtual |
Implements AbstractStationHandler.
|
overridevirtual |
Delete a station from the database.
station_name | the station to be deleted |
Implements AbstractStationHandler.
|
overridevirtual |
This method should return all stations in database.
streams | target StreamMap |
Implements AbstractStationHandler.
|
inherited |
Retrieves data from the station and tries to interprete it via the parse_content() method.
url | url to retrieve the data from |
station_name | the station name |
|
inherited |
Saves the station. Calls the add_stream() method.
station_name | The station name. |
url | the station url. |
|
overridevirtual |
Implements AbstractStationHandler.
|
overridevirtual |
Update the url of a station.
station_name | the station to be updated |
url | the new url |
Implements AbstractStationHandler.