1 #ifndef DOWNLOADMANAGER_H
2 #define DOWNLOADMANAGER_H
10 class DownloadManager : public QObject {
15 static DownloadManager* instance();
17 void addItem(Video *video);
18 const QList<DownloadItem*> getItems() { return items; }
19 DownloadModel* getModel() { return downloadModel; }
20 DownloadItem* itemForVideo(Video *video);
22 QString defaultDownloadFolder();
23 QString currentDownloadFolder();
27 void statusMessageChanged(QString status);
31 void updateStatusMessage();
32 void gotStreamUrl(QUrl url);
35 DownloadManager(QObject *parent = 0);
37 QList<DownloadItem*> items;
38 DownloadModel *downloadModel;
42 #endif // DOWNLOADMANAGER_H