X-Git-Url: https://git.sur5r.net/?p=minitube;a=blobdiff_plain;f=src%2Fstandardfeedsview.h;h=aa07c0c1585eb1321dc2ca55ff52aa38a3f443e2;hp=0f9e051180e280f288dfdee4cb979873ccc6b2e7;hb=533489a63a9716c645a11a99ca446978b20eedd0;hpb=994e6e5e95196b0e36c680b1fd496f12d71739c9 diff --git a/src/standardfeedsview.h b/src/standardfeedsview.h index 0f9e051..aa07c0c 100644 --- a/src/standardfeedsview.h +++ b/src/standardfeedsview.h @@ -21,18 +21,16 @@ $END_LICENSE */ #ifndef CATEGORIESVIEW_H #define CATEGORIESVIEW_H -#include -#if QT_VERSION >= 0x050000 #include -#endif + #include "view.h" class VideoSource; struct YTCategory; class YTStandardFeed; +class VideoSourceWidget; class StandardFeedsView : public View { - Q_OBJECT public: @@ -48,18 +46,19 @@ public slots: protected: void paintEvent(QPaintEvent *event); - + private slots: - void layoutCategories(const QList &categories); + void layoutCategories(const QVector &categories); void selectWorldwideRegion(); void selectLocalRegion(); + void removeVideoSourceWidget(VideoSourceWidget *videoSourceWidget); private: + void resetLayout(); void addVideoSourceWidget(VideoSource *videoSource); - QList getMainFeeds(); - YTStandardFeed* buildStardardFeed(const QString &feedId, const QString &label, QString time = QString()); + YTStandardFeed * + buildStandardFeed(const QString &feedId, const QString &label, QString time = QString()); QGridLayout *layout; - }; #endif // CATEGORIESVIEW_H