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