 |
Sayonara Player
|
21 #ifndef AbstractStreamHandler_H
22 #define AbstractStreamHandler_H
24 #include "Utils/Pimpl.h"
25 #include "Utils/Streams/Station.h"
50 void sigDataAvailable();
51 void sigUrlCountExceeded(
int urlCount,
int maxUrlCount);
67 bool save(StationPtr station);
85 virtual StationPtr createStreamInstance(
const QString& name,
const QString& url)
const=0;
100 virtual bool update(
const QString& name, StationPtr station)=0;
102 virtual StationPtr station(
const QString& name)=0;
110 virtual void createPlaylist(StationPtr station,
MetaDataList& tracks);
113 void parserFinished(
bool success);
114 void parserStopped();
117 #endif // AbstractStreamHandler_H
Definition: EngineUtils.h:33
Used to interprete website data as streams. Some methods have to be overridden, to map their function...
Definition: AbstractStationHandler.h:39
virtual bool getAllStreams(QList< StationPtr > &streams)=0
This method should return all stations in database.
void stop()
Clears all station content.
virtual bool deleteStream(const QString &name)=0
Delete a station from the database.
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 update(const QString &name, StationPtr station)=0
Update the url of a station.
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.