Sayonara Player
StreamHandlerPodcasts.h
1 /* StreamHandlerPodcasts.h */
2 
3 /* Copyright (C) 2011-2016 Lucio Carreras
4  *
5  * This file is part of sayonara player
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11 
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16 
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 
22 
23 #ifndef STREAMHANDLERPODCASTS_H
24 #define STREAMHANDLERPODCASTS_H
25 
26 #include "AbstractStreamHandler.h"
27 
29 {
30  Q_OBJECT
31 public:
32  StreamHandlerPodcasts(QObject* parent=nullptr);
34 
35  bool get_all_streams(StreamMap& streams) override;
36  bool add_stream(const QString& station_name, const QString& url) override;
37  bool delete_stream(const QString& station_name) override;
38  bool update_url(const QString& station_name, const QString& url) override;
39  bool rename_stream(const QString &station_name, const QString &url) override;
40 };
41 
42 #endif // STREAMHANDLERPODCASTS_H
bool delete_stream(const QString &station_name) override
Delete a station from the database.
Definition: StreamHandlerPodcasts.h:28
bool get_all_streams(StreamMap &streams) override
This method should return all stations in database.
bool update_url(const QString &station_name, const QString &url) override
Update the url of a station.
bool add_stream(const QString &station_name, const QString &url) override
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:44
bool rename_stream(const QString &station_name, const QString &url) override
Rename the station.