]> git.sur5r.net Git - minitube/blobdiff - src/yt3listparser.h
Upload 3.9.3-2 to unstable
[minitube] / src / yt3listparser.h
index 6ce915c086f12818114edf133846026346807e52..1effdd48805e1479b5b45e82f0f8fe61d6aaf9d6 100644 (file)
@@ -2,23 +2,19 @@
 #define YT3LISTPARSER_H
 
 #include <QtCore>
-#include <QtScript>
 
 class Video;
 
 class YT3ListParser : public QObject {
-
 public:
     YT3ListParser(const QByteArray &bytes);
-    const QList<Video*> &getVideos() { return videos; }
-    const QStringList &getSuggestions() { return suggestions; }
+    const QVector<Video *> &getVideos() { return videos; }
     const QString &getNextPageToken() { return nextPageToken; }
 
 private:
-    void parseItem(const QScriptValue &item);
+    void parseItem(const QJsonObject &item);
 
-    QList<Video*> videos;
-    QStringList suggestions;
+    QVector<Video *> videos;
     QString nextPageToken;
 };