Sayonara Player
Toggle main menu visibility
Loading...
Searching...
No Matches
src
Components
Streaming
StationSearcher
StationSearcherHandler.h
1
/* StationSearcherHandler.h, (Created on 28.05.2024) */
2
3
/* Copyright (C) 2011-2024 Michael Lugmair
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
#ifndef SAYONARA_PLAYER_STATIONSEARCHERHANDLER_H
21
#define SAYONARA_PLAYER_STATIONSEARCHERHANDLER_H
22
23
#include "StationSearcher.h"
24
#include "Utils/Language/Language.h"
25
26
#include <QList>
27
#include <QMap>
28
29
class
StationSearcherHandler
30
{
31
public
:
32
virtual
~StationSearcherHandler
() =
default
;
33
34
[[nodiscard]]
virtual
QString identifier()
const
= 0;
35
36
[[nodiscard]]
virtual
QList<StationSearcherPtr>
stationSearchers()
const
= 0;
37
[[nodiscard]]
virtual
QString loadCurrentStationSearcher()
const
= 0;
38
virtual
void
setCurrentStationSearcher(
const
QString& name) = 0;
39
40
[[nodiscard]]
virtual
QMap<StationSearcher::Mode, Lang::Term>
stationSearcherModes()
const
= 0;
41
[[nodiscard]]
virtual
StationSearcher::Mode loadStationSearcherMode()
const
= 0;
42
virtual
void
setStationSearcherMode(StationSearcher::Mode mode) = 0;
43
};
44
45
using
StationSearcherHandlerPtr = std::shared_ptr<StationSearcherHandler>;
46
47
#endif
//SAYONARA_PLAYER_STATIONSEARCHERHANDLER_H
QList
Definition
EngineUtils.h:33
QMap
Definition
org_mpris_media_player2_adaptor.h:21
StationSearcherHandler
Definition
StationSearcherHandler.h:30
Generated on
for Sayonara Player by
1.17.0