Sayonara Player
Toggle main menu visibility
Loading...
Searching...
No Matches
src
Components
Streaming
SomaFM
SomaFMStation.h
1
/* SomaFMStation.h */
2
3
/* Copyright (C) 2011-2024 Michael Lugmair (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
/* SomaFMStation.h */
23
24
#ifndef SOMAFMSTATION_H
25
#define SOMAFMSTATION_H
26
27
#include "Utils/Pimpl.h"
28
29
class
QStringList;
30
class
QString;
31
class
MetaDataList
;
32
33
namespace
Cover
34
{
35
class
Location
;
36
}
37
38
namespace
SomaFM
39
{
40
class
Station
41
{
42
PIMPL(Station)
43
44
public
:
45
enum class
UrlType :
46
unsigned
char
47
{
48
AAC = 0,
49
MP3,
50
Undefined
51
};
52
53
Station();
54
explicit
Station(
const
QString& content);
55
Station(
const
Station& other);
56
Station& operator=(
const
Station& other);
57
~Station();
58
59
QString name()
const
;
60
QStringList playlists()
const
;
61
QString description()
const
;
62
UrlType urlType(
const
QString& url)
const
;
63
QString urlTypeString(
const
QString& url)
const
;
64
Cover::Location
coverLocation()
const
;
65
bool
isValid()
const
;
66
67
MetaDataList
metadata()
const
;
68
void
setMetadata(
const
MetaDataList
& tracks);
69
70
bool
isLoved()
const
;
71
void
setLoved(
bool
loved);
72
73
private
:
74
void
parseStationName();
75
void
parseUrls();
76
void
parseDescription();
77
void
parseImage();
78
};
79
}
80
81
#endif
82
Cover::Location
Definition
CoverLocation.h:39
MetaDataList
Definition
MetaDataList.h:34
Generated on
for Sayonara Player by
1.17.0