#ifndef DOWNLOADMANAGER_H
#define DOWNLOADMANAGER_H
-#include <QtGui>
-#if QT_VERSION >= 0x050000
#include <QtWidgets>
-#endif
class DownloadItem;
class DownloadModel;
static DownloadManager* instance();
void clear();
void addItem(Video *video);
- const QList<DownloadItem*> getItems() { return items; }
+ const QVector<DownloadItem*> getItems() { return items; }
DownloadModel* getModel() { return downloadModel; }
DownloadItem* itemForVideo(Video *video);
int activeItems();
private:
DownloadManager(QWidget *parent = 0);
- QList<DownloadItem*> items;
+ QVector<DownloadItem*> items;
DownloadModel *downloadModel;
};