X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fvideosource.h;h=82a1eb6f98cfe44bf5e10630bd033d6a9f06ef66;hb=HEAD;hp=e2da4d4a3fba2296c6f853990246bb1a3a7b9fa1;hpb=7ca7741e1eb9bc70617fbb4207738e291218c495;p=minitube diff --git a/src/videosource.h b/src/videosource.h index e2da4d4..82a1eb6 100644 --- a/src/videosource.h +++ b/src/videosource.h @@ -21,33 +21,34 @@ $END_LICENSE */ #ifndef VIDEOSOURCE_H #define VIDEOSOURCE_H -#include #include +#include class Video; class VideoSource : public QObject { - Q_OBJECT public: - VideoSource(QObject *parent = 0) : QObject(parent) { } + VideoSource(QObject *parent = 0) : QObject(parent) {} virtual void loadVideos(int max, int startIndex) = 0; virtual bool hasMoreVideos() { return true; } virtual void abort() = 0; - virtual const QStringList & getSuggestions() = 0; virtual QString getName() = 0; - virtual QList getActions() { return QList(); } + virtual const QList &getActions() { + static const QList noActions; + return noActions; + } + virtual int maxResults() { return 0; } public slots: void setParam(const QString &name, const QVariant &value); signals: - void gotVideos(QList videos); + void gotVideos(const QVector