]> git.sur5r.net Git - minitube/blobdiff - src/yt/ytjs/ytjstrending.h
Update upstream source from tag 'upstream/3.9.1'
[minitube] / src / yt / ytjs / ytjstrending.h
diff --git a/src/yt/ytjs/ytjstrending.h b/src/yt/ytjs/ytjstrending.h
new file mode 100644 (file)
index 0000000..a43b507
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef YTJSTRENDING_H
+#define YTJSTRENDING_H
+
+#include "videosource.h"
+
+class Video;
+
+class YTJSTrending : public VideoSource {
+    Q_OBJECT
+
+public:
+    YTJSTrending(QString name, QVariantMap params, QObject *parent = 0);
+    void loadVideos(int max, int startIndex);
+    void abort() { aborted = true; }
+    QString getName() { return name; }
+
+private:
+    const QString name;
+    const QVariantMap params;
+    bool aborted = false;
+};
+
+#endif // YTJSTRENDING_H