]> git.sur5r.net Git - minitube/blob - src/invidious/ivchannelsource.h
a1deaf733128431beaf699e8b9436bbe0f630339
[minitube] / src / invidious / ivchannelsource.h
1 #ifndef IVCHANNELSOURCE_H
2 #define IVCHANNELSOURCE_H
3
4 #include "videosource.h"
5 #include <QtNetwork>
6
7 class SearchParams;
8
9 class IVChannelSource : public VideoSource {
10     Q_OBJECT
11
12 public:
13     IVChannelSource(SearchParams *searchParams, QObject *parent = nullptr);
14
15     void loadVideos(int max, int startIndex);
16     void abort();
17     QString getName();
18     const QList<QAction *> &getActions();
19     int maxResults();
20
21     SearchParams *getSearchParams() const { return searchParams; }
22
23 private:
24     SearchParams *searchParams;
25     bool aborted;
26     QString name;
27 };
28
29 #endif // IVCHANNELSOURCE_H