]> git.sur5r.net Git - minitube/blobdiff - src/downloadmanager.h
New upstream version 3.1
[minitube] / src / downloadmanager.h
index 789ee03782536aeed86cba6b82e750ede131faf2..1d1bb6597c43545401ad02e2e340546806972080 100644 (file)
@@ -1,7 +1,27 @@
+/* $BEGIN_LICENSE
+
+This file is part of Minitube.
+Copyright 2009, Flavio Tordini <flavio.tordini@gmail.com>
+
+Minitube is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+Minitube is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with Minitube.  If not, see <http://www.gnu.org/licenses/>.
+
+$END_LICENSE */
+
 #ifndef DOWNLOADMANAGER_H
 #define DOWNLOADMANAGER_H
 
-#include <QtGui>
+#include <QtWidgets>
 
 class DownloadItem;
 class DownloadModel;
@@ -15,7 +35,7 @@ public:
     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();
@@ -34,7 +54,7 @@ private slots:
 private:
     DownloadManager(QWidget *parent = 0);
 
-    QList<DownloadItem*> items;
+    QVector<DownloadItem*> items;
     DownloadModel *downloadModel;
 
 };