X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fvideosource.h;h=82a1eb6f98cfe44bf5e10630bd033d6a9f06ef66;hb=HEAD;hp=760f512c0063aa280bafb54e622f884ca3cdcbfc;hpb=7cdd5bd476021ec84d54c4ec5be02280e1e9e548;p=minitube diff --git a/src/videosource.h b/src/videosource.h index 760f512..82a1eb6 100644 --- a/src/videosource.h +++ b/src/videosource.h @@ -21,32 +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) { } - virtual void loadVideos(int max, int skip) = 0; + 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(QString name, QVariant value); + void setParam(const QString &name, const QVariant &value); signals: - void gotVideos(QList videos); + void gotVideos(const QVector