]> git.sur5r.net Git - minitube/blob - src/yt/ytjs/ytjstrending.h
New upstream version 3.9.1
[minitube] / src / yt / ytjs / ytjstrending.h
1 #ifndef YTJSTRENDING_H
2 #define YTJSTRENDING_H
3
4 #include "videosource.h"
5
6 class Video;
7
8 class YTJSTrending : public VideoSource {
9     Q_OBJECT
10
11 public:
12     YTJSTrending(QString name, QVariantMap params, QObject *parent = 0);
13     void loadVideos(int max, int startIndex);
14     void abort() { aborted = true; }
15     QString getName() { return name; }
16
17 private:
18     const QString name;
19     const QVariantMap params;
20     bool aborted = false;
21 };
22
23 #endif // YTJSTRENDING_H