]> git.sur5r.net Git - minitube/blob - src/yt/ytjs/ytjschannelsource.h
New upstream version 3.8
[minitube] / src / yt / ytjs / ytjschannelsource.h
1 #ifndef YTJSCHANNELSOURCE_H
2 #define YTJSCHANNELSOURCE_H
3
4 #include "videosource.h"
5
6 class SearchParams;
7 class Video;
8
9 class YTJSChannelSource : public VideoSource {
10     Q_OBJECT
11
12 public:
13     YTJSChannelSource(SearchParams *searchParams, QObject *parent = 0);
14     void loadVideos(int max, int startIndex);
15     bool hasMoreVideos() { return !continuation.isEmpty(); }
16     void abort() { aborted = true; }
17     QString getName();
18     const QList<QAction *> &getActions();
19     SearchParams *getSearchParams() const { return searchParams; }
20
21 private:
22     SearchParams *searchParams;
23     bool aborted = false;
24     QString name;
25
26     QString continuation;
27 };
28
29 #endif // YTJSCHANNELSOURCE_H