Sayonara Player
StreamHandlerPodcasts.h
1 /* StreamHandlerPodcasts.h */
2 
3 /* Copyright (C) 2011-2019 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 #ifndef STREAMHANDLERPODCASTS_H
22 #define STREAMHANDLERPODCASTS_H
23 
24 #include "AbstractStreamHandler.h"
25 
27 {
28  Q_OBJECT
29 public:
30  explicit StreamHandlerPodcasts(QObject* parent=nullptr);
32 
33  bool get_all_streams(StreamMap& streams) override;
34  bool add_stream(const QString& station_name, const QString& url) override;
35  bool delete_stream(const QString& station_name) override;
36  bool update_url(const QString& station_name, const QString& url) override;
37  bool rename(const QString& old_name, const QString& new_name) override;
38 };
39 
40 #endif // STREAMHANDLERPODCASTS_H
bool delete_stream(const QString &station_name) override
Delete a station from the database.
Definition: StreamHandlerPodcasts.h:26
bool get_all_streams(StreamMap &streams) override
This method should return all stations in database.
bool rename(const QString &old_name, const QString &new_name) override
Rename station.
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:37
Definition: org_mpris_media_player2_adaptor.h:21