]> git.sur5r.net Git - minitube/blob - src/standardfeedsview.h
Imported Upstream version 2.0
[minitube] / src / standardfeedsview.h
1 #ifndef CATEGORIESVIEW_H
2 #define CATEGORIESVIEW_H
3
4 #include <QtGui>
5 #include "view.h"
6
7 class VideoSource;
8 class YTCategory;
9 class YTStandardFeed;
10
11 class StandardFeedsView : public QWidget, public View {
12
13     Q_OBJECT
14
15 public:
16     StandardFeedsView(QWidget *parent = 0);
17
18 signals:
19     void activated(VideoSource *standardFeed);
20
21 public slots:
22     void appear();
23     void disappear();
24     void load();
25     
26 private slots:
27     void layoutCategories(const QList<YTCategory> &categories);
28     void selectWorldwideRegion();
29     void selectLocalRegion();
30
31 private:
32     void addVideoSourceWidget(VideoSource *videoSource);
33     QList<YTStandardFeed*> getMainFeeds();
34     YTStandardFeed* buildStardardFeed(QString feedId, QString label);
35     QGridLayout *layout;
36     
37 };
38
39 #endif // CATEGORIESVIEW_H