23 #ifndef SOUNDCLOUDJSONPARSER_H
24 #define SOUNDCLOUDJSONPARSER_H
28 #include "SoundcloudGlobal.h"
29 #include "Helper/Logger/Logger.h"
35 #include <QJsonDocument>
38 #include <QJsonParseError>
39 #include <QJsonObject>
57 QJsonDocument _json_doc;
60 enum class SCJsonItemType : quint8
69 bool parse_artist_list(
ArtistList& artists, QJsonArray arr);
73 bool parse_artist(
Artist& artist, QJsonObject
object);
75 bool parse_track(
Artist& artist,
MetaData& md, QJsonObject
object);
78 QString create_link(
const QString& name,
const QString& target);
86 bool get_string(
const QString& key,
const QJsonObject&
object, QString& str);
87 bool get_int(
const QString& key,
const QJsonObject&
object,
int& i);
88 bool get_double(
const QString& key,
const QJsonObject&
object,
double& d);
89 bool get_bool(
const QString& key,
const QJsonObject&
object,
bool& b);
90 bool get_array(
const QString& key,
const QJsonObject&
object, QJsonArray& arr);
91 bool get_object(
const QString& key,
const QJsonObject&
object, QJsonObject& o);
101 #endif // SOUNDCLOUDJSONPARSER_H
The AlbumList class.
Definition: Album.h:73
ArtistList.
Definition: Artist.h:64
The Album class.
Definition: Album.h:41
Definition: SoundcloudJsonParser.h:51
The Playlist class.
Definition: Playlist.h:38
The Artist class.
Definition: Artist.h:36