]> git.sur5r.net Git - minitube/blob - src/downloadview.h
Imported Upstream version 1.2
[minitube] / src / downloadview.h
1 #ifndef DOWNLOADVIEW_H
2 #define DOWNLOADVIEW_H
3
4 #include <QtGui>
5 #include "View.h"
6
7 class THBlackBar;
8 class DownloadModel;
9 class DownloadListView;
10 class DownloadSettings;
11
12 class DownloadView : public QWidget, public View {
13
14     Q_OBJECT
15
16 public:
17     DownloadView(QWidget *parent);
18     void appear();
19     void disappear();
20     QMap<QString, QVariant> metadata() {
21         QMap<QString, QVariant> metadata;
22         metadata.insert("title", tr("Downloads"));
23         metadata.insert("description", "");
24         return metadata;
25     }
26
27 public slots:
28     void itemEntered(const QModelIndex &index);
29     void buttonPushed(QModelIndex index);
30
31 private:
32     THBlackBar *bar;
33     DownloadListView *listView;
34     DownloadModel *listModel;
35     QTimer *updateTimer;
36     DownloadSettings *downloadSettings;
37
38 };
39
40 #endif // DOWNLOADVIEW_H