]> git.sur5r.net Git - minitube/blob - src/channelwidget.h
Upload 3.9.3-2 to unstable
[minitube] / src / channelwidget.h
1 #ifndef CHANNELWIDGET_H
2 #define CHANNELWIDGET_H
3
4 #include <QtGui>
5 #include "gridwidget.h"
6
7 class VideoSource;
8 class YTUser;
9
10 class ChannelWidget : public GridWidget {
11
12     Q_OBJECT
13
14 public:
15     ChannelWidget(VideoSource *videoSource, YTUser *user, QWidget *parent = 0);
16     
17 signals:
18     void activated(VideoSource *videoSource);
19
20 protected:
21     void paintEvent(QPaintEvent *event);
22
23 private slots:
24     void gotUserInfo();
25     void gotUserThumbnail(QByteArray bytes);
26     void activate();
27
28 private:
29     QPixmap thumbnail;
30     YTUser *user;
31     VideoSource *videoSource;
32
33 };
34
35 #endif // CHANNELWIDGET_H