5 #include "videosource.h"
10 class YTSearch : public VideoSource {
15 YTSearch(SearchParams *params, QObject *parent = 0);
16 void loadVideos(int max, int skip);
18 virtual const QStringList & getSuggestions();
19 static QString videoIdFromUrl(QString url);
21 SearchParams* getSearchParams() const { return searchParams; }
23 bool operator==(const YTSearch &other) const {
24 return searchParams == other.getSearchParams();
28 void parseResults(QByteArray data);
29 void requestError(QNetworkReply *reply);
32 SearchParams *searchParams;
34 QStringList suggestions;