Sayonara Player
SomaFMStation.h
1 #ifndef SOMAFMSTATION_H
2 #define SOMAFMSTATION_H
3 
4 #include "Helper/MetaData/MetaDataList.h"
5 #include "Components/CoverLookup/CoverLocation.h"
6 
8 {
9 public:
10 
11  enum class UrlType : quint8
12  {
13  AAC=0,
14  MP3,
15  Undefined
16  };
17 
18  SomaFMStation();
19  SomaFMStation(const QString& content);
20 
21  QString get_station_name() const;
22  QStringList get_urls() const;
23  QString get_description() const;
24  UrlType get_url_type(const QString& url) const;
25  CoverLocation get_cover_location() const;
26  bool is_valid() const;
27  MetaDataList get_metadata() const;
28  void set_metadata(const MetaDataList& v_md);
29 
30 
31 private:
32 
33  QString _content;
34 
35  QString _station_name;
37  QString _description;
38  CoverLocation _cover;
39  MetaDataList _v_md;
40 
41 private:
42  void parse_station_name();
43  void parse_urls();
44  void parse_description();
45  void parse_image();
46 };
47 
48 #endif
Definition: SomaFMStation.h:7
Definition: MetaDataList.h:46
The CoverLocation class.
Definition: CoverLocation.h:37