 |
Sayonara Player
|
21 #ifndef AbstractStreamHandler_H
22 #define AbstractStreamHandler_H
26 #include "Utils/Pimpl.h"
49 void sig_data_available();
50 void sig_too_many_urls_found(
int n_urls,
int max_n_urls);
59 bool parse_station(
const QString& url,
const QString& station_name);
66 bool save(
const QString& station_name,
const QString& url);
82 virtual bool add_stream(
const QString& station_name,
const QString& url)=0;
97 virtual bool update_url(
const QString& station_name,
const QString& url)=0;
105 virtual bool rename(
const QString& old_name,
const QString& new_name)=0;
115 void stream_parser_finished(
bool success);
119 #endif // AbstractStreamHandler_H
void clear()
Clears all station content.
virtual bool delete_stream(const QString &station_name)=0
Delete a station from the database.
virtual bool update_url(const QString &station_name, const QString &url)=0
Update the url of a station.
bool parse_station(const QString &url, const QString &station_name)
Retrieves data from the station and tries to interprete it via the parse_content() method.
Definition: org_mpris_media_player2_adaptor.h:21
bool save(const QString &station_name, const QString &url)
Saves the station. Calls the add_stream() method.
Used to interprete website data as streams. Some methods have to be overridden, to map their function...
Definition: AbstractStreamHandler.h:37
virtual bool get_all_streams(StreamMap &streams)=0
This method should return all stations in database.
virtual bool rename(const QString &old_name, const QString &new_name)=0
Rename station.
virtual bool add_stream(const QString &station_name, const QString &url)=0
This method should add a new station to database. If the station already exists, there should be a co...