1 #ifndef __SEARCHVIEW_H__
2 #define __SEARCHVIEW_H__
12 class SearchView : public QWidget, public View {
17 SearchView(QWidget *parent);
18 void updateRecentKeywords();
19 void updateRecentChannels();
20 QHash<QString, QVariant> metadata() {
21 QHash<QString, QVariant> metadata;
22 metadata.insert("description", tr("Make yourself comfortable"));
28 void watch(QString query);
29 void watchChannel(QString channel);
30 void watchKeywords(QString query);
33 void search(SearchParams*);
36 void paintEvent(QPaintEvent *);
40 void textChanged(const QString &text);
41 void searchTypeChanged(int index);
44 YouTubeSuggest *youtubeSuggest;
45 ChannelSuggest *channelSuggest;
48 SearchLineEdit *queryEdit;
49 QLabel *recentKeywordsLabel;
50 QBoxLayout *recentKeywordsLayout;
51 QLabel *recentChannelsLabel;
52 QBoxLayout *recentChannelsLayout;
54 QPushButton *watchButton;
58 #endif // __SEARCHVIEW_H__