21 #ifndef AbstractStreamHandler_H 22 #define AbstractStreamHandler_H 27 #include "Utils/Pimpl.h" 50 void sig_data_available();
51 void sig_too_many_urls_found(
int n_urls,
int max_n_urls);
60 bool parse_station(
const QString& url,
const QString& station_name);
67 void save(
const QString& station_name,
const QString& url);
83 virtual bool add_stream(
const QString& station_name,
const QString& url)=0;
98 virtual bool update_url(
const QString& station_name,
const QString& url)=0;
108 void stream_parser_finished(
bool success);
112 #endif // AbstractStreamHandler_H void clear()
Clears all station content.
virtual bool get_all_streams(StreamMap &streams)=0
This method should return all stations in database.
void save(const QString &station_name, const QString &url)
Saves the station. Calls the add_stream() method.
virtual bool update_url(const QString &station_name, const QString &url)=0
Update the url of a station.
virtual bool delete_stream(const QString &station_name)=0
Delete a station from the database.
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...
Used to interprete website data as streams. Some methods have to be overridden, to map their function...
Definition: AbstractStreamHandler.h:38
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.