]> git.sur5r.net Git - minitube/blobdiff - src/videosource.h
Big 2.1 commit
[minitube] / src / videosource.h
index 25fcfbf0bfa26f89e1079a26845d35b2f458b964..760f512c0063aa280bafb54e622f884ca3cdcbfc 100644 (file)
@@ -1,7 +1,28 @@
+/* $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 VIDEOSOURCE_H
 #define VIDEOSOURCE_H
 
 #include <QtCore>
+#include <QAction>
 
 class Video;
 
@@ -15,12 +36,13 @@ public:
     virtual void abort() = 0;
     virtual const QStringList & getSuggestions() = 0;
     virtual QString getName() = 0;
+    virtual QList<QAction*> getActions() { return QList<QAction*>(); }
 
 public slots:
     void setParam(QString name, QVariant value);
 
 signals:
-    void gotVideo(Video *video);
+    void gotVideos(QList<Video*> videos);
     void finished(int total);
     void error(QString message);
     void nameChanged(QString name);