1 #ifndef __SEARCHVIEW_H__
2 #define __SEARCHVIEW_H__
12 class SearchView : public QWidget, public View {
17 SearchView(QWidget *parent = 0);
18 void updateRecentKeywords();
19 void updateRecentChannels();
24 void watch(QString query);
25 void watchChannel(QString channel);
26 void watchKeywords(QString query);
29 void search(SearchParams*);
32 void paintEvent(QPaintEvent *);
36 void textChanged(const QString &text);
37 void searchTypeChanged(int index);
40 YTSuggester *youtubeSuggest;
41 ChannelSuggest *channelSuggest;
44 SearchLineEdit *queryEdit;
45 QLabel *recentKeywordsLabel;
46 QBoxLayout *recentKeywordsLayout;
47 QLabel *recentChannelsLabel;
48 QBoxLayout *recentChannelsLayout;
50 QPushButton *watchButton;
54 #endif // __SEARCHVIEW_H__