21#ifndef AbstractStreamHandler_H
22#define AbstractStreamHandler_H
24#include "Utils/Pimpl.h"
25#include "Utils/Streams/Station.h"
52 void sigDataAvailable();
53 void sigUrlCountExceeded(
int urlCount,
int maxUrlCount);
69 bool save(StationPtr station);
87 virtual StationPtr createStreamInstance(
const QString& name,
const QString& url)
const = 0;
102 virtual bool update(
const QString& name, StationPtr station) = 0;
104 virtual StationPtr station(
const QString& name) = 0;
112 virtual void createPlaylist(StationPtr station,
MetaDataList& tracks);
115 void parserFinished(
bool success);
116 void parserStopped();
Used to interprete website data as streams. Some methods have to be overridden, to map their function...
Definition: AbstractStationHandler.h:41
virtual bool getAllStreams(QList< StationPtr > &streams)=0
This method should return all stations in database.
virtual bool update(const QString &name, StationPtr station)=0
Update the url of a station.
virtual bool addNewStream(StationPtr station)=0
This method should add a new station to database. If the station already exists, there should be a co...
virtual bool deleteStream(const QString &name)=0
Delete a station from the database.
void stop()
Clears all station content.
bool save(StationPtr station)
Saves the station. Calls the add_stream() method.
bool parseStation(StationPtr station)
Retrieves data from the station and tries to interprete it via the parse_content() method.
Definition: PlaylistInterface.h:56
Definition: EngineUtils.h:33