]> git.sur5r.net Git - minitube/blobdiff - src/yt/invidious/ivlistparser.h
Update upstream source from tag 'upstream/3.8'
[minitube] / src / yt / invidious / ivlistparser.h
diff --git a/src/yt/invidious/ivlistparser.h b/src/yt/invidious/ivlistparser.h
new file mode 100644 (file)
index 0000000..c171fea
--- /dev/null
@@ -0,0 +1,19 @@
+#ifndef IVLISTPARSER_H
+#define IVLISTPARSER_H
+
+#include <QtCore>
+
+class Video;
+
+class IVListParser {
+public:
+    IVListParser(const QJsonArray &items);
+    const QVector<Video *> &getVideos() { return videos; }
+
+private:
+    void parseItem(const QJsonObject &item);
+
+    QVector<Video *> videos;
+};
+
+#endif // IVLISTPARSER_H